org.alfresco.webservice.test
Class RepositoryServiceSystemTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.webservice.test.BaseWebServiceSystemTest
              extended by org.alfresco.webservice.test.RepositoryServiceSystemTest
All Implemented Interfaces:
junit.framework.Test

public class RepositoryServiceSystemTest
extends BaseWebServiceSystemTest


Field Summary
 
Fields inherited from class org.alfresco.webservice.test.BaseWebServiceSystemTest
CONTENT_NAME, CONTENT_NAME_2, contentReference, contentReference2, contentService, FOLDER_NAME, folderReference, PASSWORD, repositoryService, rootReference, store, TEST_CONTENT, USERNAME
 
Constructor Summary
RepositoryServiceSystemTest()
           
 
Method Summary
protected  void setUp()
          Calls the AuthenticationService to retrieve a ticket for all tests to use.
 void testADB12()
           
 void testALF649()
          Tests that Query returns all the properties for matching nodes
 void testDescribe()
          Tests the describe service method
 void testFetchMoreAndbatchSize()
          added: November 20 2008, ETWOONE-396 Now getTotalRowCount return the number of rows in this specific result set.
 void testFolderCreate()
           
 void testGet()
           
 void testGetPath()
          Test that the uuid and path are both returned in a Reference object
 void testGetStores()
          Tests the getStores method
 void testPathLookup()
           
 void testPathReference()
          Tests the use of a path within a reference
 void testPredicateQuery()
          Tests passing a query in the predicate to return items to describe
 void testPropertySetGet()
           
 void testQuery()
          Tests the query service call
 void testQueryAssociated()
          Tests the queryAssociated service method
 void testQueryChildren()
          Tests the queryChildren service method
 void testQueryParents()
          Tests the queryParents service method
 void testUpdate()
          Tests the update service method
 void xtestQuerySession()
          Tests the ability to retrieve the results of a query in batches
 
Methods inherited from class org.alfresco.webservice.test.BaseWebServiceSystemTest
convertToPredicate, createContentAtRoot, getFolderParentReference, 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
 

Constructor Detail

RepositoryServiceSystemTest

public RepositoryServiceSystemTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: BaseWebServiceSystemTest
Calls the AuthenticationService to retrieve a ticket for all tests to use.

Overrides:
setUp in class BaseWebServiceSystemTest
Throws:
java.lang.Exception

testFetchMoreAndbatchSize

public void testFetchMoreAndbatchSize()
                               throws java.lang.Exception
added: November 20 2008, ETWOONE-396 Now getTotalRowCount return the number of rows in this specific result set. In the previous version getTotalRowCount return the number of rows in the batch. The method getNextResults(RESULTSETROW[] allResults) in AbstractQuerySession class was corrected. Also "paged result set" and "full query result set" are equal (against the same data set)

Throws:
java.lang.Exception

testGetStores

public void testGetStores()
                   throws java.lang.Exception
Tests the getStores method

Throws:
java.lang.Exception

testQuery

public void testQuery()
               throws java.lang.Exception
Tests the query service call

Throws:
java.lang.Exception

testALF649

public void testALF649()
                throws java.lang.Exception
Tests that Query returns all the properties for matching nodes

Throws:
java.lang.Exception

testQueryParents

public void testQueryParents()
                      throws java.lang.Exception
Tests the queryParents service method

Throws:
java.lang.Exception

testQueryChildren

public void testQueryChildren()
                       throws java.lang.Exception
Tests the queryChildren service method

Throws:
java.lang.Exception

testQueryAssociated

public void testQueryAssociated()
                         throws java.lang.Exception
Tests the queryAssociated service method

Throws:
java.lang.Exception

testDescribe

public void testDescribe()
                  throws java.lang.Exception
Tests the describe service method

Throws:
java.lang.Exception

testPredicateQuery

public void testPredicateQuery()
                        throws java.lang.Exception
Tests passing a query in the predicate to return items to describe

Throws:
java.lang.Exception

testPathReference

public void testPathReference()
                       throws java.lang.Exception
Tests the use of a path within a reference

Throws:
java.lang.Exception

testUpdate

public void testUpdate()
                throws java.lang.Exception
Tests the update service method

Throws:
java.lang.Exception

testADB12

public void testADB12()
               throws java.lang.Exception
Throws:
java.lang.Exception

testGet

public void testGet()
             throws java.lang.Exception
Throws:
java.lang.Exception

testGetPath

public void testGetPath()
                 throws java.lang.Exception
Test that the uuid and path are both returned in a Reference object

Throws:
java.lang.Exception

testPropertySetGet

public void testPropertySetGet()
                        throws java.lang.Exception
Throws:
java.lang.Exception

testFolderCreate

public void testFolderCreate()
                      throws java.lang.Exception
Throws:
java.lang.Exception

testPathLookup

public void testPathLookup()
                    throws java.lang.Exception
Throws:
java.lang.Exception

xtestQuerySession

public void xtestQuerySession()
                       throws java.lang.Exception
Tests the ability to retrieve the results of a query in batches

Throws:
java.lang.Exception


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