org.alfresco.repo.content.replication
Class ContentStoreReplicatorTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.content.replication.ContentStoreReplicatorTest
All Implemented Interfaces:
junit.framework.Test

public class ContentStoreReplicatorTest
extends junit.framework.TestCase

Tests the content store replicator.

See Also:
ContentStoreReplicator

Constructor Summary
ContentStoreReplicatorTest()
           
 
Method Summary
 void setUp()
           
 void testContinuousReplication()
          Adds content to the source while the replicator is going as fast as possible.
 void testRepeatedReplication()
          Call the replicator repeatedly to check that it prevents concurrent use
 void testSinglePassReplication()
          Creates a source with some files and replicates in a single pass, checking the results.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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

ContentStoreReplicatorTest

public ContentStoreReplicatorTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testSinglePassReplication

public void testSinglePassReplication()
                               throws java.lang.Exception
Creates a source with some files and replicates in a single pass, checking the results.

Throws:
java.lang.Exception

testContinuousReplication

public void testContinuousReplication()
                               throws java.lang.Exception
Adds content to the source while the replicator is going as fast as possible. Just to make it more interesting, the content is sometimes put in the target store as well.

Afterwards, some content is removed from the the target.

Then, finally, a check is performed to ensure that the source and target are in synch.

Throws:
java.lang.Exception

testRepeatedReplication

public void testRepeatedReplication()
                             throws java.lang.Exception
Call the replicator repeatedly to check that it prevents concurrent use

Throws:
java.lang.Exception


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