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

GitHub | hasancelik | 2 months ago
  1. 0

    GitHub comment 7958#252552941

    GitHub | 2 months ago | hasancelik
    java.lang.AssertionError: expected:<5> but was:<2>
  2. 0

    SemaphoreSplitBrainTest.testSemaphoreSplitBrain

    GitHub | 8 months ago | hasancelik
    java.lang.AssertionError: expected:<5> but was:<2>
  3. 0

    [TEST-FAILURE] MapLoaderMultiNodeTest.testLoadAgain_whenLoadedAllCalledMultipleTimes

    GitHub | 2 years ago | bilalyasar
    java.lang.AssertionError: expected:<2> but was:<3>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Assertion failure for calculating hour difference

    Stack Overflow | 2 years ago
    java.lang.AssertionError: expected:<500> but was:<514>
  6. 0

    GitHub comment 6007#134166006

    GitHub | 1 year ago | hasancelik
    java.lang.AssertionError: expected:<500> but was:<4156>

  1. davidvanlaatum 1 times, last 1 week ago
  2. andyglick 9 times, last 8 months ago
  3. WoodenDoors 3 times, last 8 months ago
  4. davidvanlaatum 103 times, last 9 months ago
32 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:<5> but was:<2>

    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. Hazelcast
    SemaphoreSplitBrainTest$2.run
    1. com.hazelcast.concurrent.semaphore.SemaphoreSplitBrainTest$2.run(SemaphoreSplitBrainTest.java:78)
    1 frame
  4. com.hazelcast.test
    HazelcastTestSupport.assertTrueEventually
    1. com.hazelcast.test.HazelcastTestSupport.assertTrueEventually(HazelcastTestSupport.java:905)
    2. com.hazelcast.test.HazelcastTestSupport.assertTrueEventually(HazelcastTestSupport.java:919)
    2 frames
  5. Hazelcast
    SemaphoreSplitBrainTest.testSemaphoreSplitBrain
    1. com.hazelcast.concurrent.semaphore.SemaphoreSplitBrainTest.testSemaphoreSplitBrain(SemaphoreSplitBrainTest.java:75)
    1 frame