Created
April 2, 2022 13:07
-
-
Save Gogetter/fc8683fee973e5bf1729a1223eb96d4a to your computer and use it in GitHub Desktop.
Revisions
-
Gogetter created this gist
Apr 2, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ class PersonTest { @Test void testWhenPersonFetchedRecordComponentsNotNull() { Map<String, Object> fetchedPerson = PersonHttpUtil.fetchPerson(); Person person = Person.from(fetchedPerson); assertThat(person, notNullValue()); assertThat(person.email(), is(not(emptyOrNullString()))); assertThat(person.fullName(), notNullValue()); assertThat(person.fullName().first(), is(not(emptyOrNullString()))); assertThat(person.fullName().last(), is(not(emptyOrNullString()))); } }