Examples of WorkflowDescription


Examples of eu.scape_project.planning.services.myexperiment.domain.WorkflowDescription

     * @param name
     *            the component name
     * @return a mock of the QA component
     */
    private WorkflowDescription mockQaAny(String name) {
        WorkflowDescription wf = mockQa(name);
        when(wf.acceptsMimetypes(any(String.class), any(String.class))).thenReturn(true);
        when(wf.acceptsLeftMimetype(any(String.class))).thenReturn(true);
        when(wf.acceptsRightMimetype(any(String.class))).thenReturn(true);
        when(wf.handlesMimetype(any(String.class))).thenReturn(true);
        return wf;
    }
View Full Code Here

Examples of eu.scape_project.planning.services.myexperiment.domain.WorkflowDescription

     * @param name
     *            the component name
     * @return a mock of the CC component
     */
    private WorkflowDescription mockCcAny(String name) {
        WorkflowDescription wf = mock(WorkflowDescription.class);
        when(wf.getName()).thenReturn(name);
        when(wf.getDataflowId()).thenReturn(CC_DATAFLOW_ID);

        List<Port> inputPorts = new ArrayList<Port>(1);
        inputPorts.add(new Port("source", "Description", ComponentConstants.VALUE_SOURCE_OBJECT));
        when(wf.getInputPorts()).thenReturn(inputPorts);

        List<Port> outputPorts = new ArrayList<Port>(1);
        outputPorts.add(new Port("cc_output", "Description",
            "http://purl.org/DP/quality/measures#1"));
        when(wf.getOutputPorts()).thenReturn(outputPorts);

        when(wf.handlesMimetype(any(String.class))).thenReturn(true);
        return wf;
    }
View Full Code Here
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.