junit.framework.AssertionFailedError: expected:<1> but was:<5>

Hibernate JIRA | Martin Šimka | 4 years 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.

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      expected:<1> but was:<5>

      at org.hibernate.test.id.MultipleHiLoPerTableGeneratorTest.testDistinctId()
    2. org.hibernate.test
      MultipleHiLoPerTableGeneratorTest.testDistinctId
      1. org.hibernate.test.id.MultipleHiLoPerTableGeneratorTest.testDistinctId(MultipleHiLoPerTableGeneratorTest.java:44)
      1 frame
    3. org.hibernate.junit
      FunctionalTestClassTestSuite.run
      1. org.hibernate.junit.functional.FunctionalTestCase.runTest(FunctionalTestCase.java:124)
      2. org.hibernate.junit.UnitTestCase.runBare(UnitTestCase.java:64)
      3. org.hibernate.junit.functional.FunctionalTestClassTestSuite.runTest(FunctionalTestClassTestSuite.java:115)
      4. org.hibernate.junit.functional.FunctionalTestClassTestSuite.run(FunctionalTestClassTestSuite.java:84)
      4 frames