Class Test

  • All Implemented Interfaces:
    Testable

    public class Test
    extends java.lang.Object
    implements Testable
    A single test that involves running a specific SPARQL query.
    • Constructor Detail

      • Test

        public Test()
      • Test

        public Test​(Test that)
      • Test

        public Test​(java.lang.String name,
                    Test that)
    • Method Detail

      • name

        public java.lang.String name()
        Description copied from interface: Testable
        Returns the name of the test.
        Specified by:
        name in interface Testable
      • isIgnored

        public boolean isIgnored()
      • setIgnored

        public void setIgnored​(boolean ignored)
      • test

        public void test​(java.util.function.Consumer<Test> tester)
        Description copied from interface: Testable
        Runs the tester function on every test included in the testable.
        Specified by:
        test in interface Testable
      • setSuite

        public void setSuite​(TestSuite suite)
      • server

        public java.lang.String server()
      • setServer

        public void setServer​(java.lang.String server)
      • db

        public java.lang.String db()
      • setDb

        public void setDb​(java.lang.String db)
      • queryFile

        public java.lang.String queryFile()
      • setQueryFile

        public void setQueryFile​(java.lang.String queryFile)
      • queryString

        public java.lang.String queryString()
      • setQueryString

        public void setQueryString​(java.lang.String queryString)
      • queryStored

        public java.lang.String queryStored()
      • setQueryStored

        public void setQueryStored​(java.lang.String queryStored)
      • isReasoning

        public java.lang.String isReasoning()
      • setReasoning

        public void setReasoning​(java.lang.String reasoning)
      • resultFile

        public java.lang.String resultFile()
      • setResultFile

        public void setResultFile​(java.lang.String resultFile)
      • resultCount

        public int resultCount()
      • setResultCount

        public void setResultCount​(int resultCount)
      • isResultOrdered

        public boolean isResultOrdered()
      • setResultOrdered

        public void setResultOrdered​(boolean resultOrdered)
      • warmups

        public int warmups()
      • setWarmups

        public void setWarmups​(int warmups)
      • runs

        public int runs()
      • setRuns

        public void setRuns​(int runs)
      • expectedTime

        public long expectedTime()
      • setExpectedTime

        public void setExpectedTime​(long expectedTime)
      • failureThreshold

        public int failureThreshold()
        Threshold expressed as a percentage for specifing when a performance test will be considered failed. For example, if the expectedTime for a test is 100ms and the failure threshold is defined to be 10 then the there will be a performance failure if query execution takes more than 110ms. The percentage can be set to a value higher than 100 if the query execution time is known to fluctuate highly.
      • setFailureThreshold

        public void setFailureThreshold​(int failureThreshold)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(java.lang.String indent)
        Description copied from interface: Testable
        Returns an indented serialization of this object.
        Specified by:
        toString in interface Testable