TestingRxJava icon indicating copy to clipboard operation
TestingRxJava copied to clipboard

SubscriberTest failed

Open zezekalo opened this issue 9 years ago • 0 comments

I've got such a log when SubscriberTest failed:

Exception in thread "RxCachedThreadScheduler-1" java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add onError handling. at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:60) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lan org.junit.ComparisonFailure: Expected : Actual :fedepaol <Click to see difference> at org.junit.Assert.assertEquals(Assert.java:115) at org.junit.Assert.assertEquals(Assert.java:144) at com.whiterabbit.rxjavatesting.SubscriberTest.testRubberChickenName(SubscriberTest.java:43) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:251) at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:188) at org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:54) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:152) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runners.Suite.runChild(Suite.java:128) at org.junit.runners.Suite.runChild(Suite.java:27) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)

g.Thread.run(Thread.java:745) Caused by: rx.exceptions.OnErrorNotImplementedException at rx.Observable$27.onError(Observable.java:7535) at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:154) at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:111) at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:137) at rx.internal.operators.OperatorSubscribeOn$1$1$1.onNext(OperatorSubscribeOn.java:76) at rx.internal.util.ScalarSynchronousObservable$ScalarSynchronousAction.call(ScalarSynchronousObservable.java:115) at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55) ... 7 more Caused by: java.lang.NullPointerException at org.robolectric.internal.ShadowExtractor.extract(ShadowExtractor.java:5) at org.robolectric.Shadows.shadowOf(Shadows.java:945) at org.robolectric.shadows.ShadowContextWrapper.getShadowApplication(ShadowContextWrapper.java:297) at org.robolectric.shadows.ShadowContextWrapper.getMainLooper(ShadowContextWrapper.java:293) at android.content.ContextWrapper.getMainLooper(ContextWrapper.java) at com.android.server.accessibility.AccessibilityManagerService.(AccessibilityManagerService.java:232) at org.robolectric.shadows.ShadowAccessibilityManager.getInstance(ShadowAccessibilityManager.java:38) at android.view.accessibility.AccessibilityManager.getInstance(AccessibilityManager.java) at android.view.View.notifyViewAccessibilityStateChangedIfNeeded(View.java:7949) at android.widget.TextView.setText(TextView.java:4053) at android.widget.TextView.setText(TextView.java:3905) at android.widget.TextView.setText(TextView.java:3880) at com.whiterabbit.rxjavatesting.MainActivity$1.call(MainActivity.java:31) at com.whiterabbit.rxjavatesting.MainActivity$1.call(MainActivity.java:28) at rx.Observable$27.onNext(Observable.java:7540) at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:130) ... 10 more

Process finished with exit code 255

zezekalo avatar Jan 25 '16 17:01 zezekalo