Search in sources :

Example 1 with Colorado

use of org.jenkinsci.plugins.workflow.testMetaStep.Colorado 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)

Aggregations

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