[ 
https://issues.apache.org/jira/browse/CMIS-919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14580429#comment-14580429
 ] 

Florian Müller commented on CMIS-919:
-------------------------------------

The CMIS spec doesn't allow more than the spec defined six base types (see CMIS 
specification, section 2.1.3.1).

> do not assume a fixed number of CMIS types
> ------------------------------------------
>
>                 Key: CMIS-919
>                 URL: https://issues.apache.org/jira/browse/CMIS-919
>             Project: Chemistry
>          Issue Type: Test
>          Components: build&release
>    Affects Versions: OpenCMIS 0.14.0
>            Reporter: Achim Derigs
>            Priority: Minor
>
> Please do not assume a fixed number (6) of CMIS types. This depends on the 
> server implementation:
> --- 
> 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 {



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to