Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-919

do not assume a fixed number of CMIS types

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • OpenCMIS 0.14.0
    • None
    • build&release
    • 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

          Activity

            People

              Unassigned Unassigned
              aderigs Achim Derigs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: