|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.sourceforge.javacpt.ComparativePerformanceTestHelper
public class ComparativePerformanceTestHelper
ComparativePerformanceTestHelper
This helper makes you more DRY!
Constructor Summary | |
---|---|
ComparativePerformanceTestHelper()
|
Method Summary | |
---|---|
static ComparativePerformanceTest |
initialize(int executeTimes,
Object target)
Create and initialize ComparativePerformanceTest instance. |
static ComparativePerformanceTest |
initialize(int executeTimes,
Object target,
Logger logger)
Create and initialize ComparativePerformanceTest instance with Logger. |
static long |
invoke(ComparativePerformanceTest test,
Method method,
Object... methodParams)
Invoke ComparativePerformanceTest. (parameter types auto determinable) |
static long |
invoke(ComparativePerformanceTest test,
String methodName)
Invoke ComparativePerformanceTest. (No parameter method) |
static long |
invoke(ComparativePerformanceTest test,
String methodName,
Class<?>[] methodParamTypes,
Object[] methodParams)
Invoke ComparativePerformanceTest. (array of parameter types and array of valued are given) |
static long |
invoke(ComparativePerformanceTest test,
String testName,
Method method,
Object... methodParams)
Invoke ComparativePerformanceTest. (parameter types auto determinable) |
static long |
invoke(ComparativePerformanceTest test,
String testName,
String methodName)
Invoke ComparativePerformanceTest. (No parameter method) |
static long |
invoke(ComparativePerformanceTest test,
String testName,
String methodName,
Class<?>[] methodParamTypes,
Object[] methodParams)
Invoke ComparativePerformanceTest. (array of parameter types and array of valued are given) |
static long |
invoke(ComparativePerformanceTest test,
String testName,
String methodName,
Object... methodParamTypesOrParamObjects)
Invoke ComparativePerformanceTest. (parameter type or value are given) It is interpreted as specified parameter type if first element was Class object. (ex) ComparativePerformanceTestHelper.invoke(test, testName, methodName, List.class, List.class, targetList1, targetList2); |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComparativePerformanceTestHelper()
Method Detail |
---|
public static ComparativePerformanceTest initialize(int executeTimes, Object target) throws IllegalArgumentException
executeTimes
- loop execute timestarget
- target instance or class to invoke method
IllegalArgumentException
public static ComparativePerformanceTest initialize(int executeTimes, Object target, Logger logger) throws IllegalArgumentException
executeTimes
- loop execute timestarget
- target instance or class to invoke methodlogger
- Logger instance
IllegalArgumentException
public static long invoke(ComparativePerformanceTest test, String methodName) throws NoSuchMethodException
test
- test objectmethodName
- test method name
NoSuchMethodException
public static long invoke(ComparativePerformanceTest test, String testName, String methodName) throws NoSuchMethodException
test
- test objecttestName
- test namemethodName
- test method name
NoSuchMethodException
public static long invoke(ComparativePerformanceTest test, Method method, Object... methodParams)
test
- test objectmethod
- method objectmethodParams
- method param values
public static long invoke(ComparativePerformanceTest test, String testName, Method method, Object... methodParams)
test
- test objecttestName
- test namemethod
- method objectmethodParams
- method param values
public static long invoke(ComparativePerformanceTest test, String testName, String methodName, Class<?>[] methodParamTypes, Object[] methodParams) throws NoSuchMethodException
test
- test objecttestName
- test namemethodName
- test method namemethodParamTypes
- method param typesmethodParams
- method param values
NoSuchMethodException
public static long invoke(ComparativePerformanceTest test, String methodName, Class<?>[] methodParamTypes, Object[] methodParams) throws NoSuchMethodException
test
- test objectmethodName
- test method namemethodParamTypes
- method param typesmethodParams
- method param values
NoSuchMethodException
public static long invoke(ComparativePerformanceTest test, String testName, String methodName, Object... methodParamTypesOrParamObjects) throws NoSuchMethodException
test
- test objecttestName
- test namemethodName
- test method namemethodParams
- method param types or values
NoSuchMethodException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |