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
AssertionFailedErrorAssert.fail999
AssertionFailedErrorAssert.fail9
Package nameClass namePatterns foundSolution coverageDescription coverage
junit.frameworkTestSuite129
junit.frameworkTestCase41
junit.frameworkAssert25
junit.frameworkTestResult8
junit.frameworkJUnit4TestAdapter5
junit.frameworkTestResult$12
Package nameClass nameMethod namePatterns foundSolution coverage
junit.frameworkAssertassertEquals9
junit.frameworkAssertfail5
junit.frameworkAssertassertTrue4
junit.frameworkAssertassertFalse2
junit.frameworkAssertassertNull2
junit.frameworkAssertassertNotNull2
junit.frameworkAssertfailNotEquals1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
junit.frameworkAssertfailAssertionFailedError2
junit.frameworkAssertfailAssertionFailedError1
junit.frameworkAssertfailNullPointerException1
junit.frameworkAssertfailRemoteWebDriver1