From 93e6384a9bf30bbe79c8f985084d2efbcec88ba9 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Mon, 8 Apr 2024 11:08:06 +0100 Subject: [PATCH] Move devtools to test scope --- pom.xml | 2 +- .../samples/petclinic/PetClinicIntegrationTests.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ab86484..3288512 100644 --- a/pom.xml +++ b/pom.xml @@ -125,7 +125,7 @@ org.springframework.boot spring-boot-devtools - true + test diff --git a/src/test/java/org/springframework/samples/petclinic/PetClinicIntegrationTests.java b/src/test/java/org/springframework/samples/petclinic/PetClinicIntegrationTests.java index 3bf1c0c..5112ecf 100644 --- a/src/test/java/org/springframework/samples/petclinic/PetClinicIntegrationTests.java +++ b/src/test/java/org/springframework/samples/petclinic/PetClinicIntegrationTests.java @@ -20,6 +20,7 @@ import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.SpringApplication; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; import org.springframework.boot.test.web.server.LocalServerPort; @@ -42,6 +43,10 @@ class PetClinicIntegrationTests { @Autowired private RestTemplateBuilder builder; + public static void main(String[] args) { + SpringApplication.run(PetClinicApplication.class, args); + } + @Test void testFindAll() throws Exception { vets.findAll();