Instantly share code, notes, and snippets.

@cajar1988 /test5.java Secret
Last active Nov 1, 2015

Embed
What would you like to do?
@Rule
public final JUnitSoftAssertions softly = new JUnitSoftAssertions();
@Test
public void firstPersonNameMustBeValid() {
//given
PersonService personService = new PersonService();
//when
Person firstPerson = personService.fetchFirst();
//then
softly.assertThat(firstPerson.getFirstName()).contains("Adam")
.startsWith("A")
.endsWith("m")
.hasSize(7);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment