mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added removeNode(String path) to AVMService as a convenience and to
reduce my shame. Beefed up path robustness in AVMNodeConverter.SplitBase(). Removed an unneeded import from AVMNodeService. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3862 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -59,6 +59,32 @@ import org.alfresco.service.transaction.TransactionService;
|
||||
*/
|
||||
public class AVMServiceTest extends AVMServiceTestBase
|
||||
{
|
||||
/**
|
||||
* Test one argument remove.
|
||||
*/
|
||||
public void testOneArgRemove()
|
||||
{
|
||||
try
|
||||
{
|
||||
setupBasicTree();
|
||||
fService.removeNode("main:/a/b/c/foo/");
|
||||
fService.removeNode("main://d");
|
||||
try
|
||||
{
|
||||
fService.removeNode("main://");
|
||||
fail();
|
||||
}
|
||||
catch (AVMException e)
|
||||
{
|
||||
// Do nothing.
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace(System.err);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that non head version sources are update correctly.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user