org.alfresco.repo.content.replication
Class ReplicatingContentStoreTest

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

public class ReplicatingContentStoreTest
extends AbstractWritableContentStoreTest

Tests read and write functionality for the replicating store.

By default, replication is off for both the inbound and outbound replication. Specific tests change this.

See Also:
ReplicatingContentStore

Field Summary
 
Fields inherited from class org.alfresco.repo.content.AbstractReadOnlyContentStoreTest
ctx, transactionService
 
Constructor Summary
ReplicatingContentStoreTest()
           
 
Method Summary
 ContentStore getStore()
          Fetch the store to be used during a test.
 void setUp()
          Starts a transaction
 void testAsyncOutboundReplication()
           
 void testInboundReplication()
           
 void testNoReplication()
           
 void testOutboundReplication()
           
 void testTargetContentUrlExists()
           
 
Methods inherited from class org.alfresco.repo.content.AbstractWritableContentStoreTest
getExistingContentUrl, getWriter, testClosedState, testDeleteReaderStates, testDeleteSimple, testGetReader, testGetUrls, testIllegalWritableContentUrls, testListUrls, testMimetypAndEncodingAndLocale, testRandomAccessRead, testRandomAccessWrite, testReadAndWriteFile, testReadAndWriteStreamByPull, testReadAndWriteStreamByPush, testReaderImmutability, testRootLocation, testSetUp, testSimpleUse, testSpaceFree, testSpaceTotal, testSpaceUsed, testStringTruncation, testWritable, testWriteAndReadString, testWriteStreamListener
 
Methods inherited from class org.alfresco.repo.content.AbstractReadOnlyContentStoreTest
getReader, tearDown, testBlockedWriteOperations, testGetReaderForExistingContentUrl, testIllegalReadableContentUrls
 
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

ReplicatingContentStoreTest

public ReplicatingContentStoreTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Description copied from class: AbstractReadOnlyContentStoreTest
Starts a transaction

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

getStore

public ContentStore getStore()
Description copied from class: AbstractReadOnlyContentStoreTest
Fetch the store to be used during a test. This method is invoked once per test - it is therefore safe to use setUp to initialise resources.

Usually tests will construct a static instance of the store to use throughout all the tests.

Specified by:
getStore in class AbstractReadOnlyContentStoreTest
Returns:
Returns the same instance of a store for all invocations.

testNoReplication

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

testOutboundReplication

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

testAsyncOutboundReplication

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

testInboundReplication

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

testTargetContentUrlExists

public void testTargetContentUrlExists()


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