use of org.alfresco.repo.virtual.VirtualizationException in project alfresco-repository by Alfresco.
the class SystemVirtualizationMethodTest method testDefaultSyspath.
@Test
public void testDefaultSyspath() throws Exception {
NodeRef vf = createVirtualizedFolder(testRootFolder.getNodeRef(), "SystemVirtualizationMethodTest_testDefaultSyspath", null);
assertFalse(systemVirtualizationMethod.canVirtualize(environment, vf));
try {
systemVirtualizationMethod.virtualize(environment, vf);
fail("Should not be able to virtualize non-virtualizable nodes.");
} catch (VirtualizationException e) {
logger.info(e);
}
}
use of org.alfresco.repo.virtual.VirtualizationException in project alfresco-repository by Alfresco.
the class VirtualStoreImplTest method testNonVirtualizable.
@Test
public void testNonVirtualizable() throws Exception {
NodeRef aNodeRef = createVirtualizedFolder(testRootFolder.getNodeRef(), "TestVirtualStoreImpl_createVirtualizedFolder", null);
assertFalse(smartStore.canVirtualize(aNodeRef));
try {
smartStore.virtualize(aNodeRef);
fail("Should not be able to virtualize non-virtualizable nodes.");
} catch (VirtualizationException e) {
logger.info(e);
}
}
Aggregations