Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Feature/new method is undefined #8

wants to merge 3 commits into from

Conversation

MelleD
Copy link
Contributor

@MelleD MelleD commented Jul 1, 2019

New method is empty for JsonNullable
#7

@cbornet
Copy link
Member

cbornet commented Sep 10, 2019

Thanks for the PR. I think your previous naming of isUndefined was more coherent with the rest of the API. I chose undefined instead of empty to avoid confusion with Optional.
Can you rename to isUndefined ?

@MelleD MelleD changed the title Feature/new method is empty Feature/new method is undefined Nov 8, 2019
@MelleD
Copy link
Contributor Author

MelleD commented Nov 8, 2019

@cbornet done

assertEquals(jsonNullable.isUndefined(), !present);
}

protected void assertValueIsPresent(JsonNullable<?> jsonNullable){
Copy link
Member

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){
Copy link
Member

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 );
Copy link
Member

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

@cbornet
Copy link
Member

cbornet commented Nov 1, 2020

@MelleD I totally forgot about this PR ! I'm so very sorry !
I did some comments and it needs to be rebased. Do you still want to work on it ?

@MelleD MelleD closed this Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants