java.lang.AssertionError: Expected: is <3> but: was <2>

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

Solutions on the web

via GitHub by maggu2810
, 1 year ago
Expected: is <OFFLINE (BRIDGE_OFFLINE)> but: was <ONLINE>
via GitHub by maggu2810
, 1 year ago
Expected: is <1> but: was <2>
via GitHub by sjka
, 1 year ago
Expected: is "1.1.2" but: was "1.1.1"
via GitHub by sjka
, 9 months ago
Expected: is <ON> but: was <OFF>
via GitHub by sjka
, 1 year ago
Expected: is not null but: was null
java.lang.AssertionError: Expected: is <3> but: was <2>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:865)
at org.junit.Assert.assertThat(Assert.java:832)
at org.eclipse.smarthome.core.thing.firmware.FirmwareUpdateServiceOSGiTest$_setup_closure4.doCall(FirmwareUpdateServiceOSGiTest.groovy:242)
at org.eclipse.smarthome.core.thing.firmware.FirmwareUpdateServiceOSGiTest$_setup_closure4.doCall(FirmwareUpdateServiceOSGiTest.groovy)
at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:292)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1015)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.eclipse.smarthome.test.OSGiTest.waitForAssert(OSGiTest.groovy:181)
at org.eclipse.smarthome.test.OSGiTest.waitForAssert(OSGiTest.groovy)
at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:207)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56)
at org.eclipse.smarthome.core.thing.firmware.FirmwareUpdateServiceOSGiTest.setup(FirmwareUpdateServiceOSGiTest.groovy:237)

Users with the same issue

Once, 2 months ago
3 times, 4 months ago
Once, 8 months ago
Once, 10 months ago
4 times, 1 month ago
19 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.