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 enum
private class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.junit.runner.Description
private Object
private Method
private Object
private static final Pattern
private final Map<org.junit.runner.Description,
NotificationBuilder.OngoingTestRun> private final List<?>
private final PowerMockTestNotifier
private String
private final Method[]
private static final Object[]
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationBuilder
(Method[] testMethods, PowerMockTestNotifier notifier, List<?> pendingTestInstances) -
Method Summary
Modifier and TypeMethodDescription(package private) void
assumptionFailed
(org.junit.runner.Description d) private Method
determineTestMethod
(org.junit.runner.Description d) (package private) void
failure
(org.junit.runner.notification.Failure f) private boolean
private Method
reloadMethod
(Class<?> testClass, Method m) private Class<?>
reloadParamType
(Class<?> testClass, Class<?> typeToReload) (package private) void
testFinished
(org.junit.runner.Description d) (package private) void
testIgnored
(org.junit.runner.Description d) (package private) void
testInstanceCreated
(Object newTestInstance) (package private) void
testStartHasBeenFired
(org.junit.runner.Description d) (package private) void
testSuiteStarted
(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
-