IsValidPF extends GenericGeometryPropertyFunction { @Override protected NodeValue applyPredicate(GeometryWrapper geometryWrapper) { Boolean isValid = geometryWrapper.isValid(); return NodeValue.makeNodeBoolean(isValid); }    }
@Test public void testApplyPredicate_true() { GeometryWrapper geometryWrapper = GeometryWrapper.extract("<http: IsValidPF instance = new IsValidPF(); NodeValue expResult = NodeValue.makeNodeBoolean(true); NodeValue result = instance.applyPredicate(geometryWrapper); assertEquals(expResult, result); }
@Test public void testApplyPredicate_false() { GeometryWrapper geometryWrapper = GeometryWrapper.extract("<http: IsValidPF instance = new IsValidPF(); NodeValue expResult = NodeValue.makeNodeBoolean(false); NodeValue result = instance.applyPredicate(geometryWrapper); assertEquals(expResult, result); }