diff --git a/spring-mockito/pom.xml b/spring-mockito/pom.xml index 3dcca7aab7..c8e0d3b7f5 100644 --- a/spring-mockito/pom.xml +++ b/spring-mockito/pom.xml @@ -34,15 +34,60 @@ - - - - org.springframework.boot - spring-boot-maven-plugin - - - + + + + org.springframework.boot + spring-boot-maven-plugin + + + org.apache.maven.plugins + maven-surefire-plugin + + + **/*IntegrationTest.java + **/*LiveTest.java + + + + + + + + integration + + + + org.apache.maven.plugins + maven-surefire-plugin + + + integration-test + + test + + + + **/*LiveTest.java + + + **/*IntegrationTest.java + + + + + + + json + + + + + + + + UTF-8 1.8 diff --git a/spring-mockito/src/test/java/com/baeldung/UserServiceTest.java b/spring-mockito/src/test/java/com/baeldung/UserServiceIntegrationTest.java similarity index 95% rename from spring-mockito/src/test/java/com/baeldung/UserServiceTest.java rename to spring-mockito/src/test/java/com/baeldung/UserServiceIntegrationTest.java index 631a8634be..70861a96e1 100644 --- a/spring-mockito/src/test/java/com/baeldung/UserServiceTest.java +++ b/spring-mockito/src/test/java/com/baeldung/UserServiceIntegrationTest.java @@ -12,7 +12,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @ActiveProfiles("test") @RunWith(SpringJUnit4ClassRunner.class) @SpringApplicationConfiguration(classes = MocksApplication.class) -public class UserServiceTest { +public class UserServiceIntegrationTest { @Autowired private UserService userService;