Package com.ibm.icu.dev.test.perf
Class PerfTest.TestPrefixProvider
java.lang.Object
com.ibm.icu.dev.test.perf.PerfTest.TestPrefixProvider
- All Implemented Interfaces:
PerfTest.TestCmdProvider
- Enclosing class:
PerfTest
Treat all method beginning with 'test' prefix (ignoring case) for given
object as the test methods.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTestCmd
(String aname) boolean
private String
isTestCmd_impl
(String name) The given name will map to a method of the same name, or a method named "test" + name.
-
Field Details
-
theTests
-
orgNames
-
refer
-
-
Constructor Details
-
TestPrefixProvider
TestPrefixProvider(Object theProvider)
-
-
Method Details
-
getAllTestCmdNames
- Specified by:
getAllTestCmdNames
in interfacePerfTest.TestCmdProvider
- Returns:
- The names for all available test.
-
isTestCmd_impl
The given name will map to a method of the same name, or a method named "test" + name. Case is ignored. -
isTestCmd
- Specified by:
isTestCmd
in interfacePerfTest.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
- Specified by:
getTestCmd
in interfacePerfTest.TestCmdProvider
- Parameters:
aname
-- Returns:
- the test Command or null
-