WKTReader implements ParserReader { @Override public DimensionInfo getDimensionInfo() { return dimensionInfo; } 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 testGetDimensionInfo0() { WKTReader instance = new WKTReader("point", "", ""); DimensionInfo expResult = new DimensionInfo(2, 2, 0); DimensionInfo result = instance.getDimensionInfo(); assertEquals(expResult, result); }
@Test public void testGetDimensionInfo2() { WKTReader instance = new WKTReader("point", "", "(11.0 12.0)"); DimensionInfo expResult = new DimensionInfo(2, 2, 0); DimensionInfo result = instance.getDimensionInfo(); assertEquals(expResult, result); }
@Test public void testGetDimensionInfo3a() { WKTReader instance = new WKTReader("point", "z", "(11.0 12.0 7.0)"); DimensionInfo expResult = new DimensionInfo(3, 3, 0); DimensionInfo result = instance.getDimensionInfo(); assertEquals(expResult, result); }
@Test public void testGetDimensionInfo3b() { WKTReader instance = new WKTReader("point", "m", "(11.0 12.0 7.0)"); DimensionInfo expResult = new DimensionInfo(3, 2, 0); DimensionInfo result = instance.getDimensionInfo(); assertEquals(expResult, result); }
@Test public void testGetDimensionInfo4() { WKTReader instance = new WKTReader("point", "zm", "(11.0 12.0 7.0 5.0)"); DimensionInfo expResult = new DimensionInfo(4, 3, 0); DimensionInfo result = instance.getDimensionInfo(); assertEquals(expResult, result); }