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

GitHub | maggu2810 | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Test failure(s): esh.core.thing: FirmwareUpdateServiceOSGiTest

    GitHub | 7 months ago | maggu2810
    java.lang.AssertionError: Expected: is <3> but: was <2>
  2. 0

    [Test Failures] FirmwareUpdateServiceOSGiTest setup

    GitHub | 4 months ago | sjka
    java.lang.AssertionError: Expected: is <3> but: was <2>
  3. 0

    "Core Tests" test failed

    GitHub | 1 year ago | maggu2810
    java.lang.AssertionError: Expected: is <OFF> but: was <ON>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 740#164681113

    GitHub | 1 year ago | maggu2810
    java.lang.AssertionError: Expected: is <ON> but: was <NULL>
  6. 0

    GitHub comment 718#164434310

    GitHub | 1 year ago | maggu2810
    java.lang.AssertionError: Expected: is <OFF> but: was <ON>

  1. olle.hallin 2 times, last 2 days ago
  2. marcbouvierdav 1 times, last 2 weeks ago
  3. rsprangemeijer 1 times, last 2 weeks ago
  4. Dunmer 4 times, last 2 weeks ago
  5. aldrinleal 2 times, last 2 months ago
8 more registered users
3 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.AssertionError

    Expected: is <3> but: was <2>

    at org.hamcrest.MatcherAssert.assertThat()
  2. Hamcrest
    MatcherAssert.assertThat
    1. org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    1 frame
  3. JUnit
    Assert$assertThat.callStatic
    1. org.junit.Assert.assertThat(Assert.java:865)
    2. org.junit.Assert.assertThat(Assert.java:832)
    3. org.junit.Assert$assertThat.callStatic(Unknown Source)
    3 frames
  4. org.eclipse.smarthome
    FirmwareUpdateServiceOSGiTest$_setup_closure4.doCall
    1. org.eclipse.smarthome.core.thing.firmware.FirmwareUpdateServiceOSGiTest$_setup_closure4.doCall(FirmwareUpdateServiceOSGiTest.groovy:242)
    2. org.eclipse.smarthome.core.thing.firmware.FirmwareUpdateServiceOSGiTest$_setup_closure4.doCall(FirmwareUpdateServiceOSGiTest.groovy)
    2 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    3 frames
  6. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
    3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:292)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1015)
    5. org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)
    6. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    7. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    8. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
    8 frames
  7. org.eclipse.smarthome
    OSGiTest.waitForAssert
    1. org.eclipse.smarthome.test.OSGiTest.waitForAssert(OSGiTest.groovy:181)
    2. org.eclipse.smarthome.test.OSGiTest.waitForAssert(OSGiTest.groovy)
    2 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:497)
    3 frames
  9. Groovy
    AbstractCallSite.callCurrent
    1. org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:207)
    2. org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
    3 frames
  10. org.eclipse.smarthome
    FirmwareUpdateServiceOSGiTest.setup
    1. org.eclipse.smarthome.core.thing.firmware.FirmwareUpdateServiceOSGiTest.setup(FirmwareUpdateServiceOSGiTest.groovy:237)
    1 frame