java.lang.AssertionError: expected:<100> but was:<98>

GitHub | hasancelik | 9 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

    GitHub comment 8605#235542272

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

    [TEST-FAILURE] ReadWriteThroughJCacheTests.test_loadall_readthrough

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

    Automated exception search integrated into your IDE

  4. 0

    [TEST-FAILURE] MapLoaderMultiNodeTest.testLoadAgain_whenLoadedAllCalledMultipleTimes

    GitHub | 2 years ago | bilalyasar
    java.lang.AssertionError: expected:<2> but was:<3>
  5. 0

    Assertion failure for calculating hour difference

    Stack Overflow | 2 years ago
    java.lang.AssertionError: expected:<500> but was:<514>
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:<100> but was:<98>

    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.replicatedmap
    ReplicatedMapReadYourWritesTest$1.run
    1. com.hazelcast.replicatedmap.ReplicatedMapReadYourWritesTest$1.run(ReplicatedMapReadYourWritesTest.java:59)
    1 frame
  4. com.hazelcast.test
    HazelcastTestSupport.assertTrueEventually
    1. com.hazelcast.test.HazelcastTestSupport.assertTrueEventually(HazelcastTestSupport.java:901)
    1 frame
  5. com.hazelcast.replicatedmap
    ReplicatedMapReadYourWritesTest.testReadYourWritesBySize
    1. com.hazelcast.replicatedmap.ReplicatedMapReadYourWritesTest.testReadYourWritesBySize(ReplicatedMapReadYourWritesTest.java:56)
    1 frame