Package org.powermock.core.testlisteners
Class GlobalNotificationBuildSupport
java.lang.Object
org.powermock.core.testlisteners.GlobalNotificationBuildSupport
Core static utility to help modules, such as PowerMockRunner, that needs to
communicate with some 3rd-party framework in order to properly fire
events to PowerMockTestListener instances.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map
<Class<?>, GlobalNotificationBuildSupport.Callback> private static final ThreadLocal
<Class<?>> private static final Map
<String, GlobalNotificationBuildSupport.Callback> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
closeTestSuite
(Class<?> testClass) private static int
countInitializersInTrace
(String className) static void
prepareTestSuite
(String testClassName, GlobalNotificationBuildSupport.Callback callback) static void
testClassInitiated
(Class<?> testClass) static void
testInstanceCreated
(Object testInstance)
-
Field Details
-
testSuiteCallbacks
-
initiatedTestSuiteClasses
private static final Map<Class<?>,GlobalNotificationBuildSupport.Callback> initiatedTestSuiteClasses -
pendingInitiatedTestClass
-
-
Constructor Details
-
GlobalNotificationBuildSupport
public GlobalNotificationBuildSupport()
-
-
Method Details
-
prepareTestSuite
public static void prepareTestSuite(String testClassName, GlobalNotificationBuildSupport.Callback callback) -
testClassInitiated
-
countInitializersInTrace
-
testInstanceCreated
-
closeTestSuite
-
closePendingTestSuites
-