java.lang.AssertionError: expected [22] but found [21]

GitHub | ghatwala | 4 months ago
  1. 0

    GitHub comment 6169#237875923

    GitHub | 4 months ago | ghatwala
    java.lang.AssertionError: expected [22] but found [21]
  2. 0

    assertEquals(Collection, Collection) prints "null" when collections are different sizes

    GitHub | 3 years ago | dimo414
    java.lang.AssertionError: null: lists don't have the same size expected [1] but found [0]
  3. 0

    must be(expected_value) test failed messages are confusing

    GitHub | 4 years ago | epishkin
    java.lang.AssertionError: expected:<expected value> but was:<null>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Build fails using JDK 8

    GitHub | 2 years ago | paulf
    java.lang.AssertionError: expected:<b=d&c=f&a=b> but was:<a=b&b=d&c=f>
  6. 0

    compilation failed with latest build

    GitHub | 2 years ago | lokeshhctm
    java.lang.AssertionError: expected [utf-8] but found [null]

    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 [22] but found [21]

      at org.testng.Assert.fail()
    2. TestNG
      Assert.assertEquals
      1. org.testng.Assert.fail(Assert.java:94)
      2. org.testng.Assert.failNotEquals(Assert.java:496)
      3. org.testng.Assert.assertEquals(Assert.java:125)
      4. org.testng.Assert.assertEquals(Assert.java:267)
      5. org.testng.Assert.assertEquals(Assert.java:277)
      5 frames
    3. com.orientechnologies.orient
      ObjectTreeTestSchemaFull.testCitySaving
      1. com.orientechnologies.orient.test.database.auto.ObjectTreeTestSchemaFull.testCitySaving(ObjectTreeTestSchemaFull.java:225)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      4. java.lang.reflect.Method.invoke(Method.java:508)
      4 frames
    5. TestNG
      TestNG.run
      1. org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
      2. org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
      3. org.testng.internal.Invoker.invokeTestMethod(Invoker.java:816)
      4. org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1124)
      5. org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
      6. org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
      7. org.testng.TestRunner.privateRun(TestRunner.java:774)
      8. org.testng.TestRunner.run(TestRunner.java:624)
      9. org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
      10. org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
      11. org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
      12. org.testng.SuiteRunner.run(SuiteRunner.java:261)
      13. org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
      14. org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
      15. org.testng.TestNG.runSuitesSequentially(TestNG.java:1191)
      16. org.testng.TestNG.runSuitesLocally(TestNG.java:1116)
      17. org.testng.TestNG.run(TestNG.java:1024)
      17 frames
    6. org.apache.maven
      TestNGProvider.invoke
      1. org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:281)
      2. org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
      3. org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:121)
      3 frames
    7. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
      2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      3 frames