Skip to content

Commit 1111041

Browse files
committed
Update JsonSchemaInferrerOptionsTest.java
1 parent b351c2f commit 1111041

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/test/java/com/saasquatch/jsonschemainferrer/JsonSchemaInferrerOptionsTest.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -740,14 +740,7 @@ public void testNumberRangeFeatures() {
740740
@Test
741741
public void testFakeGenericFeature() {
742742
// Fake feature that always attaches {"foo":"bar"}
743-
final GenericSchemaFeature fakeFeature = new GenericSchemaFeature() {
744-
@Override
745-
public ObjectNode getFeatureResult(@Nonnull GenericSchemaFeatureInput input) {
746-
final ObjectNode result = jnf.objectNode();
747-
result.put("foo", "bar");
748-
return result;
749-
}
750-
};
743+
final GenericSchemaFeature fakeFeature = input -> jnf.objectNode().put("foo", "bar");
751744
assertSame(GenericSchemaFeatures.noOp(), GenericSchemaFeatures.chained());
752745
assertThrows(NullPointerException.class,
753746
() -> GenericSchemaFeatures.chained(GenericSchemaFeatures.noOp(), null));

0 commit comments

Comments
 (0)