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. ,
    Expert tip

    Check your pattern declaration or check your assert declaration.

Solutions on the web

via juddi-user by Javier Molina, 1 year ago
via GitHub by wildfly-ci
, 1 year ago
expected:<1> but was:<0>
via juddi-user by Kurt T Stam, 1 year ago
via juddi-user by Javier Molina, 1 year ago
via juddi-user by Javier Molina, 1 year ago
java.lang.AssertionError: expected:<0> but was:<2>	at org.junit.Assert.fail(Assert.java:91)	at org.junit.Assert.failNotEquals(Assert.java:618)	at org.junit.Assert.assertEquals(Assert.java:126)	at org.junit.Assert.assertEquals(Assert.java:443)	at org.junit.Assert.assertEquals(Assert.java:427)	at org.apache.ws.scout.registry.BusinessLifeCyleManagerlTest.saveDeleteAssociations(BusinessLifeCyleManagerlTest.java:251)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)	at java.lang.reflect.Method.invoke(Method.java:592)	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 org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)	at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)	at org.junit.runners.ParentRunner.run(ParentRunner.java:220)	at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:79)	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)	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)	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)