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
AssertionFailedErrorTestCase.run38
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.frameworkTestCaserunBare14
junit.frameworkTestCaserun12
junit.frameworkTestCaseassertEquals5
junit.frameworkTestCaserunTest3
junit.frameworkTestCaseassertTrue2
junit.frameworkTestCaseassertNotNull2
junit.frameworkTestCaseassertNull1
junit.frameworkTestCasefail1
junit.frameworkTestCaseassertFalse1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
junit.frameworkTestCaserunjava1
junit.frameworkTestCaserunParsingException1
junit.frameworkTestCaserunNullPointerException1
junit.frameworkTestCaserunNoClassDefFoundError1
junit.frameworkTestCaserunActionExecutionException1
junit.frameworkTestCaserunChainedRuntimeException1
junit.frameworkTestCaserunTimeException1
junit.frameworkTestCaserunRuntimeException1
junit.frameworkTestCaserunAssertionFailedError1
junit.frameworkTestCaserunPlexusContainerException1
junit.frameworkTestCaserunInitialisationException1
junit.frameworkTestCaserunNoSuchMethodError1