org.junit.ComparisonFailure: 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]]>

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 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 htmlunit by dxavier
, 1 year ago
expected:<[false, , false, [, true, checked, true, checked, true, checked, true, checked]]> but was:<[false, , false, [checked, true, checked, true, , true, checked, true, ]]>
via GitHub by diego-
, 11 months ago
expected:<...2>SECTION TITLE</h2>[ <p>Paragraph text, referenceing <a class="figref">FIG. 1</a> is a side elevational view</p> <p>More text now referenceing <a class="figref">FIG. 2B</a> is a top view</p>]> but was:<...2>SECTION TITLE</h2>[ <p
via GitHub by reprogrammer
, 1 year ago
expected:<...IN_REFACTORING,-1],[[Input]Page,Previe&w >,-1],...> but was:<...IN_REFACTORING,-1],[[Preview]Page,Previe&w >,-1],...>
via GitHub by akaguny
, 7 months ago
expected:<...eleniumGridExtras-1.[1.9]-SNAPSHOT-jar-with-d...> but was:<...eleniumGridExtras-1.[2.3]-SNAPSHOT-jar-with-d...>
via GitHub by mattheworiordan
, 1 year ago
expected:<Test data (enter_[before_attach])> but was:<Test data (enter_[simple])>
org.junit.ComparisonFailure: 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]]>
at org.junit.Assert.assertEquals(Assert.java:123)
at com.gargoylesoftware.htmlunit.WebTestCase.assertEquals(WebTestCase.java:360)
at com.gargoylesoftware.htmlunit.WebTestCase.assertEquals(WebTestCase.java:347)
at com.gargoylesoftware.htmlunit.WebDriverTestCase.verifyAlerts(WebDriverTestCase.java:527)
at com.gargoylesoftware.htmlunit.WebDriverTestCase.loadPageWithAlerts2(WebDriverTestCase.java:513)
at com.gargoylesoftware.htmlunit.WebDriverTestCase.loadPageWithAlerts2(WebDriverTestCase.java:473)
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:616)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at com.gargoylesoftware.htmlunit.BrowserStatement.evaluateSolo(BrowserStatement.java:69)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:24)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
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

7 times, 7 months ago
3 times, 4 months ago
2 times, 6 months ago
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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