mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Reworks AVMService.getIndirection() to return the indirection path for a plain node
in a layered context. Modified AVMHostConfig to use this method. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3903 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -63,6 +63,30 @@ import org.alfresco.util.GUID;
|
||||
*/
|
||||
public class AVMServiceTest extends AVMServiceTestBase
|
||||
{
|
||||
/**
|
||||
* Test getIndirection.
|
||||
*/
|
||||
public void testGetIndirection()
|
||||
{
|
||||
try
|
||||
{
|
||||
setupBasicTree();
|
||||
fService.createAVMStore("layer");
|
||||
fService.createLayeredDirectory("main:/a", "layer:/", "layer");
|
||||
assertEquals("main:/a", fService.getIndirectionPath(-1, "layer:/layer"));
|
||||
assertEquals("main:/a/b", fService.getIndirectionPath(-1, "layer:/layer/b"));
|
||||
assertEquals("main:/a/b/c", fService.getIndirectionPath(-1, "layer:/layer/b/c"));
|
||||
assertEquals("main:/a/b/c/foo", fService.getIndirectionPath(-1, "layer:/layer/b/c/foo"));
|
||||
fService.createLayeredDirectory("main:/d", "layer:/layer/b", "dlayer");
|
||||
assertEquals("main:/d", fService.getIndirectionPath(-1, "layer:/layer/b/dlayer"));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace(System.err);
|
||||
fail();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the promote action.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user