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 | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  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 | 9 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 | 1 year ago
    java.lang.AssertionError: expected [4] but found [6]
  3. 0

    Soft Assertions using TestNG | Ramesh Baskar's Blog

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

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 39#11450849

    GitHub | 4 years ago | jodastephen
    java.lang.AssertionError: LocalDate incorrect for e w M y expected [2012-01-09] but found [2012-01-08]
  6. 0

    FAILED CONFIGURATION: @AfterMethod tearDown Even the driver is checking for null before quitting

    Stack Overflow | 1 year ago | Lokesh S
    java.lang.AssertionError: expected [false[ but found ]true]

  1. arturgajowy 1 times, last 1 month 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 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