ConvertLatLonBox { public static final NodeValue toNodeValue(NodeValue v1, NodeValue v2, NodeValue v3, NodeValue v4) { double latMin = extractDouble(v1); double lonMin = extractDouble(v2); double latMax = extractDouble(v3); double lonMax = extractDouble(v4); Literal wktBox = toLiteral(latMin, lonMin, latMax, lonMax); return NodeValue.makeNode(wktBox.asNode()); }  static final String toWKT(double latMin, double lonMin, double latMax, double lonMax); static final Literal toLiteral(double latMin, double lonMin, double latMax, double lonMax); static final NodeValue toNodeValue(NodeValue v1, NodeValue v2, NodeValue v3, NodeValue v4); static final Node toNode(Node n1, Node n2, Node n3, Node n4);  }
@Test public void testConvert_4args_1() { NodeValue v1 = NodeValue.makeFloat(0.0f); NodeValue v2 = NodeValue.makeFloat(1.0f); NodeValue v3 = NodeValue.makeFloat(10.0f); NodeValue v4 = NodeValue.makeFloat(11.0f); NodeValue expResult = NodeValue.makeNode("<http: NodeValue result = ConvertLatLonBox.toNodeValue(v1, v2, v3, v4); assertEquals(expResult, result); }
@Test public void testConvert_4args_3() { NodeValue v1 = NodeValue.makeString("0.0"); NodeValue v2 = NodeValue.makeString("1.0"); NodeValue v3 = NodeValue.makeString("10.0"); NodeValue v4 = NodeValue.makeString("11.0"); NodeValue expResult = NodeValue.makeNode("<http: NodeValue result = ConvertLatLonBox.toNodeValue(v1, v2, v3, v4); assertEquals(expResult, result); }