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

strutstestcase | *anonymous | 1 decade ago
  1. 0

    MockStrutsTestCase does not call action class

    strutstestcase | 1 decade ago | *anonymous
    junit.framework.AssertionFailedError: expected:<0> but was:<>
  2. 0

    On-device test failure: "IllegalStateException: attempt to use Deflater after calling end"

    GitHub | 3 years ago | swankjesse
    junit.framework.AssertionFailedError: expected:<1> but was:<2>
  3. 0

    Tests fail, can't make this work

    GitHub | 2 years ago | optimuspaul
    junit.framework.AssertionFailedError: expected:<200> but was:<404>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    testExcessiveCheckpointingDuringPushReplication failed(should be isolates/fixed?)

    GitHub | 2 years ago | andreibaranouski
    junit.framework.AssertionFailedError: expected:<6f23713a-9211-4358-9499-ac008655854f> but was:<0b414cd9-ee14-4612-92fb-d793ceb26255>
  6. 0

    ShadowHandler don't process Runnables in expected Thread

    GitHub | 4 years ago | Ponyets
    junit.framework.AssertionFailedError: expected:<Thread[main,5,main]> but was:<Thread[Thread-3,5,main]>

  1. tzrlk 2 times, last 3 months ago
7 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:<0> but was:<>

    at junit.framework.Assert.fail()
  2. JUnit
    Assert.assertEquals
    1. junit.framework.Assert.fail(Assert.java:51)
    2. junit.framework.Assert.failNotEquals(Assert.java:234)
    3. junit.framework.Assert.assertEquals(Assert.java:68)
    4. junit.framework.Assert.assertEquals(Assert.java:75)
    4 frames
  3. test.com.uhg
    PlanSearchActionTest.testAction
    1. test.com.uhg.ut.pbd.bq.standalone.actions.PlanSearchActionTest.testAction(PlanSearchActionTest.java:101)
    1 frame
  4. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  5. JUnit
    TestSuite.run
    1. junit.framework.TestCase.runTest(TestCase.java:166)
    2. junit.framework.TestCase.runBare(TestCase.java:140)
    3. junit.framework.TestResult$1.protect(TestResult.java:106)
    4. junit.framework.TestResult.runProtected(TestResult.java:124)
    5. junit.framework.TestResult.run(TestResult.java:109)
    6. junit.framework.TestCase.run(TestCase.java:131)
    7. junit.framework.TestSuite.runTest(TestSuite.java:173)
    8. junit.framework.TestSuite.run(TestSuite.java:168)
    8 frames
  6. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
    3 frames