Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    My guess is there is some kind of static state in the code being tested or in the test itself, so the tests aren't isolated. Adding the test changes the test order. In any case, your best course of action is to use the debugger to see why the tests fail.

  2. ,

    Check your assert declaration and the method implementation with the condition.

Solutions on the web

via GitHub by tkountis
, 1 year ago
Expected :11.0 Actual :22.0 <Click to see difference>
via Google Groups by Rob LaRubbio, 1 month ago
via Cask Community Issue Tracker by Sreevatsan Raman, 1 year ago
expected:<5> but was:<4>
via by Unknown author, 2 years ago
via GitHub by anuraaga
, 10 months ago
expected:<3> but was:<2>
via GitHub by phax
, 2 years ago
expected:<sha512> but was:<null>
java.lang.AssertionError: Expected :11.0
Actual   :22.0
 <Click to see difference>	at	at org.junit.Assert.failNotEquals(	at org.junit.Assert.assertEquals(	at org.junit.Assert.assertEquals(	at com.hazelcast.scheduledexecutor.ScheduledExecutorServiceBasicTest.scheduleRandomPartitions_getAllScheduled(	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(	at sun.reflect.DelegatingMethodAccessorImpl.invoke(	at java.lang.reflect.Method.invoke(	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(	at	at org.junit.runners.model.FrameworkMethod.invokeExplosively(	at org.junit.internal.runners.statements.InvokeMethod.evaluate(