Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-18523

Fix CMIS last modified header test

    XMLWordPrintable

    Details

    • Type: Clean up
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0-HF24, 7.10-HF01, 8.1
    • Component/s: CMIS, Tests

      Description

      The test CmisSuiteSession.testLastModifiedServiceWrapper tries to change the dc:modified property but this is immediately overwritten by DublinCoreListener. So the test always fails:

      testLastModifiedServiceWrapper(org.nuxeo.ecm.core.opencmis.impl.CmisSuiteSession)  Time elapsed: 1.66 sec  <<< FAILURE!
      java.lang.AssertionError: expected:<1176300000000> but was:<1448978977925>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotEquals(Assert.java:743)
      	at org.junit.Assert.assertEquals(Assert.java:118)
      	at org.junit.Assert.assertEquals(Assert.java:555)
      	at org.junit.Assert.assertEquals(Assert.java:542)
      	at org.nuxeo.ecm.core.opencmis.impl.CmisSuiteSession.testLastModifiedServiceWrapper(CmisSuiteSession.java:970)
      

      NXP-15520 attempted to fix this but misdiagnosed the issue.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: