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

GitHub | jerrinot | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 9719#274495445

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

    Automated exception search integrated into your IDE

  3. 0

    [TEST-FAILURE] SlowOperationDetector_EntryProcessorTest failures

    GitHub | 2 years ago | bilalyasar
    java.lang.AssertionError: Expected 4 total invocations, but was 3 expected:<4> but was:<3>
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:<2> but was:<4>

    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.client
    ClientHeartbeatTest$6.run
    1. com.hazelcast.client.heartbeat.ClientHeartbeatTest$6.run(ClientHeartbeatTest.java:264)
    1 frame
  4. com.hazelcast.test
    HazelcastTestSupport.assertTrueAllTheTime
    1. com.hazelcast.test.HazelcastTestSupport.assertTrueAllTheTime(HazelcastTestSupport.java:895)
    1 frame
  5. com.hazelcast.client
    ClientHeartbeatTest.testClientEndpointsDelaySeconds_whenHeartbeatResumed
    1. com.hazelcast.client.heartbeat.ClientHeartbeatTest.testClientEndpointsDelaySeconds_whenHeartbeatResumed(ClientHeartbeatTest.java:261)
    1 frame