WKTReader implements ParserReader { @Override public Geometry getGeometry() { return geometry; } protected  WKTReader(String geometryType, String dimensionString, String coordinates, String srsURI); protected  WKTReader(String geometryType, String dimensionString, String coordinates); protected  WKTReader(); @Override Geometry getGeometry(); @Override CoordinateSequenceDimensions getDimensions(); @Override DimensionInfo getDimensionInfo(); @Override String getSrsURI(); static WKTReader extract(String geometryLiteral); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testGetGeometryPoint() { WKTReader instance = new WKTReader("point", "", "(11.0 12.0)"); Geometry expResult = GEOMETRY_FACTORY.createPoint(new CustomCoordinateSequence(CoordinateSequenceDimensions.XY, "11.0 12.0")); Geometry result = instance.getGeometry(); assertEquals(expResult, result); }
@Test public void testGetGeometryPointZ() { WKTReader instance = new WKTReader("point", "z", "(11.0 12.0 8.0)"); Geometry expResult = GEOMETRY_FACTORY.createPoint(new CustomCoordinateSequence(CoordinateSequenceDimensions.XYZ, "11.0 12.0 8.0")); Geometry result = instance.getGeometry(); assertEquals(expResult, result); }