org.junit.ComparisonFailure: expected:<[false, , false, [, true, checked, true, checked, true, checked, true, checked]]> but was:<[false, , false, [checked, true, checked, true, , true, checked, true, ]]>

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by cdietrich
, 6 months ago
expected:<[ÄÖÜ]> but was:<[???]>
via htmlunit by dxavier
, 1 year ago
expected:<[false, , true, [, false, , true, checked, false, checked, true, checked, true, checked, false, checked], true, checked]> but was:<[false, , true, [checked, false, , true, checked, false, , true, checked, true, checked, false, ], true, checked]>
via GitHub by danyaljj
, 8 months ago
Expected :1 0:1 5:1 7:1 9:1 11:1 12:1 14:1 15:1 16:1 18:1 19:1 24:1 25:1 27:1 29:1 33:1 34:1 35:1 36:1 37:1 38:1 39:1 40:1 41:1 42:1 43:1 44:1 45:1 46:1 Actual :1 0:1 2:1 5:1 7:1 9:1 10:1 11:1 15:1 18:1 20:1 21:1 22:1 23:1 24:1 27:1 28:1 29:1 33:1 36:1 37:1 38:1 39:1 40:1 41:1 42:1 43:1 44:1 45:1 46:1 <Click to see difference>
via htmlunit by illicitonion
, 1 year ago
expected:<[[1<>5, 5<>2, 1<>2, 5<>1, 2<>1, 1<>1, 5<>9]]> but was:<[[5<>1, 2<>5, 2<>5, 2<>1, 1<>2, 1<>1, 9<>2, 9<>5]]>
via GitHub by nobullet
, 2 years ago
expected: &lt;that's a date: [Jan 1, 1970]&gt; but was:&lt;that's a date: [Dec 31, 1969]&gt;</b>
via GitHub by Balgorinfo
, 1 year ago
expected:<E[ET]> but was:<E[urope/Bucharest]>
org.junit.ComparisonFailure: expected:<[false, , false, [, true, checked, true, checked, true, checked, true, checked]]> but was:<[false, , false, [checked, true, checked, true, , true, checked, true, ]]>
at org.junit.Assert.assertEquals(Assert.java:115)
at com.gargoylesoftware.htmlunit.WebTestCase.assertEquals(WebTestCase.java:339)
at com.gargoylesoftware.htmlunit.WebTestCase.assertEquals(WebTestCase.java:326)
at com.gargoylesoftware.htmlunit.WebDriverTestCase.verifyAlerts(WebDriverTestCase.java:770)
at com.gargoylesoftware.htmlunit.WebDriverTestCase.loadPageWithAlerts2(WebDriverTestCase.java:739)
at com.gargoylesoftware.htmlunit.WebDriverTestCase.loadPageWithAlerts2(WebDriverTestCase.java:697)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
at com.gargoylesoftware.htmlunit.runners.BrowserStatement.evaluateSolo(BrowserStatement.java:76)
at com.gargoylesoftware.htmlunit.runners.BrowserStatement.evaluate(BrowserStatement.java:51)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

Users with the same issue

2 times, 11 months ago
Once, 2 months ago
7 times, 7 months ago
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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