public class PerformanceRunner
extends org.junit.runners.BlockJUnit4ClassRunner
| Modifier and Type | Class and Description |
|---|---|
static interface |
PerformanceRunner.Parameters |
static class |
PerformanceRunner.ReportLevel |
| Modifier and Type | Field and Description |
|---|---|
String |
referenceMethod |
PerformanceRunner.ReportLevel |
reportLevel |
protected LinkedList<org.junit.runners.model.FrameworkMethod> |
tests |
| Constructor and Description |
|---|
PerformanceRunner(Class<?> clazz) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<? extends org.junit.runners.model.FrameworkMethod> |
computePerformanceTests()
Compute performance tests
|
protected List<org.junit.runners.model.FrameworkMethod> |
computeTestMethods() |
protected void |
computeTests()
Compute the tests that will be run
|
void |
run(org.junit.runner.notification.RunNotifier notifier) |
protected void |
validateInstanceMethods(List<Throwable> errors)
Need to override method otherwise the validation will fail because of
some hardcoded conditions in JUnit
|
collectInitializationErrors, createTest, describeChild, getChildren, methodBlock, methodInvoker, possiblyExpectingExceptions, runChild, testName, validateConstructor, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutprotected LinkedList<org.junit.runners.model.FrameworkMethod> tests
public PerformanceRunner.ReportLevel reportLevel
public String referenceMethod
public PerformanceRunner(Class<?> clazz) throws org.junit.runners.model.InitializationError
org.junit.runners.model.InitializationErrorpublic void run(org.junit.runner.notification.RunNotifier notifier)
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>protected void computeTests()
throws Exception
Exceptionprotected Collection<? extends org.junit.runners.model.FrameworkMethod> computePerformanceTests() throws Exception
Exceptionprotected List<org.junit.runners.model.FrameworkMethod> computeTestMethods()
computeTestMethods in class org.junit.runners.BlockJUnit4ClassRunnerBlockJUnit4ClassRunner.computeTestMethods()Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.