Home
last modified time | relevance | path

Searched refs:notifier (Results 1 – 25 of 74) sorted by relevance

123

/external/junit/src/main/java/org/junit/internal/runners/model/
DEachTestNotifier.java10 private final RunNotifier notifier; field in EachTestNotifier
14 public EachTestNotifier(RunNotifier notifier, Description description) { in EachTestNotifier() argument
15 this.notifier = notifier; in EachTestNotifier()
23 notifier.fireTestFailure(new Failure(description, targetException)); in addFailure()
34 notifier.fireTestAssumptionFailed(new Failure(description, e)); in addFailedAssumption()
38 notifier.fireTestFinished(description); in fireTestFinished()
42 notifier.fireTestStarted(description); in fireTestStarted()
46 notifier.fireTestIgnored(description); in fireTestIgnored()
/external/junit/src/main/java/org/junit/internal/runners/
DJUnit4ClassRunner.java49 public void run(final RunNotifier notifier) { in run() argument
50 new ClassRoadie(notifier, testClass, getDescription(), new Runnable() { in run()
52 runMethods(notifier); in run()
57 protected void runMethods(final RunNotifier notifier) { in runMethods() argument
59 invokeTestMethod(method, notifier); in runMethods()
85 protected void invokeTestMethod(Method method, RunNotifier notifier) { in invokeTestMethod() argument
91 testAborted(notifier, description, e.getCause()); in invokeTestMethod()
94 testAborted(notifier, description, e); in invokeTestMethod()
98 new MethodRoadie(test, testMethod, notifier, description).run(); in invokeTestMethod()
101 private void testAborted(RunNotifier notifier, Description description, in testAborted() argument
[all …]
DJUnit38ClassRunner.java26 private final RunNotifier notifier; field in JUnit38ClassRunner.OldTestClassAdaptingListener
28 private OldTestClassAdaptingListener(RunNotifier notifier) { in OldTestClassAdaptingListener() argument
29 this.notifier = notifier; in OldTestClassAdaptingListener()
33 notifier.fireTestFinished(asDescription(test)); in endTest()
37 notifier.fireTestStarted(asDescription(test)); in startTest()
43 notifier.fireTestFailure(failure); in addError()
83 public void run(RunNotifier notifier) { in run() argument
85 result.addListener(createAdaptingListener(notifier)); in run()
89 public TestListener createAdaptingListener(final RunNotifier notifier) { in createAdaptingListener() argument
90 return new OldTestClassAdaptingListener(notifier); in createAdaptingListener()
DMethodRoadie.java28 private final RunNotifier notifier; field in MethodRoadie
32 …public MethodRoadie(Object test, TestMethod method, RunNotifier notifier, Description description)… in MethodRoadie() argument
34 this.notifier = notifier; in MethodRoadie()
41 notifier.fireTestIgnored(description); in run()
44 notifier.fireTestStarted(description); in run()
53 notifier.fireTestFinished(description); in run()
160 notifier.fireTestFailure(new Failure(description, e)); in addFailure()
DErrorReportingRunner.java36 public void run(RunNotifier notifier) { in run() argument
38 runCause(each, notifier); in run()
62 private void runCause(Throwable child, RunNotifier notifier) { in runCause() argument
64 notifier.fireTestStarted(description); in runCause()
65 notifier.fireTestFailure(new Failure(description, child)); in runCause()
66 notifier.fireTestFinished(description); in runCause()
DClassRoadie.java20 private RunNotifier notifier; field in ClassRoadie
25 public ClassRoadie(RunNotifier notifier, TestClass testClass, in ClassRoadie() argument
27 this.notifier = notifier; in ClassRoadie()
38 notifier.fireTestFailure(new Failure(description, targetException)); in addFailure()
/external/junit/src/main/java/org/junit/runner/
DJUnitCore.java25 private final RunNotifier notifier = new RunNotifier(); field in JUnitCore
134 notifier.addFirstListener(listener); in run()
136 notifier.fireTestRunStarted(runner.getDescription()); in run()
137 runner.run(notifier); in run()
138 notifier.fireTestRunFinished(result); in run()
152 notifier.addListener(listener); in addListener()
161 notifier.removeListener(listener); in removeListener()
/external/mockito/src/test/java/org/mockito/internal/handler/
DInvocationNotifierHandlerTest.java49 private InvocationNotifierHandler<ArrayList<Answer<?>>> notifier; field in InvocationNotifierHandlerTest
53 notifier = new InvocationNotifierHandler<ArrayList<Answer<?>>>( in setUp()
65 notifier.handle(invocation); in should_notify_all_listeners_when_calling_delegate_handler()
79 notifier.handle(invocation); in should_notify_all_listeners_when_called_delegate_handler_returns_ex()
94 notifier.handle(invocation); in should_notify_all_listeners_when_called_delegate_handler_throws_exception_and_rethrow_it()
108 notifier.handle(invocation); in should_report_listener_exception()
121 notifier.getInvocationContainer(); in should_delegate_all_MockHandlerInterface_to_the_parameterized_MockHandler()
122 notifier.getMockSettings(); in should_delegate_all_MockHandlerInterface_to_the_parameterized_MockHandler()
/external/skqp/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/
DSkQPRunner.java37 private static void Fail(Description desc, RunNotifier notifier, String failure) { in Fail() argument
38 notifier.fireTestFailure(new Failure(desc, new SkQPFailure(failure))); in Fail()
102 public void run(RunNotifier notifier) { in run() argument
113 notifier.fireTestStarted(desc); in run()
123 SkQPRunner.Fail(desc, notifier, String.format("Exception: %s", error)); in run()
127 SkQPRunner.Fail(desc, notifier, String.format( in run()
132 notifier.fireTestFinished(desc); in run()
144 notifier.fireTestStarted(desc); in run()
150 SkQPRunner.Fail(desc, notifier, error); in run()
155 notifier.fireTestFinished(desc); in run()
/external/skia/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/
DSkQPRunner.java37 private static void Fail(Description desc, RunNotifier notifier, String failure) { in Fail() argument
38 notifier.fireTestFailure(new Failure(desc, new SkQPFailure(failure))); in Fail()
102 public void run(RunNotifier notifier) { in run() argument
113 notifier.fireTestStarted(desc); in run()
123 SkQPRunner.Fail(desc, notifier, String.format("Exception: %s", error)); in run()
127 SkQPRunner.Fail(desc, notifier, String.format( in run()
132 notifier.fireTestFinished(desc); in run()
144 notifier.fireTestStarted(desc); in run()
150 SkQPRunner.Fail(desc, notifier, error); in run()
155 notifier.fireTestFinished(desc); in run()
/external/junit/src/main/java/org/junit/runners/
DParentRunner.java112 protected abstract void runChild(T child, RunNotifier notifier); in runChild() argument
189 protected Statement classBlock(final RunNotifier notifier) { in classBlock() argument
190 Statement statement = childrenInvoker(notifier); in classBlock()
264 protected Statement childrenInvoker(final RunNotifier notifier) { in childrenInvoker() argument
268 runChildren(notifier); in childrenInvoker()
284 private void runChildren(final RunNotifier notifier) {
290 ParentRunner.this.runChild(each, notifier);
321 RunNotifier notifier) {
322 EachTestNotifier eachNotifier = new EachTestNotifier(notifier, description);
358 public void run(final RunNotifier notifier) {
[all …]
/external/mockito/src/main/java/org/mockito/internal/runners/
DDefaultInternalRunner.java43 public void run(final RunNotifier notifier) { in DefaultInternalRunner()
74 notifier.fireTestFailure(new Failure(description, t)); in DefaultInternalRunner()
78 notifier.addListener(listener); in DefaultInternalRunner()
79 super.run(notifier); in DefaultInternalRunner()
84 public void run(final RunNotifier notifier) { in run() argument
85 runner.run(notifier); in run()
DStrictRunner.java30 public void run(RunNotifier notifier) { in run() argument
38 notifier.addListener(listener); in run()
39 runner.run(notifier); in run()
49 reporter.validateUnusedStubs(testClass, notifier); in run()
/external/junit-params/src/main/java/junitparams/
DJUnitParamsRunner.java409 protected void runChild(FrameworkMethod method, RunNotifier notifier) { in runChild() argument
411 if (handleIgnored(describableMethod, notifier)) in runChild()
420 frameworkMethod.run(methodBlockSupplier, notifier); in runChild()
424 ((InvokableFrameworkMethod) describableMethod).run(methodBlockSupplier, notifier); in runChild()
451 private boolean handleIgnored(DescribableFrameworkMethod method, RunNotifier notifier) { in handleIgnored() argument
457 notifier.fireTestIgnored(method.getDescription()); in handleIgnored()
/external/ppp/pppd/
Dpppd.h204 struct notifier { struct
205 struct notifier *next; argument
257 extern struct notifier *pidchange; /* for notifications of pid changing */
258 extern struct notifier *phasechange; /* for notifications of phase changes */
259 extern struct notifier *exitnotify; /* for notification that we're exiting */
260 extern struct notifier *sigreceived; /* notification of received signal */
261 extern struct notifier *ip_up_notifier; /* IPCP has come up */
262 extern struct notifier *ip_down_notifier; /* IPCP has gone down */
263 extern struct notifier *ipv6_up_notifier; /* IPV6CP has come up */
264 extern struct notifier *ipv6_down_notifier; /* IPV6CP has gone down */
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUNotifier.java117 private final ICUNotifier notifier; field in ICUNotifier.NotifyThread
120 NotifyThread(ICUNotifier notifier) { in NotifyThread() argument
121 this.notifier = notifier; in NotifyThread()
151 notifier.notifyListener(list[i]); in run()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DICUNotifier.java119 private final ICUNotifier notifier; field in ICUNotifier.NotifyThread
122 NotifyThread(ICUNotifier notifier) { in NotifyThread() argument
123 this.notifier = notifier; in NotifyThread()
153 notifier.notifyListener(list[i]); in run()
/external/vogar/src/vogar/target/junit/
DErrorRunner.java61 public void run(RunNotifier notifier) { in run() argument
62 notifier.fireTestStarted(description); in run()
63 notifier.fireTestFailure(new Failure(description, throwable)); in run()
64 notifier.fireTestFinished(description); in run()
DParentRunnerHelper.java41 Statement statement, Description description, RunNotifier notifier) { in abortingRunLeaf() argument
42 EachTestNotifier eachNotifier = new EachTestNotifier(notifier, description); in abortingRunLeaf()
50 notifier.pleaseStop(); in abortingRunLeaf()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DRobolectricTestRunnerTest.java47 private RunNotifier notifier; field in RobolectricTestRunnerTest
54 notifier = new RunNotifier(); in setUp()
56 notifier.addListener(new RunListener() { in setUp()
85 runner.run(notifier); in ignoredTestCanSpecifyUnsupportedSdkWithoutExploding()
103 runner.run(notifier); in failureInResetterDoesntBreakAllTests()
113 runner.run(notifier); in failureInAppOnCreateDoesntBreakAllTests()
181 runner.run(notifier); in shouldReportPerfStats()
/external/linux-kselftest/tools/testing/selftests/cpu-hotplug/
Dcpu-on-off-test.sh231 NOTIFIER_ERR_INJECT_DIR=$DEBUGFS/notifier-error-inject/cpu
237 /sbin/modprobe -q -r cpu-notifier-error-inject
238 /sbin/modprobe -q cpu-notifier-error-inject priority=$priority
246 echo $msg cpu-notifier-error-inject module is not available >&2
286 /sbin/modprobe -q -r cpu-notifier-error-inject
/external/junit-params/src/main/java/junitparams/internal/
DDeferredErrorFrameworkMethod.java34 public void run(MethodBlockSupplier supplier, RunNotifier notifier) {
37 runMethodInvoker(notifier, getInvokeStatement(notifier), getDescription());
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DDynamicXYPlotActivity.java146 private MyObservable notifier; field in DynamicXYPlotActivity.SampleDynamicXYDatasource
150 notifier = new MyObservable();
177 notifier.notifyObservers(); in run()
212 notifier.addObserver(observer); in addObserver()
216 notifier.deleteObserver(observer); in removeObserver()
/external/linux-kselftest/tools/testing/selftests/memory-hotplug/
Dmem-on-off-test.sh231 NOTIFIER_ERR_INJECT_DIR=$DEBUGFS/notifier-error-inject/memory
237 /sbin/modprobe -q -r memory-notifier-error-inject
238 /sbin/modprobe -q memory-notifier-error-inject priority=$priority
246 echo $msg memory-notifier-error-inject module is not available >&2
289 /sbin/modprobe -q -r memory-notifier-error-inject
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DFailureListener.java15 RunNotifier notifier = new RunNotifier(); in runTests() local
17 notifier.addListener(failureListener); in runTests()
18 new RobolectricTestRunner(testClass).run(notifier); in runTests()

123