Class NotificationBuilder
java.lang.Object
org.powermock.modules.junit4.internal.impl.NotificationBuilder
Stateful class that, from information from JUnit and test-classes,
can build and send notifications to PowerMockTestNotifier.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.junit.runner.Descriptionprivate Objectprivate Methodprivate Objectprivate static final Patternprivate final Map<org.junit.runner.Description, NotificationBuilder.OngoingTestRun> private final List<?> private final PowerMockTestNotifierprivate Stringprivate final Method[]private static final Object[] -
Constructor Summary
ConstructorsConstructorDescriptionNotificationBuilder(Method[] testMethods, PowerMockTestNotifier notifier, List<?> pendingTestInstances) -
Method Summary
Modifier and TypeMethodDescription(package private) voidassumptionFailed(org.junit.runner.Description d) private MethoddetermineTestMethod(org.junit.runner.Description d) (package private) voidfailure(org.junit.runner.notification.Failure f) private booleanprivate MethodreloadMethod(Class<?> testClass, Method m) private Class<?> reloadParamType(Class<?> testClass, Class<?> typeToReload) (package private) voidtestFinished(org.junit.runner.Description d) (package private) voidtestIgnored(org.junit.runner.Description d) (package private) voidtestInstanceCreated(Object newTestInstance) (package private) voidtestStartHasBeenFired(org.junit.runner.Description d) (package private) voidtestSuiteStarted(Class<?> testClass)
-
Field Details
-
methodDisplayNameRgx
-
testMethods
-
pendingTestInstances
-
powerMockTestNotifier
-
behaviour
-
currentDescription
private org.junit.runner.Description currentDescription -
currentTestInstance
-
testClassName
-
latestTestInstance
-
latestMethod
-
unsupportedMethodArgs
-
methodsPerInstance
-
ongoingTestRuns
-
-
Constructor Details
-
NotificationBuilder
public NotificationBuilder(Method[] testMethods, PowerMockTestNotifier notifier, List<?> pendingTestInstances)
-
-
Method Details
-
determineTestMethod
-
reloadParamType
-
reloadMethod
-
testSuiteStarted
-
testStartHasBeenFired
void testStartHasBeenFired(org.junit.runner.Description d) -
testInstanceCreated
-
testIgnored
void testIgnored(org.junit.runner.Description d) -
assumptionFailed
void assumptionFailed(org.junit.runner.Description d) -
failure
void failure(org.junit.runner.notification.Failure f) -
testFinished
void testFinished(org.junit.runner.Description d) -
notify
- Returns:
- true if notification concerns an ongoing testrun; otherwise false when there is no test launched for the specified description
-