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
AssertionErrorBlockJUnit4ClassRunner.runChild9
AssertionErrorBlockJUnit4ClassRunner.runChild8
AssertionErrorBlockJUnit4ClassRunner.runChild5
AssertionErrorBlockJUnit4ClassRunner.runChild4
AssertionErrorBlockJUnit4ClassRunner.runChild3
AssertionErrorBlockJUnit4ClassRunner.runChild2
Package nameClass namePatterns foundSolution coverageDescription coverage
org.junit.runnersParentRunner444
org.junit.runnersBlockJUnit4ClassRunner43
org.junit.runnersParentRunner$242
org.junit.runnersParentRunner$39
org.junit.runnersSuite8
org.junit.runnersParameterized6
org.junit.runnersParentRunner$16
org.junit.runnersBlockJUnit4ClassRunner$11
Package nameClass nameMethod namePatterns foundSolution coverage
org.junit.runnersBlockJUnit4ClassRunner<init>22
org.junit.runnersBlockJUnit4ClassRunnerrunChild13
org.junit.runnersBlockJUnit4ClassRunnercollectInitializationErrors2
org.junit.runnersBlockJUnit4ClassRunnervalidateFields1
org.junit.runnersBlockJUnit4ClassRunnervalidateOnlyOneConstructor1
org.junit.runnersBlockJUnit4ClassRunnervalidateNoNonStaticInnerClass1
org.junit.runnersBlockJUnit4ClassRunnercreateTest1
org.junit.runnersBlockJUnit4ClassRunnermethodBlock1
org.junit.runnersBlockJUnit4ClassRunnervalidateConstructor1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
org.junit.runnersBlockJUnit4ClassRunnerrunChildAssertionError6
org.junit.runnersBlockJUnit4ClassRunnerrunChildException2
org.junit.runnersBlockJUnit4ClassRunnerrunChildNullPointerException1
org.junit.runnersBlockJUnit4ClassRunnerrunChildBeanCreationException1
org.junit.runnersBlockJUnit4ClassRunnerrunChildPinpointPluginTestException1
org.junit.runnersBlockJUnit4ClassRunnerrunChildIllegalStateException1
org.junit.runnersBlockJUnit4ClassRunnerrunChildMockitoException1