Package org.data2semantics.workflow

Source Code of org.data2semantics.workflow.TestWorkflowResourceSpace

package org.data2semantics.workflow;

import java.lang.reflect.Method;

import org.data2semantics.platform.core.Workflow;
import org.data2semantics.platform.execution.LocalExecutionProfile;
import org.data2semantics.platform.execution.Orchestrator;
import org.data2semantics.platform.resourcespace.ResourceSpace;
import org.data2semantics.platform.util.PlatformUtil;
import org.data2semantics.platform.util.WorkflowParser;
import org.junit.Test;

public class TestWorkflowResourceSpace {

  @Test
  public void testFirstWorkflowWithRS() throws Exception {
    WorkflowParser parser = new WorkflowParser();
   
    Workflow workflowContainer = parser.parseYAML("src/test/resources/multi-modules.yaml");
   
    ResourceSpace resourceSpace = new ResourceSpace();
    LocalExecutionProfile localExecutionProfile = new LocalExecutionProfile();
    Orchestrator platformOrchestrator = new Orchestrator(workflowContainer, localExecutionProfile, resourceSpace);
   
    platformOrchestrator.orchestrate();
   
    //workflowContainer.dumpIntermediateResults();

  }
 
  @Test
  public void justSomeTest() throws ClassNotFoundException{
    ClassLoader loader = getClass().getClassLoader();
    Class <?> test = loader.loadClass("org.data2semantics.modules.ListModule");
    Method m = PlatformUtil.getMainMethod(test);
   
   
   
  }
}
TOP

Related Classes of org.data2semantics.workflow.TestWorkflowResourceSpace

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.