java.lang.AssertionError: expected:<22> but was:<12>

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

Solutions on the web

via GitHub by garyrussell
, 1 year ago
expected:<22> but was:<12>
via GitHub by oscerd
, 2 years ago
expected: but was:
via GitHub by Frank-Bradley
, 2 years ago
expected: but was:
via GitHub by hyleung
, 2 years ago
expected:<4> but was:<3>
via GitHub by bardware
, 2 years ago
via GitHub by ejona86
, 2 years ago
expected:<0> but was:<1>
java.lang.AssertionError: expected:<22> but was:<12>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:743)
at org.junit.Assert.assertEquals(Assert.java:118)
at org.junit.Assert.assertEquals(Assert.java:555)
at org.junit.Assert.assertEquals(Assert.java:542)
at org.springframework.integration.redis.store.RedisChannelMessageStoreTests.testPriority(RedisChannelMessageStoreTests.java:130)

Users with the same issue

Once, 1 day ago
Once, 6 days ago
2 times, 1 week ago
Once, 2 weeks ago
Once, 2 weeks ago

Write tip

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