diff --git a/spring-jenkins-pipeline/src/test/java/com/baeldung/SomeIntegrationTest.java b/spring-jenkins-pipeline/src/test/java/com/baeldung/SomeIntegrationTest.java index dd8a234d1d..092ebb93fd 100644 --- a/spring-jenkins-pipeline/src/test/java/com/baeldung/SomeIntegrationTest.java +++ b/spring-jenkins-pipeline/src/test/java/com/baeldung/SomeIntegrationTest.java @@ -9,7 +9,8 @@ import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; -import static org.junit.Assert.*; + +import static org.junit.Assert.assertNotEquals; @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest @@ -19,12 +20,12 @@ public class SomeIntegrationTest { @Before public void setup() { - Student student = new Student("Paul", "Smith", "64377473774", "me@mymail.com"); + Student student = new Student("Paul", "Smith", "64377473774", "me@mailprovider.com"); studentRepository.save(student); } @Test - public void testDB() { + public void whenInserting_andCount_thenWeDontGetZero() { long count = studentRepository.count(); assertNotEquals(0, count);