org.junit.ComparisonFailure: expected:<[9]> but was:<[NaN]>

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 zheins
, 1 year ago
expected:<[9]> but was:<[NaN]>
via GitHub by wildfly-ci
, 1 year ago
expected:<[1]> but was:<[0]>
via GitHub by wildfly-ci
, 1 year ago
expected:<[1]> but was:<[0]>
via GitHub by wildfly-ci
, 1 year ago
expected:<[2]> but was:<[1]>
org.junit.ComparisonFailure: expected:<[9]> but was:<[NaN]>
at org.junit.Assert.assertEquals(Assert.java:123)
at org.junit.Assert.assertEquals(Assert.java:145)

Users with the same issue

Once, 6 months ago
12 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 day ago
Samebug visitor profile picture
Unknown user
Once, 1 day ago
287 more bugmates

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