-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/new method is undefined #8
Conversation
Thanks for the PR. I think your previous naming of |
@cbornet done |
assertEquals(jsonNullable.isUndefined(), !present); | ||
} | ||
|
||
protected void assertValueIsPresent(JsonNullable<?> jsonNullable){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just assertPresent
?
assertValue(jsonNullable, true); | ||
} | ||
|
||
protected void assertValueIsEmpty(JsonNullable<?> jsonNullable){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace with assertUndefined
@@ -31,7 +31,7 @@ public void testPolymorphic14() throws Exception | |||
|
|||
final Container fromJson = MAPPER.readValue(json, Container.class); | |||
assertNotNull(fromJson.contained); | |||
assertTrue(fromJson.contained.isPresent()); | |||
assertValueIsPresent(fromJson.contained ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space after contained
to be removed
@MelleD I totally forgot about this PR ! I'm so very sorry ! |
New method is empty for JsonNullable
#7