public abstract class UnitilsInvocationTestBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected TestExecutor |
testExecutor |
protected TracingTestListener.TestFramework |
testFramework |
protected TracingTestListener |
tracingTestListener |
| Constructor and Description |
|---|
UnitilsInvocationTestBase(TracingTestListener.TestFramework testFramework,
TestExecutor testExecutor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertInvocation(TracingTestListener.Invocation invocation,
Class<?> testClass,
TracingTestListener.TestFramework... testFrameworks) |
void |
assertInvocationOrder(Class<?> testClass1,
Class<?> testClass2) |
protected void |
assertNoMoreInvocations() |
void |
cleanUp() |
void |
init()
Sets up the test installing the tracing test listener that will record all method invocations during the test.
|
protected boolean |
isApplicableFor(TracingTestListener.TestFramework[] testFrameworks) |
static void |
restoreOrginalTestListener() |
static void |
storeOriginalTestListener() |
protected TracingTestListener tracingTestListener
protected TracingTestListener.TestFramework testFramework
protected TestExecutor testExecutor
public UnitilsInvocationTestBase(TracingTestListener.TestFramework testFramework, TestExecutor testExecutor)
public static void storeOriginalTestListener()
public static void restoreOrginalTestListener()
public void init()
throws Exception
Exceptionpublic void assertInvocationOrder(Class<?> testClass1, Class<?> testClass2) throws Exception
Exceptionprotected void assertInvocation(TracingTestListener.Invocation invocation, Class<?> testClass, TracingTestListener.TestFramework... testFrameworks)
protected void assertNoMoreInvocations()
protected boolean isApplicableFor(TracingTestListener.TestFramework[] testFrameworks)
Copyright © 2017. All rights reserved.