junit.framework.AssertionFailedError: expected:<1> but was:<0>

MuleSoft JIRA | Andrew Cooke | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 15.305 sec <<< FAILURE! wait policy with timeout failure (org.mule.util.concurrent.WaitPolicyTestCase) Time elapsed: 1.248 sec <<< FAILURE! junit.framework.AssertionFailedError: expected:<1> but was:<0> at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:280) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:198) at junit.framework.Assert.assertEquals(Assert.java:204) at org.mule.util.concurrent.WaitPolicyTestCase.testWaitPolicyWithTimeoutFailure(WaitPolicyTestCase.java:232) 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:324) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:221) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:201) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125) at org.apache.maven.surefire.Surefire.run(Surefire.java:132) 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:324) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

    MuleSoft JIRA | 9 years ago | andrew cooke
    junit.framework.AssertionFailedError: expected:<1> but was:<0>
  2. 0

    Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 15.305 sec <<< FAILURE! wait policy with timeout failure (org.mule.util.concurrent.WaitPolicyTestCase) Time elapsed: 1.248 sec <<< FAILURE! junit.framework.AssertionFailedError: expected:<1> but was:<0> at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.failNotEquals(Assert.java:280) at junit.framework.Assert.assertEquals(Assert.java:64) at junit.framework.Assert.assertEquals(Assert.java:198) at junit.framework.Assert.assertEquals(Assert.java:204) at org.mule.util.concurrent.WaitPolicyTestCase.testWaitPolicyWithTimeoutFailure(WaitPolicyTestCase.java:232) 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:324) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:221) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:201) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125) at org.apache.maven.surefire.Surefire.run(Surefire.java:132) 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:324) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

    MuleSoft JIRA | 9 years ago | Andrew Cooke
    junit.framework.AssertionFailedError: expected:<1> but was:<0>
  3. 0

    JTrac / Mailing Lists

    sourceforge.net | 1 year ago
    junit.framework.AssertionFailedError: expected:<1> but was:<0>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JTrac / Mailing Lists

    sourceforge.net | 1 year ago
    junit.framework.AssertionFailedError: expected:<1> but was:<0>
  6. 0

    [Mifos-developer] False Alarm Build # 830

    Google Groups | 7 years ago | Udai Gupta
    junit.framework.AssertionFailedError: expected:<1> but was:<0>

  1. tzrlk 2 times, last 7 months ago
8 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. junit.framework.AssertionFailedError

    expected:<1> but was:<0>

    at junit.framework.Assert.fail()
  2. JUnit
    Assert.assertEquals
    1. junit.framework.Assert.fail(Assert.java:47)
    2. junit.framework.Assert.failNotEquals(Assert.java:280)
    3. junit.framework.Assert.assertEquals(Assert.java:64)
    4. junit.framework.Assert.assertEquals(Assert.java:198)
    5. junit.framework.Assert.assertEquals(Assert.java:204)
    5 frames
  3. Mule Core
    WaitPolicyTestCase.testWaitPolicyWithTimeoutFailure
    1. org.mule.util.concurrent.WaitPolicyTestCase.testWaitPolicyWithTimeoutFailure(WaitPolicyTestCase.java:232)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames
  5. JUnit
    TestCase.runBare
    1. junit.framework.TestCase.runTest(TestCase.java:164)
    2. junit.framework.TestCase.runBare(TestCase.java:130)
    2 frames
  6. Mule Functional Test Framework (TCK)
    AbstractMuleTestCase.runBare
    1. org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:221)
    1 frame
  7. JUnit
    TestCase.run
    1. junit.framework.TestResult$1.protect(TestResult.java:106)
    2. junit.framework.TestResult.runProtected(TestResult.java:124)
    3. junit.framework.TestResult.run(TestResult.java:109)
    4. junit.framework.TestCase.run(TestCase.java:120)
    4 frames
  8. Mule Functional Test Framework (TCK)
    AbstractMuleTestCase.run
    1. org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:201)
    1 frame
  9. JUnit
    TestSuite.run
    1. junit.framework.TestSuite.runTest(TestSuite.java:230)
    2. junit.framework.TestSuite.run(TestSuite.java:225)
    2 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:324)
    3 frames
  11. org.apache.maven
    JUnitTestSet.execute
    1. org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
    1 frame
  12. SureFire
    Surefire.run
    1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
    2. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
    3. org.apache.maven.surefire.Surefire.run(Surefire.java:132)
    3 frames
  13. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames
  14. SureFire
    SurefireBooter.main
    1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
    2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
    3. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
    3 frames