java.lang.AssertionError: expected [1] but found [2]

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 DataStax JIRA by Joaquin Casares, 1 year ago
expected [1] but found [2]
via DataStax JIRA by Joaquin Casares, 1 year ago
expected [1] but found [2]
via JDK Bug System by Amy Lu, 1 year ago
expected [[ 1] (s = 55) custom-key: custom-header Table size: 55] but found [[ 1] (s = 55) custom-key: custom-header Table size: 55]
via GitHub by epishkin
, 2 years ago
expected:<expected value> but was:<null>
via Google Groups by Prakash, 2 years ago
expected:<false> but was:<true>
via GitHub by dhuebner
, 1 year ago
expected [1] but found [2]
java.lang.AssertionError: expected [1] but found [2]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:494)
at org.testng.Assert.assertEquals(Assert.java:123)
at org.testng.Assert.assertEquals(Assert.java:370)
at org.testng.Assert.assertEquals(Assert.java:380)

Users with the same issue

Once, 2 months ago
2 times, 1 month ago
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
21 more bugmates

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