junit.framework.AssertionFailedError

Bad conversion [ERROR: current transaction is aborted, commands ignored until end of transaction block] expected:<class org.hibernate.exception.ConstraintViolationException> but was:<class org.hibernate.exception.GenericJDBCException>

Solutions on the web1941

  • Bad conversion [ERROR: current transaction is aborted, commands ignored until end of transaction block] expected:<class org.hibernate.exception.ConstraintViolationException> but was:<class org.hibernate.exception.GenericJDBCException>
  • Bad conversion [ERROR: current transaction is aborted, commands ignored until end of transaction block] expected:<class org.hibernate.exception.ConstraintViolationException> but was:<class org.hibernate.exception.GenericJDBCException>
  • via GitHub by idelcano
    , 1 year ago
    expected:<class org.eyeseetea.malariacare.LoginActivity> but was:<class org.eyeseetea.malariacare.ProgressActivity>
  • Stack trace

    • junit.framework.AssertionFailedError: Bad conversion [ERROR: current transaction is aborted, commands ignored until end of transaction block] expected:<class org.hibernate.exception.ConstraintViolationException> but was:<class org.hibernate.exception.GenericJDBCException> at org.hibernate.test.exception.SQLExceptionConversionTest.testIntegrityViolation(SQLExceptionConversionTest.java:65) at org.hibernate.junit.functional.FunctionalTestCase.runTest(FunctionalTestCase.java:124) at org.hibernate.junit.UnitTestCase.runBare(UnitTestCase.java:64) at org.hibernate.junit.functional.FunctionalTestClassTestSuite.runTest(FunctionalTestClassTestSuite.java:115) at org.hibernate.junit.functional.FunctionalTestClassTestSuite.run(FunctionalTestClassTestSuite.java:84)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.