java.lang.AssertionError: expected:<M.A [@0,0:1='ab',<1>,1:0] [@1,2:1='<EOF>',<-1>,1:2] > but was:<null>

GitHub | BurtHarris | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Many tests failing on Windows due to invalid paths

    GitHub | 8 months ago | BurtHarris
    java.lang.AssertionError: expected:<M.A [@0,0:1='ab',<1>,1:0] [@1,2:1='<EOF>',<-1>,1:2] > but was:<null>
  2. 0

    Unit tests fail for Eureka

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

    SpdyConnectionTest.pushPromiseStream is flaky

    GitHub | 3 years ago | swankjesse
    java.lang.AssertionError: expected:<[:method: GET, :scheme: https, :authority: squareup.com, :path: /cached]> but was:<[:status: 200]>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    WebSocketCallTest.serverMessage is flaky

    GitHub | 2 years ago | JakeWharton
    java.lang.AssertionError: expected:<Message[TEXT Buffer[size=18 md5=be471905fcbe7f881ceb7fa60775ab5e]]> but was:<null>
  6. 0

    TimerScheduleBatchTest fails expected:<COMPLETED> but was:<STARTED> - Wildfly 8.0.0

    GitHub | 2 years ago | karianna
    java.lang.AssertionError: expected:<COMPLETED> but was:<STARTED>

  1. odd 1 times, last 5 days ago
  2. jf-ast 2 times, last 1 week ago
  3. rsprangemeijer 1 times, last 3 weeks ago
  4. aldrinleal 1 times, last 4 weeks ago
  5. treefolk 3 times, last 2 months ago
8 more registered users
33 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:<M.A [@0,0:1='ab',<1>,1:0] [@1,2:1='<EOF>',<-1>,1:2] > but was:<null>

    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:144)
    4 frames
  3. org.antlr.v4
    TestCompositeLexers.testLexerDelegatorRuleOverridesDelegate
    1. org.antlr.v4.test.runtime.csharp.BaseTest.assertEquals(BaseTest.java:859)
    2. org.antlr.v4.test.runtime.csharp.TestCompositeLexers.testLexerDelegatorRuleOverridesDelegate(TestCompositeLexers.java:57)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    6. org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
    7. org.junit.rules.RunRules.evaluate(RunRules.java:20)
    8. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    9. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    10. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    11. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    12. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    13. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    14. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    15. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    16. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    16 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:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    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:115)
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
    5 frames