org.alfresco.repo.cmis.ws.test
Class QueryPagingTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.cmis.ws.test.BaseCMISTest
              extended by org.alfresco.repo.cmis.ws.test.QueryPagingTest
All Implemented Interfaces:
junit.framework.Test

public class QueryPagingTest
extends BaseCMISTest

The test of paging support of results of DMDiscoveryServicePort.query()


Field Summary
protected  org.alfresco.repo.cmis.ws.DiscoveryServicePort discoveryServicePort
           
protected  org.alfresco.repo.cmis.ws.NavigationServicePort navigationServicePort
           
 
Fields inherited from class org.alfresco.repo.cmis.ws.test.BaseCMISTest
ctx, defaultRunAs, objectServicePort, policyServicePort, repositoryId, repositoryServicePort, testFolderId, versioningServicePort
 
Constructor Summary
QueryPagingTest()
           
 
Method Summary
protected  void clearDocumentsInFolder(java.lang.String folderId)
           
protected  java.lang.String createDocument(java.lang.String name, java.lang.String parentFolderId)
           
protected  void createDocumentsInFolder(java.lang.String folderId, int docsCount)
           
protected  java.lang.String getObjectId(org.alfresco.repo.cmis.ws.CmisObjectType object)
           
protected  void setUp()
           
 void testPagingSupport()
          The main reason for this test is ALF-9566
 
Methods inherited from class org.alfresco.repo.cmis.ws.test.BaseCMISTest
assertContains, assertDoesNotContain, createObjectProperties, setDefaultRunAs, setStringProperty, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

discoveryServicePort

protected org.alfresco.repo.cmis.ws.DiscoveryServicePort discoveryServicePort

navigationServicePort

protected org.alfresco.repo.cmis.ws.NavigationServicePort navigationServicePort
Constructor Detail

QueryPagingTest

public QueryPagingTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class BaseCMISTest
Throws:
java.lang.Exception

testPagingSupport

public void testPagingSupport()
                       throws java.lang.Exception
The main reason for this test is ALF-9566

Throws:
java.lang.Exception

createDocumentsInFolder

protected void createDocumentsInFolder(java.lang.String folderId,
                                       int docsCount)
                                throws java.lang.Exception
Throws:
java.lang.Exception

clearDocumentsInFolder

protected void clearDocumentsInFolder(java.lang.String folderId)
                               throws org.alfresco.repo.cmis.ws.CmisException
Throws:
org.alfresco.repo.cmis.ws.CmisException

getObjectId

protected java.lang.String getObjectId(org.alfresco.repo.cmis.ws.CmisObjectType object)

createDocument

protected java.lang.String createDocument(java.lang.String name,
                                          java.lang.String parentFolderId)
                                   throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.