|
|||||||||
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 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. |
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 |
Field Detail |
---|
protected static org.springframework.context.ApplicationContext fContext
protected static AVMRemote fService
protected static AVMSyncService fSyncService
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.TestCase
java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.framework.TestCase
java.lang.Exception
public void testSetup() throws java.lang.Exception
java.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 testSimpleUpdateLD5() throws java.lang.Exception
java.lang.Exception
public void testSimpleUpdateLD6() throws java.lang.Exception
java.lang.Exception
public void testDeleteLD1() throws java.lang.Exception
java.lang.Exception
public void testDeleteLD2() throws java.lang.Exception
java.lang.Exception
public void testDeleteLD3() throws java.lang.Exception
java.lang.Exception
public void testDeleteLD4() 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 testRename1() throws java.lang.Exception
java.lang.Exception
public void testRename2() throws java.lang.Exception
java.lang.Exception
public void testRename3() 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.Exception
public void testSimpleUpdateLF1() throws java.lang.Exception
java.lang.Exception
public void testSimpleUpdateLF2() throws java.lang.Exception
java.lang.Exception
public void testSimpleUpdateLF3() throws java.lang.Exception
java.lang.Exception
public void testLayeredFolder1() throws java.lang.Exception
java.lang.Exception
public void testLayeredFolder2() throws java.lang.Exception
java.lang.Exception
public void testLayeredFolder3() throws java.lang.Exception
java.lang.Exception
public void testLayeredFolder4() throws java.lang.Exception
java.lang.Exception
public void testLayeredFolderDelete1() throws java.lang.Exception
java.lang.Exception
public void testLayeredFolderDelete2() throws java.lang.Exception
java.lang.Exception
public void testLayeredFolderDelete3() throws java.lang.Exception
java.lang.Exception
public void testLayeredFolderDelete4() throws java.lang.Exception
java.lang.Exception
public void testLayeredFileDeleteFile1() throws java.lang.Exception
java.lang.Exception
public void testLayeredFileDeleteFile2() throws java.lang.Exception
java.lang.Exception
public void testLayeredFileDeleteFile3() throws java.lang.Exception
java.lang.Exception
public void testLayeredFileDeleteFile4() throws java.lang.Exception
java.lang.Exception
public void testDeleteLD5() throws java.lang.Exception
java.lang.Exception
public void testDeleteLD6() throws java.lang.Exception
java.lang.Exception
protected 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.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |