Search in sources :

Example 1 with StateMetaStep

use of org.jenkinsci.plugins.workflow.testMetaStep.StateMetaStep in project workflow-cps-plugin by jenkinsci.

the class SnippetizerTest method collisionWithAnotherMetaStep.

@Test
public void collisionWithAnotherMetaStep() throws Exception {
    // neither should produce "CO()" because that would prevent disambiguation
    st.assertRoundTrip(new StateMetaStep(new Colorado()), "state CO()");
    st.assertRoundTrip(new DetectionMetaStep(new CarbonMonoxide()), "detect CO()");
}
Also used : CarbonMonoxide(org.jenkinsci.plugins.workflow.testMetaStep.chemical.CarbonMonoxide) Colorado(org.jenkinsci.plugins.workflow.testMetaStep.Colorado) DetectionMetaStep(org.jenkinsci.plugins.workflow.testMetaStep.chemical.DetectionMetaStep) StateMetaStep(org.jenkinsci.plugins.workflow.testMetaStep.StateMetaStep) Test(org.junit.Test)

Example 2 with StateMetaStep

use of org.jenkinsci.plugins.workflow.testMetaStep.StateMetaStep in project workflow-cps-plugin by jenkinsci.

the class SnippetizerTest method recursiveSymbolUse.

@Test
public void recursiveSymbolUse() throws Exception {
    Island hawaii = new Island(new Island(new Island(), null), new Island());
    st.assertRoundTrip(new StateMetaStep(new Hawaii(hawaii)), "hawaii island(lhs: island(lhs: island()), rhs: island())");
}
Also used : Hawaii(org.jenkinsci.plugins.workflow.testMetaStep.Hawaii) StateMetaStep(org.jenkinsci.plugins.workflow.testMetaStep.StateMetaStep) Island(org.jenkinsci.plugins.workflow.testMetaStep.Island) Test(org.junit.Test)

Aggregations

StateMetaStep (org.jenkinsci.plugins.workflow.testMetaStep.StateMetaStep)2 Test (org.junit.Test)2 Colorado (org.jenkinsci.plugins.workflow.testMetaStep.Colorado)1 Hawaii (org.jenkinsci.plugins.workflow.testMetaStep.Hawaii)1 Island (org.jenkinsci.plugins.workflow.testMetaStep.Island)1 CarbonMonoxide (org.jenkinsci.plugins.workflow.testMetaStep.chemical.CarbonMonoxide)1 DetectionMetaStep (org.jenkinsci.plugins.workflow.testMetaStep.chemical.DetectionMetaStep)1