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
AssertionFailedErrorJUnit38ClassRunner.run15
AssertionFailedErrorJUnit38ClassRunner.run6
AssertionFailedErrorJUnit38ClassRunner.run4
Package nameClass namePatterns foundSolution coverageDescription coverage
org.junit.internal.runnersJUnit4ClassRunner12
org.junit.internal.runnersJUnit38ClassRunner12
org.junit.internal.runnersMethodValidator5
org.junit.internal.runnersMethodRoadie4
org.junit.internal.runnersErrorReportingRunner3
org.junit.internal.runnersTestClassMethodsRunner2
org.junit.internal.runnersClassRoadie2
org.junit.internal.runnersTestMethodRunner2
org.junit.internal.runnersJUnit4ClassRunner$11
org.junit.internal.runnersTestMethod1
org.junit.internal.runnersTestClassRunner1
org.junit.internal.runnersOldTestClassRunner1
Package nameClass nameMethod namePatterns foundSolution coverage
org.junit.internal.runnersJUnit38ClassRunnerrun12
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
org.junit.internal.runnersJUnit38ClassRunnerrunAssertionFailedError3
org.junit.internal.runnersJUnit38ClassRunnerrunArrayIndexOutOfBoundsException2
org.junit.internal.runnersJUnit38ClassRunnerrunUnsatisfiedDependencyException1
org.junit.internal.runnersJUnit38ClassRunnerrunUnableToCompleteException1
org.junit.internal.runnersJUnit38ClassRunnerrunNoSuchTableException1
org.junit.internal.runnersJUnit38ClassRunnerrunIllegalStateException1
org.junit.internal.runnersJUnit38ClassRunnerrunJUnitFatalLaunchException1
org.junit.internal.runnersJUnit38ClassRunnerrunTimeoutException1
org.junit.internal.runnersJUnit38ClassRunnerrunBundleException1