From 769cfc242386223ebc08f3e8efd11c1ddc1cc019 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 | 4 ++-- .../samples/petclinic/PetClinicIntegrationTests.java | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index ab86484..0c90f94 100644 --- a/pom.xml +++ b/pom.xml @@ -31,7 +31,7 @@ 0.8.8 0.0.11 0.0.39 - 3.0.0 + 3.2.0 @@ -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();