public class AVMServiceLocalTest
extends junit.framework.TestCase
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
AVMServiceLocalTest() |
| Modifier and Type | Method and Description |
|---|---|
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 void |
recursiveList(java.lang.String store,
int version) |
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 |
testDeleteLD1() |
void |
testDeleteLD2() |
void |
testDeleteLD3() |
void |
testDeleteLD4() |
void |
testDeleteLD5() |
void |
testDeleteLD6() |
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 |
testLayeredFileDeleteFile1() |
void |
testLayeredFileDeleteFile2() |
void |
testLayeredFileDeleteFile3() |
void |
testLayeredFileDeleteFile4() |
void |
testLayeredFolder1() |
void |
testLayeredFolder2() |
void |
testLayeredFolder3() |
void |
testLayeredFolder4() |
void |
testLayeredFolderDelete1() |
void |
testLayeredFolderDelete2() |
void |
testLayeredFolderDelete3() |
void |
testLayeredFolderDelete4() |
void |
testNoodleUpdate()
Test a noodle update.
|
void |
testPartialFlatten()
Test partial flatten.
|
void |
testRead()
Another test of reading.
|
void |
testReadWrite()
Test reading and writing.
|
void |
testRename1() |
void |
testRename2() |
void |
testRename3() |
void |
testResetLayer()
Test AVMSyncService resetLayer.
|
void |
testSetup() |
void |
testSimple()
Do a simple hello world test.
|
void |
testSimpleUpdateBR()
Test update to branch
|
void |
testSimpleUpdateLD1() |
void |
testSimpleUpdateLD2() |
void |
testSimpleUpdateLD3() |
void |
testSimpleUpdateLD4() |
void |
testSimpleUpdateLD5() |
void |
testSimpleUpdateLD6() |
void |
testSimpleUpdateLF1() |
void |
testSimpleUpdateLF2() |
void |
testSimpleUpdateLF3() |
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.
|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toStringassertEquals, 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, formatprotected static org.springframework.context.ApplicationContext fContext
protected static AVMRemote fService
protected static AVMSyncService fSyncService
protected static org.alfresco.util.NameMatcher excluder
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exceptionprotected void tearDown()
throws java.lang.Exception
tearDown in class junit.framework.TestCasejava.lang.Exceptionpublic void testSetup()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetAPath()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimple()
throws java.lang.Throwable
java.lang.Throwableprotected void explorePaths(java.lang.String path)
throws java.lang.Exception
java.lang.Exceptionpublic void testReadWrite()
throws java.lang.Throwable
java.lang.Throwablepublic void testRead()
throws java.lang.Throwable
java.lang.Throwablepublic void testErrorState()
throws java.lang.Throwable
java.lang.Throwablepublic void testSimpleUpdateBR()
throws java.lang.Throwable
java.lang.Throwablepublic void testSimpleUpdateLD1()
throws java.lang.Throwable
java.lang.Throwablepublic void testSimpleUpdateLD2()
throws java.lang.Throwable
java.lang.Throwablepublic void testSimpleUpdateLD3()
throws java.lang.Throwable
java.lang.Throwablepublic void testSimpleUpdateLD4()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleUpdateLD5()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleUpdateLD6()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteLD1()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteLD2()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteLD3()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteLD4()
throws java.lang.Exception
java.lang.Exceptionpublic void testBulkUpdateLD()
throws java.lang.Exception
java.lang.Exceptionpublic void testFlatten()
throws java.lang.Exception
java.lang.Exceptionpublic void testPartialFlatten()
throws java.lang.Exception
java.lang.Exceptionpublic void testResetLayer()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateSnapshot()
throws java.lang.Exception
java.lang.Exceptionpublic void testNoodleUpdate()
throws java.lang.Exception
java.lang.Exceptionpublic void testRename1()
throws java.lang.Exception
java.lang.Exceptionpublic void testRename2()
throws java.lang.Exception
java.lang.Exceptionpublic void testRename3()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateFileTitleAndDescription()
throws java.lang.Exception
java.lang.Exceptionpublic void testUpdateDirectoryTitleAndDescription()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleUpdateLF1()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleUpdateLF2()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleUpdateLF3()
throws java.lang.Exception
java.lang.Exceptionpublic void testLayeredFolder1()
throws java.lang.Exception
java.lang.Exceptionpublic void testLayeredFolder2()
throws java.lang.Exception
java.lang.Exceptionpublic void testLayeredFolder3()
throws java.lang.Exception
java.lang.Exceptionpublic void testLayeredFolder4()
throws java.lang.Exception
java.lang.Exceptionpublic void testLayeredFolderDelete1()
throws java.lang.Exception
java.lang.Exceptionpublic void testLayeredFolderDelete2()
throws java.lang.Exception
java.lang.Exceptionpublic void testLayeredFolderDelete3()
throws java.lang.Exception
java.lang.Exceptionpublic void testLayeredFolderDelete4()
throws java.lang.Exception
java.lang.Exceptionpublic void testLayeredFileDeleteFile1()
throws java.lang.Exception
java.lang.Exceptionpublic void testLayeredFileDeleteFile2()
throws java.lang.Exception
java.lang.Exceptionpublic void testLayeredFileDeleteFile3()
throws java.lang.Exception
java.lang.Exceptionpublic void testLayeredFileDeleteFile4()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteLD5()
throws java.lang.Exception
java.lang.Exceptionpublic void testDeleteLD6()
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 void recursiveList(java.lang.String store,
int version)
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.IOExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.