use of org.jenkinsci.plugins.workflow.cps.SnippetizerTester in project throttle-concurrent-builds-plugin by jenkinsci.
the class ThrottleStepTest method snippetizer.
@Test
public void snippetizer() throws Exception {
TestUtil.setupCategories(TestUtil.ONE_PER_NODE);
SnippetizerTester st = new SnippetizerTester(j);
st.assertRoundTrip(new ThrottleStep(Collections.singletonList(TestUtil.ONE_PER_NODE.getCategoryName())), "throttle(['" + TestUtil.ONE_PER_NODE.getCategoryName() + "']) {\n // some block\n}");
}
Aggregations