JUnit errors

http://junit.org

A unit testing framework for Java

Documented:

Top patterns

  1. Assert.fail() has thrown an AssertionError

    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. Assert.failNotEquals() has thrown an AssertionError
    No solution
  3. Assert.assertTrue() has thrown an AssertionError

    Check your pattern declaration or check your assert declaration.


DescriptionException TypeEntry MethodWeb pages
RuntimeExceptionRunAfters.evaluate8
Package nameClass namePatterns foundSolution coverageDescription coverage
org.junit.internal.runners.statementsInvokeMethod21
org.junit.internal.runners.statementsRunBefores9
org.junit.internal.runners.statementsRunAfters6
org.junit.internal.runners.statementsExpectException5
org.junit.internal.runners.statementsFailOnTimeout1
Package nameClass nameMethod namePatterns foundSolution coverage
org.junit.internal.runners.statementsRunAftersevaluate6
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
org.junit.internal.runners.statementsRunAftersevaluateMultipleFailureException2
org.junit.internal.runners.statementsRunAftersevaluateAssertionError1
org.junit.internal.runners.statementsRunAftersevaluateVerifyError1
org.junit.internal.runners.statementsRunAftersevaluateRuntimeException1
org.junit.internal.runners.statementsRunAftersevaluateNoClassDefFoundError1