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

  1. ,

    My guess is there is some kind of static state in the code being tested or in the test itself, so the tests aren't isolated. Adding the test changes the test order. In any case, your best course of action is to use the debugger to see why the tests fail.

  2. ,

    Check your assert declaration and the method implementation with the condition.

Solutions on the web

via camel-dev by Christian Müller, 1 year ago
via Hibernate JIRA by Brett Meyer, 1 year ago
expected: java.util.Arrays$ArrayList<[0]> but was: java.util.ArrayList<[0]>
via Hibernate JIRA by Brett Meyer, 1 year ago
expected: java.util.Arrays$ArrayList<[0]> but was: java.util.ArrayList<[0]>
via Hibernate JIRA by Martin Šimka, 1 year ago
expected: java.util.Arrays$ArrayList<[0]> but was: java.util.ArrayList<[0]>
via Hibernate JIRA by Martin Šimka, 1 year ago
expected: java.util.Arrays$ArrayList<[0]> but was: java.util.ArrayList<[0]>
via osdir.com by Unknown author, 2 years ago
There should be one document because overwrite=true expected:<1> but was:<0> at __randomizedtesting.SeedInfo.seed([573006190B77DDC9:DF6439C3A58BB031]:0)
java.lang.AssertionError: The attachement size should be 0  expected:<0>
but was:<2>	at org.junit.Assert.fail(Assert.java:88)	at org.junit.Assert.failNotEquals(Assert.java:743)	at org.junit.Assert.assertEquals(Assert.java:118)	at org.junit.Assert.assertEquals(Assert.java:555)	at org.apache.camel.component.cxf.mtom.CxfMtomPOJOProducerTest.testInvokingServiceFromCxfProducer(CxfMtomPOJOProducerTest.java:91)