Skip to content

Commit 235ea3e

Browse files
author
Dassi Orleando
committed
Formating
1 parent 4bf2ec4 commit 235ea3e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎spring-jenkins-pipeline/src/test/java/com/baeldung/SomeIntegrationTest.java‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import org.springframework.beans.factory.annotation.Autowired;
1010
import org.springframework.boot.test.context.SpringBootTest;
1111
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
12-
import static org.junit.Assert.*;
12+
13+
import static org.junit.Assert.assertNotEquals;
1314

1415
@RunWith(SpringJUnit4ClassRunner.class)
1516
@SpringBootTest
@@ -19,12 +20,12 @@ public class SomeIntegrationTest {
1920

2021
@Before
2122
public void setup() {
22-
Student student = new Student("Paul", "Smith", "64377473774", "me@mymail.com");
23+
Student student = new Student("Paul", "Smith", "64377473774", "me@mailprovider.com");
2324
studentRepository.save(student);
2425
}
2526

2627
@Test
27-
public void testDB() {
28+
public void whenInserting_andCount_thenWeDontGetZero() {
2829
long count = studentRepository.count();
2930

3031
assertNotEquals(0, count);

0 commit comments

Comments
 (0)