Instantly share code, notes, and snippets.

@cajar1988 /test1.java Secret
Last active Oct 30, 2015

Embed
What would you like to do?
//given
PersonService personService = new PersonService();
//when
List<Person> persons = personService.fetchAll();
//then
//pure JUnit
assertTrue(persons.isEmpty());
//pure JUnit
assertEquals(0, persons.size());
//AssertJ
assertThat(persons).isEmpty();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment