java.lang.AssertionError: Expected an exception of class class jdk.jshell.EvalException got no exception expected [null] but found [class jdk.jshell.EvalException]

JDK Bug System | Frank Yuan | 4 months ago
  1. 0

    test ExceptionsTest.stackOverflow(): failure java.lang.AssertionError: Expected an exception of class class jdk.jshell.EvalException got no exception expected [null] but found [class jdk.jshell.EvalException] at org.testng.Assert.fail(Assert.java:94) at org.testng.Assert.failNotEquals(Assert.java:494) at org.testng.Assert.assertEquals(Assert.java:123) at KullaTesting.checkEvents(KullaTesting.java:539) at KullaTesting.assertEval(KullaTesting.java:357) at KullaTesting.assertEval(KullaTesting.java:351) at KullaTesting.assertEvalException(KullaTesting.java:310) at ExceptionsTest.assertExecuteException(ExceptionsTest.java:187) at ExceptionsTest.stackOverflow(ExceptionsTest.java:167) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533) at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84) at org.testng.internal.Invoker.invokeMethod(Invoker.java:714) at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901) at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231) at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127) at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111) at org.testng.TestRunner.privateRun(TestRunner.java:767) at org.testng.TestRunner.run(TestRunner.java:617) at org.testng.SuiteRunner.runTest(SuiteRunner.java:334) at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329) at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291) at org.testng.SuiteRunner.run(SuiteRunner.java:240) at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86) at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224) at org.testng.TestNG.runSuitesLocally(TestNG.java:1149) at org.testng.TestNG.run(TestNG.java:1057) at com.sun.javatest.regtest.TestNGAction$TestNGRunner.main(TestNGAction.java:220) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533) at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226) at java.lang.Thread.run(java.base@9-ea/Thread.java:843)

    JDK Bug System | 4 months ago | Frank Yuan
    java.lang.AssertionError: Expected an exception of class class jdk.jshell.EvalException got no exception expected [null] but found [class jdk.jshell.EvalException]
  2. 0

    QAValidation - Software QA & Validation: Assert in Selenium

    qavalidation.com | 8 months ago
    java.lang.AssertionError: expected [4] but found [6]
  3. 0

    Soft Assertions using TestNG | Ramesh Baskar's Blog

    wordpress.com | 4 months ago
    java.lang.AssertionError: expected [3] but found [5]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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]
  6. 0

    must be(expected_value) test failed messages are confusing

    GitHub | 4 years ago | epishkin
    java.lang.AssertionError: expected:<expected value> but was:<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 an exception of class class jdk.jshell.EvalException got no exception expected [null] but found [class jdk.jshell.EvalException]

      at org.testng.Assert.fail()
    2. TestNG
      Assert.assertEquals
      1. org.testng.Assert.fail(Assert.java:94)
      2. org.testng.Assert.failNotEquals(Assert.java:494)
      3. org.testng.Assert.assertEquals(Assert.java:123)
      3 frames
    3. Unknown
      ExceptionsTest.stackOverflow
      1. KullaTesting.checkEvents(KullaTesting.java:539)
      2. KullaTesting.assertEval(KullaTesting.java:357)
      3. KullaTesting.assertEval(KullaTesting.java:351)
      4. KullaTesting.assertEvalException(KullaTesting.java:310)
      5. ExceptionsTest.assertExecuteException(ExceptionsTest.java:187)
      6. ExceptionsTest.stackOverflow(ExceptionsTest.java:167)
      6 frames