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

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 cdietrich
, 6 months ago
expected:<[ÄÖÜ]> but was:<[???]>
via htmlunit by dxavier
, 1 year ago
expected:<[false, null, true, [null, false, null, true, , false, , true, , true, yes, false, yes, true, yes]]> but was:<[false, null, true, [checked, false, null, true, , false, null, true, checked, true, yes, false, null, true, checked]]>
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, null, false, [null, true, , true, , true, yes, true, yes]]> but was:<...false, null, false, [checked, true, , true, null, true, yes, true, null]]>
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

Once, 6 months ago
Once, 2 months ago
Once, 2 months ago
7 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
294 more bugmates

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