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
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.
-
-
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<java.lang.String>
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.
-
-
-
Method Detail
-
getAllTestCmdNames
public java.util.Set<java.lang.String> getAllTestCmdNames()
- Specified by:
getAllTestCmdNames
in interfacePerfTest.TestCmdProvider
- Returns:
- The names for all available test.
-
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 interfacePerfTest.TestCmdProvider
- 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(java.lang.String aname)
- Specified by:
getTestCmd
in interfacePerfTest.TestCmdProvider
- Returns:
- the test Command or null
-
-