Formating

This commit is contained in:
Dassi Orleando 2017-12-01 06:31:30 +01:00
parent 4bf2ec4ecd
commit 235ea3eb78
1 changed files with 4 additions and 3 deletions

View File

@ -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);