📄 datatestcase.html
字号:
</TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#DataTestCase(java.lang.String)">DataTestCase</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</CODE><BR> Creates a default test case with the given name.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#assertEquals(com.vividsolutions.jts.geom.Geometry, com.vividsolutions.jts.geom.Geometry)">assertEquals</A></B>(<A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Geometry.html" title="class or interface in com.vividsolutions.jts.geom">Geometry</A> expected, <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Geometry.html" title="class or interface in com.vividsolutions.jts.geom">Geometry</A> actual)</CODE><BR> Compares two geometries for equality.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#assertEquals(java.lang.String, com.vividsolutions.jts.geom.Geometry, com.vividsolutions.jts.geom.Geometry)">assertEquals</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> message, <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Geometry.html" title="class or interface in com.vividsolutions.jts.geom">Geometry</A> expected, <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Geometry.html" title="class or interface in com.vividsolutions.jts.geom">Geometry</A> actual)</CODE><BR> Compares two geometries for equality.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#count(org.geotools.data.FeatureReader)">count</A></B>(<A HREF="../../../org/geotools/data/FeatureReader.html" title="interface in org.geotools.data">FeatureReader</A> reader)</CODE><BR> Counts the number of Features returned by the specified reader. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#count(org.geotools.data.FeatureWriter)">count</A></B>(<A HREF="../../../org/geotools/data/FeatureWriter.html" title="interface in org.geotools.data">FeatureWriter</A> writer)</CODE><BR> Counts the number of Features in the specified writer. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#dataSetUp()">dataSetUp</A></B>()</CODE><BR> Loads the data.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/LineString.html" title="class or interface in com.vividsolutions.jts.geom">LineString</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#line(int[])">line</A></B>(int[] xy)</CODE><BR> Creates a line from the specified (<var>x</var>,<var>y</var>) coordinates. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/MultiLineString.html" title="class or interface in com.vividsolutions.jts.geom">MultiLineString</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#lines(int[][])">lines</A></B>(int[][] xy)</CODE><BR> Creates a multiline from the specified (<var>x</var>,<var>y</var>) coordinates.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Polygon.html" title="class or interface in com.vividsolutions.jts.geom">Polygon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#polygon(int[])">polygon</A></B>(int[] xy)</CODE><BR> Creates a polygon from the specified (<var>x</var>,<var>y</var>) coordinates. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Polygon.html" title="class or interface in com.vividsolutions.jts.geom">Polygon</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#polygon(int[], int[][])">polygon</A></B>(int[] xy, int[][] holes)</CODE><BR> Creates a line from the specified (<var>x</var>,<var>y</var>) coordinates and an arbitrary amount of holes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/LinearRing.html" title="class or interface in com.vividsolutions.jts.geom">LinearRing</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#ring(int[])">ring</A></B>(int[] xy)</CODE><BR> Creates a ring from the specified (<var>x</var>,<var>y</var>) coordinates. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#setUp()">setUp</A></B>()</CODE><BR> Invoked before a test is run. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../org/geotools/data/DataTestCase.html#tearDown()">tearDown</A></B>()</CODE><BR> Set all data references to , allowing garbage collection. </TD></TR></TABLE> <A NAME="methods_inherited_from_class_TestCase"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class TestCase</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_Assert"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class Assert</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="gf"><!-- --></A><H3>gf</H3><PRE>protected <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/GeometryFactory.html" title="class or interface in com.vividsolutions.jts.geom">GeometryFactory</A> <B>gf</B></PRE><DL><DL></DL></DL><HR><A NAME="roadType"><!-- --></A><H3>roadType</H3><PRE>protected <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>roadType</B></PRE><DL><DL></DL></DL><HR><A NAME="subRoadType"><!-- --></A><H3>subRoadType</H3><PRE>protected <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>subRoadType</B></PRE><DL><DL></DL></DL><HR><A NAME="roadFeatures"><!-- --></A><H3>roadFeatures</H3><PRE>protected <A HREF="../../../org/geotools/feature/SimpleFeature.html" title="interface in org.geotools.feature">SimpleFeature</A>[] <B>roadFeatures</B></PRE><DL><DL></DL></DL><HR><A NAME="roadBounds"><!-- --></A><H3>roadBounds</H3><PRE>protected <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A> <B>roadBounds</B></PRE><DL><DL></DL></DL><HR><A NAME="rd12Bounds"><!-- --></A><H3>rd12Bounds</H3><PRE>protected <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A> <B>rd12Bounds</B></PRE><DL><DL></DL></DL><HR><A NAME="rd1Filter"><!-- --></A><H3>rd1Filter</H3><PRE>protected <A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A> <B>rd1Filter</B></PRE><DL><DL></DL></DL><HR><A NAME="rd2Filter"><!-- --></A><H3>rd2Filter</H3><PRE>protected <A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A> <B>rd2Filter</B></PRE><DL><DL></DL></DL><HR><A NAME="rd12Filter"><!-- --></A><H3>rd12Filter</H3><PRE>protected <A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A> <B>rd12Filter</B></PRE><DL><DL></DL></DL><HR><A NAME="newRoad"><!-- --></A><H3>newRoad</H3><PRE>protected <A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A> <B>newRoad</B></PRE><DL><DL></DL></DL><HR><A NAME="riverType"><!-- --></A><H3>riverType</H3><PRE>protected <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>riverType</B></PRE><DL><DL></DL></DL><HR><A NAME="subRiverType"><!-- --></A><H3>subRiverType</H3><PRE>protected <A HREF="../../../org/geotools/feature/FeatureType.html" title="interface in org.geotools.feature">FeatureType</A> <B>subRiverType</B></PRE><DL><DL></DL></DL><HR><A NAME="riverFeatures"><!-- --></A><H3>riverFeatures</H3><PRE>protected <A HREF="../../../org/geotools/feature/Feature.html" title="interface in org.geotools.feature">Feature</A>[] <B>riverFeatures</B></PRE><DL><DL></DL></DL><HR><A NAME="riverBounds"><!-- --></A><H3>riverBounds</H3><PRE>protected <A HREF="http://www.jump-project.org/docs/jts/1.7/api/com/vividsolutions/jts/geom/Envelope.html" title="class or interface in com.vividsolutions.jts.geom">Envelope</A> <B>riverBounds</B></PRE><DL><DL></DL></DL><HR><A NAME="rv1Filter"><!-- --></A><H3>rv1Filter</H3><PRE>protected <A HREF="../../../org/geotools/filter/Filter.html" title="interface in org.geotools.filter">Filter</A> <B>rv1Filter</B></PRE><DL><DL></DL></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -