ConvexHullFF extends FunctionBase1 { @Override public NodeValue exec(NodeValue v) { try { GeometryWrapper geometry = GeometryWrapper.extract(v); GeometryWrapper convexHull = geometry.convexHull(); return convexHull.asNodeValue(); } catch (DatatypeFormatException ex) { throw new ExprEvalException(ex.getMessage(), ex); } }  @Override NodeValue exec(NodeValue v);  }
@Test public void testExec() { NodeValue v = NodeValue.makeNode("<http: ConvexHullFF instance = new ConvexHullFF(); NodeValue expResult = NodeValue.makeNode("<http: NodeValue result = instance.exec(v); assertEquals(expResult, result); }
@Test public void testExec2() { NodeValue v = NodeValue.makeNode("<http: ConvexHullFF instance = new ConvexHullFF(); NodeValue expResult = NodeValue.makeNode("<http: NodeValue result = instance.exec(v); assertEquals(expResult, result); }