Class Test

  • All Implemented Interfaces:
    Runnable

    public class Test
    extends Object
    implements Runnable
    A test for two geometries.
    Version:
    1.7
    • Constructor Detail

      • Test

        public Test​(TestCase testCase,
                    int testIndex,
                    String description,
                    String operation,
                    String geometryIndex,
                    List<String> arguments,
                    Result expectedResult,
                    double tolerance)
        Creates a Test with the given description. The given operation (e.g. "equals") will be performed, the expected result of which is expectedResult.
    • Method Detail

      • setResult

        public void setResult​(Result result)
      • setArgument

        public void setArgument​(int i,
                                String value)
      • getDescription

        public String getDescription()
      • getGeometryIndex

        public String getGeometryIndex()
      • getExpectedResult

        public Result getExpectedResult()
      • hasExpectedResult

        public boolean hasExpectedResult()
      • getOperation

        public String getOperation()
      • getTestIndex

        public int getTestIndex()
      • getArgument

        public String getArgument​(int i)
      • getArgumentCount

        public int getArgumentCount()
      • isPassed

        public boolean isPassed()
        Returns whether the Test is passed.
      • getException

        public Exception getException()
      • getTestCase

        public TestCase getTestCase()
      • removeArgument

        public void removeArgument​(int i)
      • run

        public void run()
        Specified by:
        run in interface Runnable
      • isRun

        public boolean isRun()
      • getActualResult

        public Result getActualResult()
                               throws Exception
        Computes the actual result and caches the result value.
        Returns:
        the actual result computed
        Throws:
        Exception - if the operation fails
      • toXml

        public String toXml()