|
|||||||||
| 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.avm.AVMServiceLocalTest
public class AVMServiceLocalTest
Local unit tests of AVM (AVMSyncService & AVMService)
| Field Summary | |
|---|---|
protected static org.alfresco.util.NameMatcher |
excluder
|
protected static org.springframework.context.ApplicationContext |
fContext
The application context. |
protected static AVMRemote |
fService
The AVMRemote - can be local (AVMRemoteLocal) or remote (AVMRemote) |
protected static AVMSyncService |
fSyncService
The AVMSyncService - can be local (AVMSyncService) or remote (AVMSyncServiceRemote) |
| Constructor Summary | |
|---|---|
AVMServiceLocalTest()
|
|
| Method Summary | |
|---|---|
protected void |
explorePaths(java.lang.String path)
|
protected void |
recursiveContents(java.lang.String path)
|
protected java.lang.String |
recursiveContents(java.lang.String path,
int version,
boolean followLinks)
Get the recursive contents of the given path and version. |
protected void |
recursiveList(java.lang.String store)
|
protected java.lang.String |
recursiveList(java.lang.String repoName,
int version,
boolean followLinks)
Helper to write a recursive listing of an AVMStore at a given version. |
protected java.lang.String |
recursiveList(java.lang.String path,
int version,
int indent,
boolean followLinks)
Recursive list the given path. |
protected void |
setUp()
|
protected void |
setupBasicTree()
Setup a basic tree. |
protected void |
tearDown()
|
void |
testBulkUpdateLD()
Test bulk update (using layered directory). |
void |
testErrorState()
Test a call that should return null; |
void |
testFlatten()
Test the flatten operation, with a little bit of compare and update. |
void |
testGetAPath()
|
void |
testNoodleUpdate()
Test a noodle update. |
void |
testPartialFlatten()
Test partial flatten. |
void |
testRead()
Another test of reading. |
void |
testReadWrite()
Test reading and writing. |
void |
testRename6()
|
void |
testResetLayer()
Test AVMSyncService resetLayer. |
void |
testSimple()
Do a simple hello world test. |
void |
testSimpleUpdateBR()
Test update to branch |
void |
testSimpleUpdateLD1()
|
void |
testSimpleUpdateLD2()
|
void |
testSimpleUpdateLD3()
|
void |
testSimpleUpdateLD4()
|
void |
testUpdate()
Test AVMSyncService update. |
void |
testUpdateDirectoryTitleAndDescription()
Test directory properties update ... |
void |
testUpdateFileTitleAndDescription()
Test file properties update ... |
void |
testUpdateSnapshot()
Test that an update forces a snapshot on the source. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static AVMRemote fService
protected static AVMSyncService fSyncService
protected static org.springframework.context.ApplicationContext fContext
protected static org.alfresco.util.NameMatcher excluder
| Constructor Detail |
|---|
public AVMServiceLocalTest()
| 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 testGetAPath()
throws java.lang.Exception
java.lang.Exception
public void testSimple()
throws java.lang.Throwable
java.lang.Throwable
protected void explorePaths(java.lang.String path)
throws java.lang.Exception
java.lang.Exception
public void testReadWrite()
throws java.lang.Throwable
java.lang.Throwable
public void testRead()
throws java.lang.Throwable
java.lang.Throwable
public void testErrorState()
throws java.lang.Throwable
java.lang.Throwable
public void testSimpleUpdateBR()
throws java.lang.Throwable
java.lang.Throwable
public void testSimpleUpdateLD1()
throws java.lang.Throwable
java.lang.Throwable
public void testSimpleUpdateLD2()
throws java.lang.Throwable
java.lang.Throwable
public void testSimpleUpdateLD3()
throws java.lang.Throwable
java.lang.Throwable
public void testSimpleUpdateLD4()
throws java.lang.Exception
java.lang.Exception
public void testBulkUpdateLD()
throws java.lang.Exception
java.lang.Exception
public void testFlatten()
throws java.lang.Exception
java.lang.Exception
public void testPartialFlatten()
throws java.lang.Exception
java.lang.Exception
public void testResetLayer()
throws java.lang.Exception
java.lang.Exception
public void testUpdate()
throws java.lang.Exception
java.lang.Exception
public void testUpdateSnapshot()
throws java.lang.Exception
java.lang.Exception
public void testNoodleUpdate()
throws java.lang.Exception
java.lang.Exception
public void testRename6()
throws java.lang.Exception
java.lang.Exception
public void testUpdateFileTitleAndDescription()
throws java.lang.Exception
java.lang.Exception
public void testUpdateDirectoryTitleAndDescription()
throws java.lang.Exception
java.lang.Exceptionprotected void recursiveContents(java.lang.String path)
protected java.lang.String recursiveContents(java.lang.String path,
int version,
boolean followLinks)
path - version -
protected void recursiveList(java.lang.String store)
protected java.lang.String recursiveList(java.lang.String repoName,
int version,
boolean followLinks)
repoName - The name of the AVMStore.version - The version to look under.
protected java.lang.String recursiveList(java.lang.String path,
int version,
int indent,
boolean followLinks)
path - The path.version - The version.indent - The current indent level.
protected void setupBasicTree()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||