chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florian Müller (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CMIS-919) do not assume a fixed number of CMIS types
Date Wed, 10 Jun 2015 15:47:01 GMT

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

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

The TCK test is correct but createTypeDefinitionList has a bug. See CMIS-920. 

> 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:
> {code:title=patch|borderStyle=solid}
> --- 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 {
> {code}



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

Mime
View raw message