Class AbstractPerformanceTest

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void cleanup()
      Cleanup after test if needed.
      java.util.Map<java.lang.String,​java.lang.Object> computeScores​(int seconds)
      Compute scores and returns as map.
      abstract void executeBlock()
      Executes block of code to be tested.
      abstract java.lang.String getTestName()
      Gets the test name.
      abstract void prepare()
      Prepare test if needed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractPerformanceTest

        public AbstractPerformanceTest()
    • Method Detail

      • executeBlock

        public abstract void executeBlock()
                                   throws java.lang.Exception
        Description copied from interface: PerformanceTest
        Executes block of code to be tested.
        Specified by:
        executeBlock in interface PerformanceTest
        Throws:
        java.lang.Exception
      • getTestName

        public abstract java.lang.String getTestName()
        Description copied from interface: PerformanceTest
        Gets the test name.
        Specified by:
        getTestName in interface PerformanceTest
        Returns:
        the test name
      • prepare

        public abstract void prepare()
                              throws java.lang.Exception
        Description copied from interface: PerformanceTest
        Prepare test if needed.
        Specified by:
        prepare in interface PerformanceTest
        Throws:
        java.lang.Exception - the exception
      • computeScores

        public java.util.Map<java.lang.String,​java.lang.Object> computeScores​(int seconds)
        Description copied from interface: PerformanceTest
        Compute scores and returns as map.
        Specified by:
        computeScores in interface PerformanceTest
        Parameters:
        seconds - the seconds
        Returns:
        the map with test scores