GeometryDatatype extends BaseDatatype { public static final boolean check(RDFDatatype rdfDatatype) { return checkURI(rdfDatatype.getURI()); } GeometryDatatype(String uri); abstract GeometryWrapper read(String geometryLiteral); @Override final GeometryWrapper parse(String lexicalForm); final GeometryWrapper parse(String lexicalForm, GeometryIndex targetIndex); static final void registerDatatypes(); static final GeometryDatatype get(RDFDatatype rdfDatatype); static final GeometryDatatype get(String datatypeURI); static final boolean checkURI(String datatypeURI); static final boolean check(RDFDatatype rdfDatatype);  }
@Test public void testCheckGeometryDatatype() { RDFDatatype rdfDatatype = WKTDatatype.INSTANCE; boolean expResult = true; boolean result = GeometryDatatype.check(rdfDatatype); assertEquals(expResult, result); }
@Test public void testCheckGeometryDatatype_Fail() { RDFDatatype rdfDatatype = XSDDatatype.XSDdouble; boolean expResult = false; boolean result = GeometryDatatype.check(rdfDatatype); assertEquals(expResult, result); }