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

GitHub | maggu2810 | 4 months ago
  1. 0

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

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

    Test failure(s): AbstractWatchServiceTest

    GitHub | 5 months ago | tomhoefer
    java.lang.AssertionError: Exactly two watch events were expected within 3 seconds, but were: [] Expected: is <2> but: was <0>
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    rexsl-test failure

    GitHub | 4 years ago | simonjenga
    java.lang.AssertionError: XPath '//y[.='\u0443\u0440\u0430!']' has to exist in: HTTP request: HTTP request body HTTP response (200): <x a='1'><!-- hi --><y>???!</y></x> Expected: not an empty collection but: was <ListWrapper(original=[], dom=[x: null], xpath=//y[.='???!'])>

  1. olle.hallin 1 times, last 1 week ago
  2. davidvanlaatum 7 times, last 3 weeks ago
  3. cesarnog 1 times, last 2 months ago
  4. tfr 1 times, last 3 months ago
  5. qoomon 1 times, last 4 months ago
1 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 <1> but: was <3>

    at org.hamcrest.MatcherAssert.assertThat()
  2. Hamcrest
    MatcherAssert.assertThat
    1. org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    1 frame
  3. JUnit
    Assert$assertThat$1.callStatic
    1. org.junit.Assert.assertThat(Assert.java:865)
    2. org.junit.Assert.assertThat(Assert.java:832)
    3. org.junit.Assert$assertThat$1.callStatic(Unknown Source)
    3 frames
  4. org.eclipse.smarthome
    FirmwareUpdateServiceOSGiTest$_assertFirmwareStatusInfoEvent_closure42.doCall
    1. org.eclipse.smarthome.core.thing.firmware.FirmwareUpdateServiceOSGiTest$_assertFirmwareStatusInfoEvent_closure42.doCall(FirmwareUpdateServiceOSGiTest.groovy:822)
    2. org.eclipse.smarthome.core.thing.firmware.FirmwareUpdateServiceOSGiTest$_assertFirmwareStatusInfoEvent_closure42.doCall(FirmwareUpdateServiceOSGiTest.groovy)
    2 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    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:278)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
    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.GeneratedMethodAccessor26.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    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.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
    4. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
    5. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
    5 frames
  10. org.eclipse.smarthome
    FirmwareUpdateServiceOSGiTest.this$3$assertFirmwareStatusInfoEvent
    1. org.eclipse.smarthome.core.thing.firmware.FirmwareUpdateServiceOSGiTest.assertFirmwareStatusInfoEvent(FirmwareUpdateServiceOSGiTest.groovy:821)
    2. org.eclipse.smarthome.core.thing.firmware.FirmwareUpdateServiceOSGiTest.this$3$assertFirmwareStatusInfoEvent(FirmwareUpdateServiceOSGiTest.groovy)
    2 frames