-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: Core MongoDB, Tests
-
Tags:
-
Story Points:0
These two tests fail on MongoDB:
- TestDefaultPageProviders.checkCoreQueryAndFetch
- TestDefaultPageProviders.checkCoreQueryAndFetchReference
java.lang.AssertionError: expected:<1> but was:<4> 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.platform.contentview.jsf.test.TestDefaultPageProviders.checkCoreQueryAndFetch(TestDefaultPageProviders.java:529) at org.nuxeo.ecm.platform.contentview.jsf.test.TestDefaultPageProviders.testCoreQueryAndFetch(TestDefaultPageProviders.java:499)
The test is asserting the exact number keys in a map returned by queryAndFetch but MongoDB actually returns extra keys like ecm:uuid, ecm:parentId and ecm:name.