diff --git a/src/test/java/com/saasquatch/jsonschemainferrer/JsonSchemaInferrerOptionsTest.java b/src/test/java/com/saasquatch/jsonschemainferrer/JsonSchemaInferrerOptionsTest.java index e0026d5..6c03c3a 100644 --- a/src/test/java/com/saasquatch/jsonschemainferrer/JsonSchemaInferrerOptionsTest.java +++ b/src/test/java/com/saasquatch/jsonschemainferrer/JsonSchemaInferrerOptionsTest.java @@ -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));