use of org.opencastproject.workflow.api.WorkflowConfigurationImpl in project opencast by opencast.
the class WorkflowConfigurationTest method testConfigurationSerialization.
@Test
public void testConfigurationSerialization() throws Exception {
WorkflowOperationInstanceImpl op = new WorkflowOperationInstanceImpl("op", OperationState.RUNNING);
Set<WorkflowConfiguration> config = new HashSet<WorkflowConfiguration>();
config.add(new WorkflowConfigurationImpl("this", "that"));
op.setConfiguration(config);
WorkflowInstanceImpl instance = new WorkflowInstanceImpl();
List<WorkflowOperationInstance> ops = new ArrayList<WorkflowOperationInstance>();
ops.add(op);
instance.setOperations(ops);
String xml = WorkflowParser.toXml(instance);
Assert.assertTrue(xml.contains("configuration key=\"this\">that</"));
}
Aggregations