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

Hibernate JIRA | Martin Šimka | 3 years ago
  1. 0

    System.out.println in android test

    Stack Overflow | 2 years ago
    junit.framework.AssertionFailedError: expected:<1> but was:<5>
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Unit Test Results: All Failures

    sti-innsbruck.at | 8 months ago
    junit.framework.AssertionFailedError: expected:<4> but was:<5>
  4. 0

    The following test has been failing consistently in the tinderbox runs since about build 636714, unfortunately the run right before this build failed so it may be from that one. first tinderbox failure I could find: http://dbtg.thresher.com/derby/test/tinderbox_trunk16/jvm1.6/testing/testlog/SunOS-5.10_i86pc-i386/636714-org.apache.derbyTesting.functionTests.suites.All_diff.txt most recent as of this report: http://dbtg.thresher.com/derby/test/tinderbox_trunk16/jvm1.6/testing/testlog/SunOS-5.10_i86pc-i386/639156-org.apache.derbyTesting.functionTests.suites.All_diff.txt There was 1 failure: 1) testStartStopManagementFromApplication(org.apache.derbyTesting.functionTests.tests.management.ManagementMBeanTest)junit.framework.AssertionFailedError: expected:<2> but was:<5> at org.apache.derbyTesting.functionTests.tests.management.ManagementMBeanTest.startStopManagement(ManagementMBeanTest.java:86) at org.apache.derbyTesting.functionTests.tests.management.ManagementMBeanTest.testStartStopManagementFromApplication(ManagementMBeanTest.java:56) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:101) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)

    Apache's JIRA Issue Tracker | 9 years ago | Mike Matrigali
    junit.framework.AssertionFailedError: expected:<2> but was:<5>

    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. 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