Package eu.scape_project.planning.services.myexperiment.domain

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


    private void addMigrationMock(T2FlowExecutablePlanGenerator planGenerator) {
        WorkflowDescription wf = mock(WorkflowDescription.class);
        when(wf.getDataflowId()).thenReturn(MIGRATION_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("target", "Description", ComponentConstants.VALUE_TARGET_OBJECT));
        when(wf.getOutputPorts()).thenReturn(outputPorts);

        List<MigrationPath> migrationPaths = new ArrayList<MigrationPath>(1);
        migrationPaths.add(new MigrationPath("image/tiff", "image/jp2"));
        when(wf.getMigrationPaths()).thenReturn(migrationPaths);
View Full Code Here


        WorkflowDescription wf = mock(WorkflowDescription.class);
        when(wf.getName()).thenReturn(name);
        when(wf.getDataflowId()).thenReturn(QA_DATAFLOW_ID);

        List<Port> inputPorts = new ArrayList<Port>(2);
        inputPorts.add(new Port("left", "Description", ComponentConstants.VALUE_LEFT_OBJECT));
        inputPorts.add(new Port("right", "Description", ComponentConstants.VALUE_RIGHT_OBJECT));
        when(wf.getInputPorts()).thenReturn(inputPorts);

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

        List<String> measures = new ArrayList<String>(1);
        measures.add("http://purl.org/DP/quality/measures#1");
View Full Code Here

        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

Related Classes of eu.scape_project.planning.services.myexperiment.domain.Port

Copyright © 2018 www.massapicom. 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.