java.lang.AssertionError: expected:<0> but was:<1>

Sonatype JIRA | Peter Lynch | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Re: [powermock] PowerMock/Mockito stability

    Google Groups | 4 years ago | Johan Haleby
    java.lang.AssertionError: expected:<9999> but was:<6789>
  2. 0

    Tests failed and build findbugsmain failure.

    Google Groups | 4 years ago | Michael Clark
    java.lang.AssertionError: expected:<10> but was:<8>
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    [FALCON-1598] Flaky test : EntityManagerJerseyIT.testDuplicateDeleteCommands - ASF JIRA

    apache.org | 1 year ago
    java.lang.AssertionError: expected:<400> but was:<200>
  5. 0

    [FALCON-1598] Flaky test : EntityManagerJerseyIT.testDuplicateDeleteCommands - ASF JIRA

    apache.org | 1 year ago
    java.lang.AssertionError: expected:<400> but was:<200>

  1. arturgajowy 1 times, last 4 weeks ago
  2. Mark 3 times, last 1 month ago
  3. Nikolay Rybak 1 times, last 2 months ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.AssertionError

    expected:<0> but was:<1>

    at org.testng.Assert.fail()
  2. TestNG
    Assert.assertEquals
    1. org.testng.Assert.fail(Assert.java:89)
    2. org.testng.Assert.failNotEquals(Assert.java:489)
    3. org.testng.Assert.assertEquals(Assert.java:118)
    4. org.testng.Assert.assertEquals(Assert.java:365)
    5. org.testng.Assert.assertEquals(Assert.java:375)
    5 frames
  3. org.sonatype.nexus
    Nexus383SearchNGIT.disableEnableSearching
    1. org.sonatype.nexus.integrationtests.nexus383.Nexus383SearchNGIT.searchFor(Nexus383SearchNGIT.java:111)
    2. org.sonatype.nexus.integrationtests.nexus383.Nexus383SearchNGIT.disableEnableSearching(Nexus383SearchNGIT.java:194)
    2 frames