java.lang.AssertionError: expected:<6> but was:<5>

GitHub | hasancelik | 4 weeks ago
  1. 0

    Stacktrace {noformat} java.lang.AssertionError: expected:<0> but was:<1> at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at org.junit.Assert.assertEquals(Assert.java:472) at org.junit.Assert.assertEquals(Assert.java:456) at org.hibernate.test.annotations.enumerated.EnumeratedTypeTest.testTrimmedEnum(EnumeratedTypeTest.java:365) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:63) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30) at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:62) {noformat}

    Hibernate JIRA | 3 years ago | Martin Ċ imka
    java.lang.AssertionError: expected:<0> but was:<1>
  2. 0

    [TEST-FAILURE] lock.ConditionBasicDistributedTest.testSignalWithSingleWaiter

    GitHub | 1 year ago | hasancelik
    java.lang.AssertionError: expected:<false> but was:<true>
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 182#258150100

    GitHub | 3 months ago | gamerson
    java.lang.AssertionError: expected:<112> but was:<1>
  5. 0

    RxRingBuffer test fails

    GitHub | 3 years ago | tomrozb
    java.lang.AssertionError: expected:<0> but was:<530>
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:<6> but was:<5>

    at org.junit.Assert.fail()
  2. JUnit
    Assert.assertEquals
    1. org.junit.Assert.fail(Assert.java:88)
    2. org.junit.Assert.failNotEquals(Assert.java:834)
    3. org.junit.Assert.assertEquals(Assert.java:645)
    4. org.junit.Assert.assertEquals(Assert.java:631)
    4 frames
  3. com.hazelcast.scheduledexecutor
    ScheduledExecutorServiceTest.stats_manyRepetitionsTask
    1. com.hazelcast.scheduledexecutor.ScheduledExecutorServiceTest.stats_manyRepetitionsTask(ScheduledExecutorServiceTest.java:209)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:622)
    4 frames
  5. JUnit
    InvokeMethod.evaluate
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    4 frames
  6. com.hazelcast.test
    FailOnTimeoutStatement$CallableStatement.call
    1. com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:88)
    2. com.hazelcast.test.FailOnTimeoutStatement$CallableStatement.call(FailOnTimeoutStatement.java:82)
    2 frames
  7. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:166)
    3. java.lang.Thread.run(Thread.java:701)
    3 frames