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
RuntimeExceptionParentRunner$2.evaluate12
RuntimeExceptionParentRunner$2.evaluate3
RuntimeExceptionParentRunner$2.evaluate1
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.runnersParentRunner$2evaluate42
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
org.junit.runnersParentRunner$2evaluateIllegalStateException16
org.junit.runnersParentRunner$2evaluateAssertionError3
org.junit.runnersParentRunner$2evaluateCucumberException3
org.junit.runnersParentRunner$2evaluateRuntimeException3
org.junit.runnersParentRunner$2evaluateBeanCreationException2
org.junit.runnersParentRunner$2evaluateUnsatisfiedDependencyException2
org.junit.runnersParentRunner$2evaluateArrayIndexOutOfBoundsException2
org.junit.runnersParentRunner$2evaluateNoClassDefFoundError2
org.junit.runnersParentRunner$2evaluatejava1
org.junit.runnersParentRunner$2evaluateMockitoException1
org.junit.runnersParentRunner$2evaluateAmbiguousStepDefinitionsException1
org.junit.runnersParentRunner$2evaluateTransactionSystemException1
org.junit.runnersParentRunner$2evaluateIllegalArgumentException1
org.junit.runnersParentRunner$2evaluateWrongPageError1
org.junit.runnersParentRunner$2evaluateCannotReadScriptException1
org.junit.runnersParentRunner$2evaluateApplicationContextException1
org.junit.runnersParentRunner$2evaluateNoSuchMethodError1