Package eu.scape_project.planning.services.taverna.generator

Examples of eu.scape_project.planning.services.taverna.generator.T2FlowExecutablePlanGenerator.addQaComponent()


        WorkflowDescription wf = mockQa("QA component");
        when(wf.acceptsMimetypes("image/jp2", "image/tiff")).thenReturn(true);
        when(wf.acceptsLeftMimetype("image/jp2")).thenReturn(true);
        when(wf.acceptsRightMimetype("image/tiff")).thenReturn(true);
        planGenerator.addQaComponent(wf, generateQaContent(QA_DATAFLOW_ID, "QA component"), DEFAULT_PARAMETERS,
            DEFAULT_MEASURES);

        Document doc = getDocument(planGenerator);

        assertThat(
View Full Code Here


        when(wf.acceptsMimetypes("image/tiff", "image/jp2")).thenReturn(true);
        when(wf.acceptsLeftMimetype("image/jp2")).thenReturn(true);
        when(wf.acceptsLeftMimetype("image/tiff")).thenReturn(true);
        when(wf.acceptsRightMimetype("image/jp2")).thenReturn(true);
        when(wf.acceptsRightMimetype("image/tiff")).thenReturn(true);
        planGenerator.addQaComponent(wf, generateQaContent(QA_DATAFLOW_ID, "QA component"), DEFAULT_PARAMETERS,
            DEFAULT_MEASURES);

        Document doc = getDocument(planGenerator);

        assertThat(
View Full Code Here

        when(wf.acceptsMimetypes("image/jp2", "image/jp2")).thenReturn(true);
        when(wf.acceptsLeftMimetype("image/jp2")).thenReturn(true);
        when(wf.acceptsLeftMimetype("image/tiff")).thenReturn(true);
        when(wf.acceptsRightMimetype("image/jp2")).thenReturn(true);
        when(wf.acceptsRightMimetype("image/tiff")).thenReturn(true);
        planGenerator.addQaComponent(wf, generateQaContent(QA_DATAFLOW_ID, "QA component"), DEFAULT_PARAMETERS,
            DEFAULT_MEASURES);

        Document doc = getDocument(planGenerator);

        assertThat(
View Full Code Here

        planGenerator.addTargetPort();

        addMigrationMock(planGenerator);
        WorkflowDescription wf = mockQa("QA component");
        when(wf.acceptsLeftMimetype("image/tiff")).thenReturn(true);
        planGenerator.addQaComponent(wf, generateQaContent(QA_DATAFLOW_ID, "QA component"), DEFAULT_PARAMETERS,
            DEFAULT_MEASURES);

        Document doc = getDocument(planGenerator);

        assertThat(
View Full Code Here

        planGenerator.addTargetPort();

        addMigrationMock(planGenerator);
        WorkflowDescription wf = mockQa("QA component");
        when(wf.acceptsRightMimetype("image/tiff")).thenReturn(true);
        planGenerator.addQaComponent(wf, generateQaContent(QA_DATAFLOW_ID, "QA component"), DEFAULT_PARAMETERS,
            DEFAULT_MEASURES);

        Document doc = getDocument(planGenerator);

        assertThat(
View Full Code Here

        planGenerator.addTargetPort();

        addMigrationMock(planGenerator);
        WorkflowDescription wf = mockQa("QA component");
        when(wf.acceptsLeftMimetype("image/jp2")).thenReturn(true);
        planGenerator.addQaComponent(wf, generateQaContent(QA_DATAFLOW_ID, "QA component"), DEFAULT_PARAMETERS,
            DEFAULT_MEASURES);

        Document doc = getDocument(planGenerator);

        assertThat(
View Full Code Here

        planGenerator.addTargetPort();

        addMigrationMock(planGenerator);
        WorkflowDescription wf = mockQa("QA component");
        when(wf.acceptsRightMimetype("image/jp2")).thenReturn(true);
        planGenerator.addQaComponent(wf, generateQaContent(QA_DATAFLOW_ID, "QA component"), DEFAULT_PARAMETERS,
            DEFAULT_MEASURES);

        Document doc = getDocument(planGenerator);

        assertThat(
View Full Code Here

        planGenerator.addSourcePort();
        planGenerator.addTargetPort();

        addMigrationMock(planGenerator);
        WorkflowDescription wf1 = mockQaAny("QA component 1");
        planGenerator.addQaComponent(wf1, generateQaContent(QA_DATAFLOW_ID, "QA component 1"), DEFAULT_PARAMETERS,
            DEFAULT_MEASURES);
        WorkflowDescription wf2 = mockQaAny("QA component 2");
        planGenerator.addQaComponent(wf2, generateQaContent(QA_DATAFLOW_ID, "QA component 2"), DEFAULT_PARAMETERS,
            DEFAULT_MEASURES);
View Full Code Here

        addMigrationMock(planGenerator);
        WorkflowDescription wf1 = mockQaAny("QA component 1");
        planGenerator.addQaComponent(wf1, generateQaContent(QA_DATAFLOW_ID, "QA component 1"), DEFAULT_PARAMETERS,
            DEFAULT_MEASURES);
        WorkflowDescription wf2 = mockQaAny("QA component 2");
        planGenerator.addQaComponent(wf2, generateQaContent(QA_DATAFLOW_ID, "QA component 2"), DEFAULT_PARAMETERS,
            DEFAULT_MEASURES);

        Document doc = getDocument(planGenerator);

        assertThat(
View Full Code Here

        planGenerator.addSourcePort();
        planGenerator.addTargetPort();

        WorkflowDescription wf = mockQaAny("QA component");
        planGenerator.addQaComponent(wf, generateQaContent(QA_DATAFLOW_ID, "QA component"), DEFAULT_PARAMETERS,
            DEFAULT_MEASURES);

        Document doc = getDocument(planGenerator);

        assertThat(getContent(doc, TOP_WF + "/t2f:processors/t2f:processor/t2f:name"), is("QA_component"));
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.