org.alfresco.webservice.test
Class BaseWebServiceSystemTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.alfresco.webservice.test.BaseWebServiceSystemTest
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- AccessControlServiceSystemTest, ActionServiceSystemTest, AdministrationServiceSystemTest, AuthoringServiceSystemTest, ClassificationServiceSystemTest, ContentServiceSystemTest, DictionaryServiceSystemTest, RepositoryServiceSystemTest, TimeoutSystemTest
public abstract class BaseWebServiceSystemTest
- extends junit.framework.TestCase
Base class for all web service system tests that need to authenticate. The
setUp method calls the AuthenticationService and authenticates as
admin/admin, the returned ticket is then stored in
TicketHolder.ticket
so that all subclass implementations can
use it to call other services.
- See Also:
TestCase.setUp()
Field Summary |
protected static java.lang.String |
CONTENT_NAME
|
protected static java.lang.String |
CONTENT_NAME_2
|
protected static org.alfresco.webservice.types.Reference |
contentReference
|
protected static org.alfresco.webservice.types.Reference |
contentReference2
|
protected org.alfresco.webservice.content.ContentServiceSoapBindingStub |
contentService
|
static java.lang.String |
FOLDER_NAME
|
protected static org.alfresco.webservice.types.Reference |
folderReference
|
protected static java.lang.String |
PASSWORD
|
protected org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub |
repositoryService
|
protected static org.alfresco.webservice.types.Reference |
rootReference
|
protected static org.alfresco.webservice.types.Store |
store
|
protected static java.lang.String |
TEST_CONTENT
|
protected static java.lang.String |
USERNAME
|
Method Summary |
protected org.alfresco.webservice.types.Predicate |
convertToPredicate(org.alfresco.webservice.types.Reference reference)
|
protected org.alfresco.webservice.types.Reference |
createContentAtRoot(java.lang.String name,
java.lang.String contentValue)
|
protected org.alfresco.webservice.types.ParentReference |
getFolderParentReference(java.lang.String assocName)
|
protected void |
setUp()
Calls the AuthenticationService to retrieve a ticket for all tests to
use. |
protected void |
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 |
USERNAME
protected static final java.lang.String USERNAME
- See Also:
- Constant Field Values
PASSWORD
protected static final java.lang.String PASSWORD
- See Also:
- Constant Field Values
FOLDER_NAME
public static final java.lang.String FOLDER_NAME
- See Also:
- Constant Field Values
CONTENT_NAME
protected static final java.lang.String CONTENT_NAME
- See Also:
- Constant Field Values
CONTENT_NAME_2
protected static final java.lang.String CONTENT_NAME_2
- See Also:
- Constant Field Values
TEST_CONTENT
protected static final java.lang.String TEST_CONTENT
- See Also:
- Constant Field Values
store
protected static org.alfresco.webservice.types.Store store
rootReference
protected static org.alfresco.webservice.types.Reference rootReference
contentReference
protected static org.alfresco.webservice.types.Reference contentReference
contentReference2
protected static org.alfresco.webservice.types.Reference contentReference2
folderReference
protected static org.alfresco.webservice.types.Reference folderReference
repositoryService
protected org.alfresco.webservice.repository.RepositoryServiceSoapBindingStub repositoryService
contentService
protected org.alfresco.webservice.content.ContentServiceSoapBindingStub contentService
BaseWebServiceSystemTest
public BaseWebServiceSystemTest()
setUp
protected void setUp()
throws java.lang.Exception
- Calls the AuthenticationService to retrieve a ticket for all tests to
use.
- Overrides:
setUp
in class junit.framework.TestCase
- Throws:
java.lang.Exception
tearDown
protected void tearDown()
throws java.lang.Exception
- Overrides:
tearDown
in class junit.framework.TestCase
- Throws:
java.lang.Exception
getFolderParentReference
protected org.alfresco.webservice.types.ParentReference getFolderParentReference(java.lang.String assocName)
createContentAtRoot
protected org.alfresco.webservice.types.Reference createContentAtRoot(java.lang.String name,
java.lang.String contentValue)
throws java.lang.Exception
- Throws:
java.lang.Exception
convertToPredicate
protected org.alfresco.webservice.types.Predicate convertToPredicate(org.alfresco.webservice.types.Reference reference)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.