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

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 SyCode7
, 11 months ago
expected:<5> but was:<6>
via GitHub by greplog
, 1 year ago
expected:<UNAVAILABLE> but was:<AVAILABLE>
via GitHub by anuraaga
, 9 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, 6 months ago
expected:<0> but was:<3>
via GitHub by kamejosh
, 2 years ago
expected:<WAV> but was:<MP3>
java.lang.AssertionError: expected:<5> but was:<6>
at org.junit.Assert.failNotEquals(
at org.junit.Assert.assertEquals(
at org.junit.Assert.assertEquals(
at org.stagemonitor.core.metrics.annotations.GaugeInstrumenterTest.testGaugeAspectDefault(

Users with the same issue

5 times, 8 hours ago
Once, 2 days ago
Once, 1 week ago
2 times, 1 week ago
Once, 2 weeks ago

Write tip

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