java.lang.AssertionError: expected [17] but found [16]

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 Apache's JIRA Issue Tracker by Jordan Zimmerman, 1 year ago
expected [17] but found [16]
via Apache's JIRA Issue Tracker by Jordan Zimmerman, 1 year ago
expected [17] but found [16]
via GitHub by pires
, 2 years ago
expected [7] but found [5]
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 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]
java.lang.AssertionError: expected [17] but found [16]
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:265)
at org.testng.Assert.assertEquals(Assert.java:275)

Users with the same issue

Once, 2 weeks ago
15 times, 6 months ago
Once, 2 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.