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
ComparisonFailureTestCase.assertEquals45
ComparisonFailureTestCase.assertEquals7
Package nameClass namePatterns foundSolution coverageDescription coverage
junit.frameworkTestSuite135
junit.frameworkTestCase47
junit.frameworkAssert25
junit.frameworkTestResult9
junit.frameworkJUnit4TestAdapter6
junit.frameworkTestResult$14
Package nameClass nameMethod namePatterns foundSolution coverage
junit.frameworkTestCaserunBare16
junit.frameworkTestCaserun15
junit.frameworkTestCaseassertEquals5
junit.frameworkTestCaserunTest4
junit.frameworkTestCaseassertTrue2
junit.frameworkTestCaseassertNotNull2
junit.frameworkTestCaseassertNull1
junit.frameworkTestCasefail1
junit.frameworkTestCaseassertFalse1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
junit.frameworkTestCaseassertEqualsAssertionFailedError3
junit.frameworkTestCaseassertEqualsComparisonFailure2