Skip to content

Commit

Permalink
Update JsonSchemaInferrerOptionsTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
slisaasquatch committed Jan 5, 2024
1 parent b351c2f commit 1111041
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -740,14 +740,7 @@ public void testNumberRangeFeatures() {
@Test
public void testFakeGenericFeature() {
// Fake feature that always attaches {"foo":"bar"}
final GenericSchemaFeature fakeFeature = new GenericSchemaFeature() {
@Override
public ObjectNode getFeatureResult(@Nonnull GenericSchemaFeatureInput input) {
final ObjectNode result = jnf.objectNode();
result.put("foo", "bar");
return result;
}
};
final GenericSchemaFeature fakeFeature = input -> jnf.objectNode().put("foo", "bar");
assertSame(GenericSchemaFeatures.noOp(), GenericSchemaFeatures.chained());
assertThrows(NullPointerException.class,
() -> GenericSchemaFeatures.chained(GenericSchemaFeatures.noOp(), null));
Expand Down

0 comments on commit 1111041

Please sign in to comment.