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()");
}
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())");
}
Aggregations