Class NotificationBuilder

java.lang.Object
org.powermock.modules.junit4.internal.impl.NotificationBuilder

class NotificationBuilder extends Object
Stateful class that, from information from JUnit and test-classes, can build and send notifications to PowerMockTestNotifier.
  • Field Details

    • methodDisplayNameRgx

      private static final Pattern methodDisplayNameRgx
    • testMethods

      private final Method[] testMethods
    • pendingTestInstances

      private final List<?> pendingTestInstances
    • powerMockTestNotifier

      private final PowerMockTestNotifier powerMockTestNotifier
    • behaviour

    • currentDescription

      private org.junit.runner.Description currentDescription
    • currentTestInstance

      private Object currentTestInstance
    • testClassName

      private String testClassName
    • latestTestInstance

      private Object latestTestInstance
    • latestMethod

      private Method latestMethod
    • unsupportedMethodArgs

      private static final Object[] unsupportedMethodArgs
    • methodsPerInstance

      private final Map<Object,List<Method>> methodsPerInstance
    • ongoingTestRuns

      private final Map<org.junit.runner.Description,NotificationBuilder.OngoingTestRun> ongoingTestRuns
  • Constructor Details

  • Method Details

    • determineTestMethod

      private Method determineTestMethod(org.junit.runner.Description d)
    • reloadParamType

      private Class<?> reloadParamType(Class<?> testClass, Class<?> typeToReload)
    • reloadMethod

      private Method reloadMethod(Class<?> testClass, Method m)
    • testSuiteStarted

      void testSuiteStarted(Class<?> testClass)
    • testStartHasBeenFired

      void testStartHasBeenFired(org.junit.runner.Description d)
    • testInstanceCreated

      void testInstanceCreated(Object newTestInstance)
    • 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

      private boolean notify(org.junit.runner.Description d, Result result)
      Returns:
      true if notification concerns an ongoing testrun; otherwise false when there is no test launched for the specified description