diff --git a/pet-clinic-data/pom.xml b/pet-clinic-data/pom.xml index f61c923c5..24f2e2e56 100644 --- a/pet-clinic-data/pom.xml +++ b/pet-clinic-data/pom.xml @@ -34,6 +34,22 @@ org.springframework.boot spring-boot-starter-test test + + + junit + junit + + + + + org.junit.jupiter + junit-jupiter-api + test + + + org.junit.jupiter + junit-jupiter-engine + test @@ -53,6 +69,17 @@ + + maven-surefire-plugin + 2.22.0 + + + org.junit.platform + junit-platform-surefire-provider + ${junit-platform.version} + + + \ No newline at end of file diff --git a/pet-clinic-web/pom.xml b/pet-clinic-web/pom.xml index 5bdbb6ed1..c60cbb67b 100644 --- a/pet-clinic-web/pom.xml +++ b/pet-clinic-web/pom.xml @@ -76,6 +76,22 @@ org.springframework.boot spring-boot-starter-test test + + + junit + junit + + + + + org.junit.jupiter + junit-jupiter-api + test + + + org.junit.jupiter + junit-jupiter-engine + test @@ -108,6 +124,17 @@ + + maven-surefire-plugin + 2.22.0 + + + org.junit.platform + junit-platform-surefire-provider + ${junit-platform.version} + + + \ No newline at end of file diff --git a/pet-clinic-web/src/test/java/guru/springframework/sfgpetclinic/SfgPetClinicApplicationTests.java b/pet-clinic-web/src/test/java/guru/springframework/sfgpetclinic/SfgPetClinicApplicationTests.java index 763ffdb39..aef55b20d 100644 --- a/pet-clinic-web/src/test/java/guru/springframework/sfgpetclinic/SfgPetClinicApplicationTests.java +++ b/pet-clinic-web/src/test/java/guru/springframework/sfgpetclinic/SfgPetClinicApplicationTests.java @@ -1,11 +1,13 @@ package guru.springframework.sfgpetclinic; -import org.junit.Test; -import org.junit.runner.RunWith; + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.test.context.junit4.SpringRunner; +import org.springframework.test.context.junit.jupiter.SpringExtension; + -@RunWith(SpringRunner.class) +@ExtendWith(SpringExtension.class) @SpringBootTest public class SfgPetClinicApplicationTests {