Skip to content

Commit

Permalink
test: create scenario to add null
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Nov 19, 2023
1 parent 6a140ff commit 9bb0720
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,4 +437,15 @@ void shouldToString(){
"[name=name, value=DefaultValue[value=10]]}, name='documentCollection'}");
}

@Test
void shouldCreateNull(){
DocumentEntity entity = DocumentEntity.of("entity");
entity.addNull("name");
Document name = entity.find("name").orElseThrow();
SoftAssertions.assertSoftly(softly -> {
softly.assertThat(name.name()).isEqualTo("name");
softly.assertThat(name.get()).isNull();
});
}

}

0 comments on commit 9bb0720

Please sign in to comment.