java.lang.AssertionError: expected:<2> but was:<3>

GitHub | ShahimEssaid | 2 years ago
  1. 0

    junit test fails for MolecularModeServer

    GitHub | 2 years ago | ShahimEssaid
    java.lang.AssertionError: expected:<2> but was:<3>
  2. 0

    SpdyConnectionTest.receiveGoAwayHttp2 is flaky

    GitHub | 3 years ago | swankjesse
    java.lang.AssertionError: expected:<1> but was:<0>
  3. 0

    SpdyConnectionTest.pushPromiseStream test is flaky

    GitHub | 3 years ago | JakeWharton
    java.lang.AssertionError: expected:<2> but was:<1>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to run tests on Ubuntu 12.04 LTS

    GitHub | 3 years ago | tophyr
    java.lang.AssertionError: expected:<0> but was:<1>
  6. 0

    WeakNotificationIT intermittent failure

    GitHub | 2 years ago | keith-turner
    java.lang.AssertionError: expected:<39> but was:<15>

  1. fervidnerd 3 times, last 7 days ago
  2. davidvanlaatum 1 times, last 2 weeks ago
  3. andyglick 9 times, last 8 months ago
  4. WoodenDoors 3 times, last 9 months ago
  5. davidvanlaatum 103 times, last 9 months ago
32 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:&lt;2&gt; but was:&lt;3&gt;

    at org.junit.Assert.fail()
  2. JUnit
    Assert.assertEquals
    1. org.junit.Assert.fail(Assert.java:88)
    2. org.junit.Assert.failNotEquals(Assert.java:743)
    3. org.junit.Assert.assertEquals(Assert.java:118)
    4. org.junit.Assert.assertEquals(Assert.java:555)
    5. org.junit.Assert.assertEquals(Assert.java:542)
    5 frames
  3. owltools.gaf.lego
    BatchModelHandlerTest.testModelAnnotations
    1. owltools.gaf.lego.server.handler.BatchModelHandlerTest.testModelAnnotations(BatchModelHandlerTest.java:245)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  5. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    5. org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
    6. org.junit.rules.RunRules.evaluate(RunRules.java:20)
    7. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    9. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    10. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    11. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    12. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    13. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    14. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    15. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    16. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    17. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    17 frames
  6. JUnit4 Provider
    JUnit4Provider.invoke
    1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
    2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
    3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
    3 frames
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  8. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
    2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
    3. org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
    4. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:113)
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
    5 frames