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
AssertionErrorAssert.assertEquals1848
AssertionErrorAssert.assertEquals1618
AssertionErrorAssert.assertEquals617
AssertionErrorAssert.assertEquals6
AssertionErrorAssert.assertEquals3
AssertionErrorAssert.assertEquals3
AssertionErrorAssert.assertEquals2
Package nameClass namePatterns foundSolution coverageDescription coverage
org.junitAssert53
org.junitAssume7
Package nameClass nameMethod namePatterns foundSolution coverage
org.junitAssertassertEquals11
org.junitAssertfail8
org.junitAssertassertThat7
org.junitAssertassertTrue5
org.junitAssertassertArrayEquals4
org.junitAssertassertNull4
org.junitAssertassertNotEquals3
org.junitAssertfailNotEquals2
org.junitAssertassertNotSame2
org.junitAssertassertSame2
org.junitAssertassertFalse2
org.junitAssertassertNotNull2
org.junitAssertfailNotNull1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
org.junitAssertassertEqualsAssertionError7
org.junitAssertassertEqualsComparisonFailure2
org.junitAssertassertEqualsAssertionError1
org.junitAssertassertEqualsAssertionFailedError1