use of com.adobe.acs.commons.mcp.util.DeserializeException in project acs-aem-commons by Adobe-Consulting-Services.
the class FolderRelocatorTest method testRequiredFields.
@Test
public void testRequiredFields() throws LoginException, DeserializeException, RepositoryException {
ResourceResolver rr = getEnhancedMockResolver();
FolderRelocator tool = new FolderRelocatorFactory().createProcessDefinition();
ProcessInstance instance = new ProcessInstanceImpl(getControlledProcessManager(), tool, "relocator test");
assertEquals("Folder Relocator: relocator test", instance.getName());
try {
instance.init(rr, Collections.EMPTY_MAP);
fail("That should have thrown an error");
} catch (DeserializeException ex) {
// Expected
}
}
Aggregations