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
NullPointerExceptionTestSuite.run4
NullPointerExceptionTestSuite.run2
NullPointerExceptionTestSuite.run1
Package nameClass namePatterns foundSolution coverageDescription coverage
junit.frameworkTestSuite129
junit.frameworkTestCase41
junit.frameworkAssert25
junit.frameworkTestResult8
junit.frameworkJUnit4TestAdapter5
junit.frameworkTestResult$13
Package nameClass nameMethod namePatterns foundSolution coverage
junit.frameworkTestSuiterun121
junit.frameworkTestSuiteaddTestMethod2
junit.frameworkTestSuite<init>2
junit.frameworkTestSuitegetTestConstructor1
junit.frameworkTestSuiterunTest1
junit.frameworkTestSuiteaddTestsFromTestCase1
junit.frameworkTestSuitetestAt1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
junit.frameworkTestSuiterunAssertionFailedError60
junit.frameworkTestSuiterunJUnitFatalLaunchException5
junit.frameworkTestSuiterunUnableToCompleteException4
junit.frameworkTestSuiterunIllegalArgumentException3
junit.frameworkTestSuiterunNullPointerException3
junit.frameworkTestSuiterunChainedRuntimeException3
junit.frameworkTestSuiterunNoSuchMethodError3
junit.frameworkTestSuiterunOutOfMemoryError2
junit.frameworkTestSuiterunRuntimeException2
junit.frameworkTestSuiterunUnsatisfiedDependencyException2
junit.frameworkTestSuiterunTimeoutException2
junit.frameworkTestSuiterunSQLException2
junit.frameworkTestSuiterunNoClassDefFoundError2
junit.frameworkTestSuiterunIOException2
junit.frameworkTestSuiterunParsingException1
junit.frameworkTestSuiterunSocketException1
junit.frameworkTestSuiterunThrowable1
junit.frameworkTestSuiterunOpenEJBException1
junit.frameworkTestSuiterunAbstractMethodError1
junit.frameworkTestSuiterunParsingException1
junit.frameworkTestSuiterunArrayIndexOutOfBoundsException1
junit.frameworkTestSuiterunUnsatisfiedLinkError1
junit.frameworkTestSuiterunUnavailableException1
junit.frameworkTestSuiterunStreamCorruptedException1
junit.frameworkTestSuiterunInitialisationException1
junit.frameworkTestSuiterunIllegalStateException1
junit.frameworkTestSuiterunJasperException1
junit.frameworkTestSuiterunServletException1
junit.frameworkTestSuiterunjava1
junit.frameworkTestSuiterunComparisonFailure1
junit.frameworkTestSuiterunAQjmsException1
junit.frameworkTestSuiterunNumberFormatException1
junit.frameworkTestSuiterunTimeoutExpiredException1
junit.frameworkTestSuiterunMalformedURLException1
junit.frameworkTestSuiterunTransformerException1
junit.frameworkTestSuiterunFileNotFoundException1
junit.frameworkTestSuiterunNotFoundException1
junit.frameworkTestSuiterunIOException21
junit.frameworkTestSuiterunConfigurationException1
junit.frameworkTestSuiterunSDBException1