File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
src/test/java/com/saasquatch/jsonschemainferrer Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments