Class PerfTest.TestPrefixProvider

java.lang.Object
com.ibm.icu.dev.test.perf.PerfTest.TestPrefixProvider
All Implemented Interfaces:
PerfTest.TestCmdProvider
Enclosing class:
PerfTest

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

    • theTests

      private Map theTests
    • orgNames

      private Set orgNames
    • refer

      private Object refer
  • Constructor Details

    • TestPrefixProvider

      TestPrefixProvider(Object theProvider)
  • Method Details

    • getAllTestCmdNames

      public Set getAllTestCmdNames()
      Specified by:
      getAllTestCmdNames in interface PerfTest.TestCmdProvider
      Returns:
      The names for all available test.
    • isTestCmd_impl

      private String isTestCmd_impl(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(String name)
      Specified by:
      isTestCmd in interface PerfTest.TestCmdProvider
      Parameters:
      name -
      Returns:
      Whether the given name is a test name. The implementation may have more sophisticated naming control here. TestCmdProvider.isTestCmd() != Set.contains()
    • getTestCmd

      public PerfTest.Function getTestCmd(String aname)
      Specified by:
      getTestCmd in interface PerfTest.TestCmdProvider
      Parameters:
      aname -
      Returns:
      the test Command or null