junit.framework.AssertionFailedError: expected:<6> but was:<4>

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

Samebug tips

,
Expert tip

This exception could rise due to a connection timeout.

Solutions on the web

via hadoop-mapreduce-dev by Robert Kanter (JIRA), 6 months ago
via apache.org by Unknown author, 2 years ago
expected:<6> but was:<4>
via apache.org by Unknown author, 1 year ago
expected:<6> but was:<4>
via apache.org by Unknown author, 1 year ago
expected:<6> but was:<4>
via grokbase.com by Unknown author, 1 year ago
junit.framework.AssertionFailedError: expected:<6> but was:<4>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:283)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:195)
at org.apache.hadoop.mapred.NotificationTestCase.testMR(NotificationTestCase.java:184)

Users with the same issue

Once, 4 weeks ago
Once, 1 month ago
28 times, 1 month ago
Once, 3 months ago
4 times, 4 months ago

Write tip

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