java.lang.Error: TEST]> but was:<[No error thrown]>

QuickFIX/J JIRA | Slawomir Pawlewicz | 2 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.
  1. 0

    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)

    QuickFIX/J JIRA | 2 years ago | Slawomir Pawlewicz
    java.lang.Error: TEST]> but was:<[No error thrown]>

    Root Cause Analysis

    1. java.lang.Error

      TEST]> but was:<[No error thrown]>

      at org.junit.Assert.assertEquals()
    2. JUnit
      Assert.assertEquals
      1. org.junit.Assert.assertEquals(Assert.java:125)
      2. org.junit.Assert.assertEquals(Assert.java:147)
      2 frames
    3. Apache ServiceMix :: Bundles :: ${pkgArtifactId}
      SessionTest.testDontCatchErrorsFromCallback
      1. quickfix.SessionTest.testDontCatchErrorsFromCallback(SessionTest.java:1462)
      1 frame