org.alfresco.repo.content
Class RoutingContentStoreTest

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.RoutingContentStoreTest
All Implemented Interfaces:
junit.framework.Test

public class RoutingContentStoreTest
extends AbstractWritableContentStoreTest

Ensures that the routing of URLs based on context is working. A combination of fully featured and incompletely featured stores is used to ensure that all routing scenarios are handled.

Since:
2.1
See Also:
AbstractRoutingContentStore

Field Summary
 
Fields inherited from class org.alfresco.repo.content.AbstractReadOnlyContentStoreTest
ctx, transactionService
 
Constructor Summary
RoutingContentStoreTest()
           
 
Method Summary
protected  ContentStore getStore()
          Fetch the store to be used during a test.
 void setUp()
          Starts a transaction
 void testGeneralUse()
           
 void testMissingUrl()
          Checks that requests for missing content URLs are served.
 void testSetUp()
           
 
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, 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

RoutingContentStoreTest

public RoutingContentStoreTest()
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

protected 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.

testSetUp

public void testSetUp()
               throws java.lang.Exception
Overrides:
testSetUp in class AbstractWritableContentStoreTest
Throws:
java.lang.Exception

testMissingUrl

public void testMissingUrl()
Checks that requests for missing content URLs are served.


testGeneralUse

public void testGeneralUse()


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