Details
-
Test
-
Status: Resolved
-
Minor
-
Resolution: Not A Problem
-
OpenCMIS 0.14.0
-
None
-
None
-
Patch
Description
Please do not assume a fixed number (6) of CMIS types. This depends on the server implementation:
patch
--- a/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/types/BaseTypesTest.java +++ b/chemistry-opencmis-test/chemistry-opencmis-test-tck/src/main/java/org/apache/chemistry/opencmis/tck/tests/types/BaseTypesTest.java @@ -174,13 +174,22 @@ public class BaseTypesTest extends AbstractSessionTest { } } + TypeDefinitionList typeDefinitionList = session + .getBinding() + .getRepositoryService() + .getTypeChildren(session.getRepositoryInfo().getId(), null, Boolean.FALSE, + BigInteger.valueOf(100), BigInteger.ZERO, null); + + final BigInteger skipItems = typeDefinitionList.getNumItems(); + // simple getTypeChildren paging test - skipping over all base types mut // return an empty list - TypeDefinitionList typeDefinitionList = session + typeDefinitionList = session .getBinding() .getRepositoryService() - .getTypeChildren(session.getRepositoryInfo().getId(), null, false, BigInteger.valueOf(100), - BigInteger.valueOf(6), null); + .getTypeChildren(session.getRepositoryInfo().getId(), null, Boolean.FALSE, + BigInteger.valueOf(100), skipItems, null); + if (typeDefinitionList == null) { addResult(createResult(FAILURE, "getTypeChildren() returned nothing!")); } else {
Attachments
Issue Links
- is related to
-
CMIS-920 TypeDefinitionFactory.createTypeDefinitionList() fails if skipCount >= number of children
- Resolved