Skip to content

Conversation

@JooHyukKim
Copy link
Member

@JooHyukKim JooHyukKim commented Apr 12, 2023

Description

  • Improves JavaDoc by specifying which exception is thrown DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS
  • Adds more tests regarding configuration of mentioned feature.

@JooHyukKim JooHyukKim changed the title Add suspiciously passing tests on DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS Improve JavaDoc and add tests for DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS Apr 13, 2023
.readValue(a2q("{'node':123}"));
assertNotNull(w2);
assertNull(w2.node);
}
Copy link
Member Author

@JooHyukKim JooHyukKim Apr 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this test result the same , like below test testUnresolvableConfigureFeatureSymmetry()? 🤔
Hopefully, I am mistaken and there is no bug.

You can also refer to another already-existing test in the same class.

@cowtowncoder cowtowncoder merged commit 929d2ef into FasterXML:2.15 Apr 22, 2023
private final ObjectMapper DEFAULT_MAPPER = newJsonMapper();

private final ObjectMapper DISABLED_MAPPER = newJsonMapper()
.configure(DeserializationFeature.FAIL_ON_UNRESOLVED_OBJECT_IDS, false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going forward let's try to use JsonMapper.builder() so code will merge and work with 3.0. I will change this after merging.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🙏🏼🙏🏼

cowtowncoder added a commit that referenced this pull request Apr 22, 2023
@JooHyukKim JooHyukKim deleted the test-unresolved_object_ids branch May 22, 2023 14:00
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