public class RemoteCredentialsServicesTest
extends java.lang.Object
RemoteCredentialsServiceImpl and friends.
Note - this test will largely use a test shared credentials
container, but one test puts things into the real credentials folder| Modifier and Type | Field and Description |
|---|---|
static ApplicationContextInit |
APP_CONTEXT_INIT |
static TemporaryNodes |
classTestNodes |
static WellKnownNodes |
knownNodes |
TemporaryNodes |
testNodes |
| Constructor and Description |
|---|
RemoteCredentialsServicesTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteTestNodes() |
static void |
initTestsContext() |
static void |
remoteTestSharedCredentialsContainer() |
void |
setAdminUser()
By default, all tests are run as the admin user.
|
void |
setupUsers() |
void |
testCreateCredentialsAndSystemListing()
Creating shared and personal credentials, then checking how this
affects the listing of Remote Systems
|
void |
testListingPermissionsAndPaging()
Dedicated permissions and paging tests
|
void |
testPersonCredentialsCRUD()
Test CRUD on person credentials, with listing
|
void |
testRealSharedCredentialsContainer()
Most of the shared credentials container tests work on the test one,
so that things are in a known and empty state.
|
void |
testSharedCredentialsContainer()
Tests that read only methods don't create the shared credentials
container, but that write ones will do.
|
void |
testSharedCredentialsCRUD()
Test CRUD on shared credentials, with listing
|
public static ApplicationContextInit APP_CONTEXT_INIT
public static WellKnownNodes knownNodes
public static TemporaryNodes classTestNodes
public TemporaryNodes testNodes
public static void initTestsContext()
throws java.lang.Exception
java.lang.Exceptionpublic void setupUsers()
throws java.lang.Exception
java.lang.Exceptionpublic void testSharedCredentialsContainer()
throws java.lang.Exception
java.lang.Exceptionpublic void testCreateCredentialsAndSystemListing()
throws java.lang.Exception
java.lang.Exceptionpublic void testPersonCredentialsCRUD()
throws java.lang.Exception
java.lang.Exceptionpublic void testSharedCredentialsCRUD()
throws java.lang.Exception
java.lang.Exceptionpublic void testListingPermissionsAndPaging()
throws java.lang.Exception
java.lang.Exceptionpublic void testRealSharedCredentialsContainer()
throws java.lang.Exception
java.lang.Exceptionpublic void setAdminUser()
public void deleteTestNodes()
throws java.lang.Exception
java.lang.Exceptionpublic static void remoteTestSharedCredentialsContainer()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.