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

Some Oracle tests should allow null instead of empty string

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.4
    • Component/s: Tests

      Description

      Two errors related to the Oracle behavior of confusing NULL and empty string:

      • DocumentBrowsingTest.itCanSetPropertyToNullNewModeKeepEmpty
      • NuxeoPrincipalJsonWriterTest.test
      java.lang.AssertionError: expected:<> but was:<null>
      	at org.nuxeo.ecm.restapi.test.DocumentBrowsingTest.itCanSetPropertyToNullNewModeKeepEmpty(DocumentBrowsingTest.java:222)
      
      java.lang.AssertionError: value is null
      	at org.nuxeo.ecm.core.io.marshallers.json.JsonAssert.notNull(JsonAssert.java:236)
      	at org.nuxeo.ecm.core.io.marshallers.json.JsonAssert.isText(JsonAssert.java:247)
      	at org.nuxeo.ecm.core.io.marshallers.json.JsonAssert.isEquals(JsonAssert.java:259)
      	at org.nuxeo.ecm.platform.usermanager.io.NuxeoPrincipalJsonWriterTest.test(NuxeoPrincipalJsonWriterTest.java:55)
      

      https://qa.nuxeo.org/jenkins/job/nuxeo-master-fullbuild-part1-multidb-linux/1345/Slave=MULTIDB_LINUX,dbprofile=oracle12c,jdk=java-8-oracle/testReport/junit/org.nuxeo.ecm.restapi.test/DocumentBrowsingTest/itCanSetPropertyToNullNewModeKeepEmpty/
      https://qa.nuxeo.org/jenkins/job/nuxeo-master-fullbuild-part1-multidb-linux/1345/Slave=MULTIDB_LINUX,dbprofile=oracle12c,jdk=java-8-oracle/testReport/junit/org.nuxeo.ecm.platform.usermanager.io/NuxeoPrincipalJsonWriterTest/test/

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: