Class TestCase

  • All Implemented Interfaces:
    java.lang.Runnable

    public class TestCase
    extends java.lang.Object
    implements java.lang.Runnable
    A set of tests for two Geometry's.
    Version:
    1.7
    • Field Detail

      • description

        private java.lang.String description
      • tests

        private java.util.Vector tests
      • caseIndex

        private int caseIndex
      • lineNumber

        private int lineNumber
      • aWktFile

        private java.io.File aWktFile
      • bWktFile

        private java.io.File bWktFile
      • isRun

        private boolean isRun
    • Constructor Detail

      • TestCase

        public TestCase​(java.lang.String description,
                        Geometry a,
                        Geometry b,
                        java.io.File aWktFile,
                        java.io.File bWktFile,
                        TestRun testRun,
                        int caseIndex,
                        int lineNumber)
        Creates a TestCase with the given description. The tests will be applied to a and b.
    • Method Detail

      • getLineNumber

        public int getLineNumber()
      • setGeometryA

        public void setGeometryA​(Geometry a)
      • setGeometryB

        public void setGeometryB​(Geometry b)
      • setDescription

        public void setDescription​(java.lang.String description)
      • isRun

        public boolean isRun()
      • getGeometryA

        public Geometry getGeometryA()
      • getGeometryB

        public Geometry getGeometryB()
      • getTestCount

        public int getTestCount()
        Returns the number of tests.
        Returns:
        The testCount value
      • getTests

        public java.util.List getTests()
      • getTestRun

        public TestRun getTestRun()
      • getCaseIndex

        public int getCaseIndex()
      • getDescription

        public java.lang.String getDescription()
      • add

        public void add​(Test test)
        Adds a Test to the TestCase.
      • remove

        public void remove​(Test test)
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • toXml

        public java.lang.String toXml()
      • xml

        private java.lang.String xml​(java.lang.String id,
                                     Geometry g,
                                     java.io.File wktFile,
                                     WKTWriter writer)