Class PerfTest.TestPrefixProvider

  • All Implemented Interfaces:
    PerfTest.TestCmdProvider
    Enclosing class:
    PerfTest

    static class PerfTest.TestPrefixProvider
    extends java.lang.Object
    implements PerfTest.TestCmdProvider
    Treat all method beginning with 'test' prefix (ignoring case) for given object as the test methods.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Set orgNames  
      private java.lang.Object refer  
      private java.util.Map theTests  
    • Constructor Summary

      Constructors 
      Constructor Description
      TestPrefixProvider​(java.lang.Object theProvider)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set getAllTestCmdNames()  
      PerfTest.Function getTestCmd​(java.lang.String aname)  
      boolean isTestCmd​(java.lang.String name)  
      private java.lang.String isTestCmd_impl​(java.lang.String name)
      The given name will map to a method of the same name, or a method named "test" + name.
      • Methods inherited from class java.lang.Object

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

      • theTests

        private java.util.Map theTests
      • orgNames

        private java.util.Set orgNames
      • refer

        private java.lang.Object refer
    • Constructor Detail

      • TestPrefixProvider

        TestPrefixProvider​(java.lang.Object theProvider)
    • Method Detail

      • isTestCmd_impl

        private java.lang.String isTestCmd_impl​(java.lang.String name)
        The given name will map to a method of the same name, or a method named "test" + name. Case is ignored.
      • isTestCmd

        public boolean isTestCmd​(java.lang.String name)
        Specified by:
        isTestCmd in interface PerfTest.TestCmdProvider
        Returns:
        Whether the given name is a test name. The implementation may have more sophisticated naming control here. TestCmdProvider.isTestCmd() != Set.contains()