|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.alfresco.repo.security.sync.ChainingUserRegistrySynchronizerTest
public class ChainingUserRegistrySynchronizerTest
Tests the ChainingUserRegistrySynchronizer using a simulated ChainingUserRegistrySynchronizerTest.MockUserRegistry.
| Nested Class Summary | |
|---|---|
static class |
ChainingUserRegistrySynchronizerTest.MockApplicationContextManager
An ChildApplicationContextManager for a chain of application contexts containing mock user registries. |
static class |
ChainingUserRegistrySynchronizerTest.MockUserRegistry
A Mock UserRegistry that returns a fixed set of users and groups. |
class |
ChainingUserRegistrySynchronizerTest.RandomGroupCollection
A collection whose iterator returns randomly generated groups with random associations to a given list of persons. |
class |
ChainingUserRegistrySynchronizerTest.RandomPersonCollection
A collection whose iterator returns randomly generated persons. |
| Constructor Summary | |
|---|---|
ChainingUserRegistrySynchronizerTest()
|
|
| Method Summary | |
|---|---|
void |
dontTestAssocs()
Tests synchronization of group associations in a zone with a larger volume of authorities. |
protected void |
setUp()
|
protected void |
tearDown()
|
void |
tearDownTestUsersAndGroups()
Tear down test users and groups. |
void |
testCaseChange()
Tests a forced update of the test users and groups where some of the users change their case and some groups appear with different case. |
void |
testDifferentialUpdate()
Tests a differential update of the test users and groups. |
void |
testForcedUpdate()
Tests a forced update of the test users and groups. |
void |
testVolume()
Tests synchronization with a zone with a larger volume of authorities. |
| 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 |
|---|
public ChainingUserRegistrySynchronizerTest()
| Method Detail |
|---|
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception
protected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exception
public void tearDownTestUsersAndGroups()
throws java.lang.Exception
java.lang.Exception - the exception
public void testDifferentialUpdate()
throws java.lang.Exception
Z1 G1 - U1, U6 G2 - U1 G3 - U2, G4, G5 - U6 Z2 G2 - U1, U3, U4, U6 G6 - U3, U4, G7
java.lang.Exception - the exception
public void testForcedUpdate()
throws java.lang.Exception
Z1 G1 - U6 G2 - G3 - U2, G5 - U6 G6 - u3 Z2 G2 - U1, U3, U6 G6 - U3, G7
java.lang.Exception - the exception
public void testCaseChange()
throws java.lang.Exception
java.lang.Exception
public void testVolume()
throws java.lang.Exception
java.lang.Exception - the exception
public void dontTestAssocs()
throws java.lang.Exception
java.lang.Exception - the exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||