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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check your pattern declaration or check your assert declaration.

Solutions on the web

via GitHub by hasancelik
, 1 year ago
expected:<100> but was:<99>
via GitHub by anuraaga
, 7 months ago
expected:<3> but was:<2>
via GitHub by phax
, 2 years ago
expected:<sha512> but was:<null>
via Google Groups by Peter Firmstone, 4 months ago
expected:<0> but was:<3>
via GitHub by kamejosh
, 1 year ago
expected:<WAV> but was:<MP3>
java.lang.AssertionError: expected:<100> but was:<98>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:631)
at com.hazelcast.replicatedmap.ReplicatedMapReadYourWritesTest$1.run(ReplicatedMapReadYourWritesTest.java:59)
at com.hazelcast.test.HazelcastTestSupport.assertTrueEventually(HazelcastTestSupport.java:901)
at com.hazelcast.replicatedmap.ReplicatedMapReadYourWritesTest.testReadYourWritesBySize(ReplicatedMapReadYourWritesTest.java:56)

Users with the same issue

Once, 4 months ago
3 times, 1 month ago
69 times, 1 month ago
52 times, 1 week ago
Once, 3 weeks ago
123 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.