java.lang.AssertionError

tip

Check your pattern declaration or check your assert declaration.


rafael

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

  • [QFJ-837] Tests on jdk1.8 fail - QuickFIX/J Jira
    via by Unknown author,
  • QuickFIX/J Jira
    via by Unknown author,
  • QuickFIX/J Jira
    via by Unknown author,
  • QuickFIX/J Jira
    via by Unknown author,
  • I executed quickifix test on jdk 1.6. All went fine. On jdk 1.8 failed: ------------------------------------------------------------------------------- Test set: quickfix.SessionTest ------------------------------------------------------------------------------- Tests run: 47, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 1.514 sec <<< FAILURE! - in quickfix.SessionTest testSequenceResetStackOverflow(quickfix.SessionTest) Time elapsed: 0.012 sec <<< FAILURE! java.lang.AssertionError: expected:<51> but was:<50> at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at org.junit.Assert.assertEquals(Assert.java:472) at org.junit.Assert.assertEquals(Assert.java:456) at quickfix.SessionTest.testSequenceResetStackOverflow(SessionTest.java:1044) testResendRequestMsgSeqNum(quickfix.SessionTest) Time elapsed: 0.011 sec <<< FAILURE! java.lang.AssertionError: Session should be logged out since seqnum too low! at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertFalse(Assert.java:68) at quickfix.SessionTest.testResendRequestMsgSeqNum(SessionTest.java:1172) testSimultaneousResendRequests(quickfix.SessionTest) Time elapsed: 0 sec <<< FAILURE! java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:92) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertTrue(Assert.java:54) at quickfix.SessionTest.testSimultaneousResendRequests(SessionTest.java:1225) testDontCatchErrorsFromCallback(quickfix.SessionTest) Time elapsed: 0.003 sec <<< FAILURE! org.junit.ComparisonFailure: expected:<[java.lang.Error: TEST]> but was:<[No error thrown]> at org.junit.Assert.assertEquals(Assert.java:125) at org.junit.Assert.assertEquals(Assert.java:147) at quickfix.SessionTest.testDontCatchErrorsFromCallback(SessionTest.java:1462) testAcceptorRelogon(quickfix.SessionTest) Time elapsed: 0 sec <<< FAILURE! java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:92) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertFalse(Assert.java:68) at org.junit.Assert.assertFalse(Assert.java:79) at quickfix.SessionTest.testAcceptorRelogon(SessionTest.java:1632) testStateFlagsAreResetOnLogout(quickfix.SessionTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:92) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertFalse(Assert.java:68) at org.junit.Assert.assertFalse(Assert.java:79) at quickfix.SessionTest.testStateFlagsAreResetOnLogout(SessionTest.java:1670)
    via by Slawomir Pawlewicz,
  • Tests passed on jdk 1.6. On jdk 1.7 they failed ------------------------------------------------------------------------------- Test set: quickfix.SessionTest ------------------------------------------------------------------------------- Tests run: 47, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 1.197 sec <<< FAILURE! - in quickfix.SessionTest testResendRequestMsgSeqNum(quickfix.SessionTest) Time elapsed: 0.006 sec <<< FAILURE! java.lang.AssertionError: Session should be logged out since seqnum too low! at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertFalse(Assert.java:68) at quickfix.SessionTest.testResendRequestMsgSeqNum(SessionTest.java:1172) testAcceptorRelogon(quickfix.SessionTest) Time elapsed: 0.002 sec <<< FAILURE! java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:92) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertFalse(Assert.java:68) at org.junit.Assert.assertFalse(Assert.java:79) at quickfix.SessionTest.testAcceptorRelogon(SessionTest.java:1632) testLogoutMsgSeqNumTooHighOrLow(quickfix.SessionTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.AssertionError: expected:<3> but was:<4> at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at org.junit.Assert.assertEquals(Assert.java:472) at org.junit.Assert.assertEquals(Assert.java:456) at quickfix.SessionTest.testLogoutMsgSeqNumTooHighOrLow(SessionTest.java:418)
    via by Slawomir Pawlewicz,
  • I executed quickifix test on jdk 1.6. All went fine. On jdk 1.8 failed: ------------------------------------------------------------------------------- Test set: quickfix.SessionTest ------------------------------------------------------------------------------- Tests run: 47, Failures: 6, Errors: 0, Skipped: 0, Time elapsed: 1.514 sec <<< FAILURE! - in quickfix.SessionTest testSequenceResetStackOverflow(quickfix.SessionTest) Time elapsed: 0.012 sec <<< FAILURE! java.lang.AssertionError: expected:<51> but was:<50> at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at org.junit.Assert.assertEquals(Assert.java:472) at org.junit.Assert.assertEquals(Assert.java:456) at quickfix.SessionTest.testSequenceResetStackOverflow(SessionTest.java:1044) testResendRequestMsgSeqNum(quickfix.SessionTest) Time elapsed: 0.011 sec <<< FAILURE! java.lang.AssertionError: Session should be logged out since seqnum too low! at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertFalse(Assert.java:68) at quickfix.SessionTest.testResendRequestMsgSeqNum(SessionTest.java:1172) testSimultaneousResendRequests(quickfix.SessionTest) Time elapsed: 0 sec <<< FAILURE! java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:92) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertTrue(Assert.java:54) at quickfix.SessionTest.testSimultaneousResendRequests(SessionTest.java:1225) testDontCatchErrorsFromCallback(quickfix.SessionTest) Time elapsed: 0.003 sec <<< FAILURE! org.junit.ComparisonFailure: expected:<[java.lang.Error: TEST]> but was:<[No error thrown]> at org.junit.Assert.assertEquals(Assert.java:125) at org.junit.Assert.assertEquals(Assert.java:147) at quickfix.SessionTest.testDontCatchErrorsFromCallback(SessionTest.java:1462) testAcceptorRelogon(quickfix.SessionTest) Time elapsed: 0 sec <<< FAILURE! java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:92) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertFalse(Assert.java:68) at org.junit.Assert.assertFalse(Assert.java:79) at quickfix.SessionTest.testAcceptorRelogon(SessionTest.java:1632) testStateFlagsAreResetOnLogout(quickfix.SessionTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:92) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertFalse(Assert.java:68) at org.junit.Assert.assertFalse(Assert.java:79) at quickfix.SessionTest.testStateFlagsAreResetOnLogout(SessionTest.java:1670)
    via by Slawomir Pawlewicz,
  • Tests passed on jdk 1.6. On jdk 1.7 they failed ------------------------------------------------------------------------------- Test set: quickfix.SessionTest ------------------------------------------------------------------------------- Tests run: 47, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 1.197 sec <<< FAILURE! - in quickfix.SessionTest testResendRequestMsgSeqNum(quickfix.SessionTest) Time elapsed: 0.006 sec <<< FAILURE! java.lang.AssertionError: Session should be logged out since seqnum too low! at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertFalse(Assert.java:68) at quickfix.SessionTest.testResendRequestMsgSeqNum(SessionTest.java:1172) testAcceptorRelogon(quickfix.SessionTest) Time elapsed: 0.002 sec <<< FAILURE! java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:92) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertFalse(Assert.java:68) at org.junit.Assert.assertFalse(Assert.java:79) at quickfix.SessionTest.testAcceptorRelogon(SessionTest.java:1632) testLogoutMsgSeqNumTooHighOrLow(quickfix.SessionTest) Time elapsed: 0.001 sec <<< FAILURE! java.lang.AssertionError: expected:<3> but was:<4> at org.junit.Assert.fail(Assert.java:93) at org.junit.Assert.failNotEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:128) at org.junit.Assert.assertEquals(Assert.java:472) at org.junit.Assert.assertEquals(Assert.java:456) at quickfix.SessionTest.testLogoutMsgSeqNumTooHighOrLow(SessionTest.java:418)
    via by Slawomir Pawlewicz,
  • mvn install fails out-of-the-box
    via by Guozhang Wang,
    • java.lang.AssertionError: null at org.junit.Assert.fail(Assert.java:92) at org.junit.Assert.assertTrue(Assert.java:43) at org.junit.Assert.assertFalse(Assert.java:68) at org.junit.Assert.assertFalse(Assert.java:79) at quickfix.SessionTest.testAcceptorRelogon(SessionTest.java:1632)

    Users with the same issue

    tvrmsmith
    2 times, last one,
    Axelo
    6 times, last one,
    pulse00
    2 times, last one,
    osvzs
    2 times, last one,
    marcbouvierdav
    1 times, last one,
    94 more bugmates