Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixed bug in test
  • Loading branch information
arroy114 committed Oct 21, 2020
commit 21a004ae44ae3e9040ed8d21a88bd1445de6d103
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PersonTest {
@Test
void groupedAssertions() {
//given
Person person = new Person(1l, "Joe", "Buck");
Person person = new Person(1L, "Joe", "Buck");

//then
assertAll("Test Props Set",
Expand All @@ -20,11 +20,11 @@ void groupedAssertions() {
@Test
void groupedAssertionMsgs() {
//given
Person person = new Person(1l, "Joe", "Buck");
Person person = new Person(1L, "Joe", "Buck");

//then
assertAll("Test Props Set",
() -> assertEquals(person.getFirstName(), "Joe", "First Name Failed"),
() -> assertEquals(person.getLastName(), "Buck", "Last Name Failed"));
assertAll("Test Properties Set",
() -> assertEquals("Joe", person.getFirstName(), "First Name Failed"),
() -> assertEquals( "Buck", person.getLastName(),"Last Name Failed"));
}
}