JUnit errors

A unit testing framework for Java

http://junit.org
Solution coverage:
Summary coverage:

Top patterns

  1. JUnit string comparison failed

    ComparisonFailure is thrown when using JUnit's internal assertions to compare two strings that are not equal. The simplest code to reproduce the error is the following:

    import static org.junit.Assert.assertEquals;
    
    public class StringComparisonTest { 
    
       @Test 
       public void shouldAssertStrings() { 
                  assertEquals("1", "2"); 
       } 
    }
    

    Mind the static import. The assertEquals is part of the JUnit API.

  2. Assert.assertEquals() has thrown a DomainTestSuite
    No solution
  3. Assert.assertEquals() has thrown a NullPointerException
    No solution

DescriptionException TypeEntry MethodWeb pages

JUnit string comparison failed

org.junit.ComparisonFailure
org.junit.Assert.assertEquals
741Web pages
1Solution
ComparisonFailureAssert.assertEquals741

Assert.assertEquals() has thrown a DomainTestSuite

org.jboss.as.test.integration.domain.suites.DomainTestSuite
1 frames hidden
org.junit.Assert.assertEquals
9Web pages
DomainTestSuiteAssert.assertEquals9

Assert.assertEquals() has thrown a NullPointerException

java.lang.NullPointerException
5 frames hidden
org.junit.Assert.assertEquals
0Web pages
NullPointerExceptionAssert.assertEquals0
Package namePatterns foundSolution coverageSummary coverage
org.junit.runners1326
org.junit.internal.runners.statements143
org.junit.internal.requests140
junit.framework139
org.junit.runners.model81
org.junit67
org.junit.internal.runners47
org.junit.runner37
org.junit.rules31
org.junit.internal.builders21
org.junit.internal.runners.model18
org.junit.runner.notification9
org.junit.internal.runners.rules3
org.junit.experimental.categories3
org.junit.runner.manipulation2
junit.extensions2
org.junit.internal2
junit.runner1
org.junit.experimental.theories1
junit.swingui1
junit.textui1
Package nameClass namePatterns foundSolution coverageSummary coverage
org.junitAssert62
org.junitAssume6
Package nameClass nameMethod namePatterns foundSolution coverage
org.junitAssertassertEquals19
org.junitAssertfail9
org.junitAssertassertThat7
org.junitAssertassertTrue5
org.junitAssertassertNull4
org.junitAssertassertArrayEquals4
org.junitAssertassertNotEquals3
org.junitAssertfailNotEquals2
org.junitAssertassertNotNull2
org.junitAssertassertNotSame2
org.junitAssertassertSame2
org.junitAssertassertFalse2
org.junitAssertfailNotNull1
Package nameClass nameMethod nameException TypePatterns foundSolution coverage
org.junitAssertassertEqualsAssertionError7
org.junitAssertassertEqualsArrayIndexOutOfBoundsException6
org.junitAssertassertEqualsNullPointerException1
org.junitAssertassertEqualsAssertionFailedError1
org.junitAssertassertEqualsNoClassDefFoundError1
org.junitAssertassertEqualsComparisonFailure1
org.junitAssertassertEqualsDomainTestSuite1
org.junitAssertassertEqualsAssertionError1