Package org.jenkinsci.plugins.workflow.test.steps

Examples of org.jenkinsci.plugins.workflow.test.steps.SemaphoreStep.success()


        exec.get().start();
        FlowNode n = l.next();
        assertTrue(String.valueOf(n), n instanceof FlowStartNode);
        n = l.next();
        assertTrue(n instanceof BlockStartNode);
        step.success(null);
        n = l.next();
        assertTrue(n instanceof AtomNode);
        // TODO check that it is finished now
        n = l.next();
        assertTrue(n instanceof BlockEndNode);
View Full Code Here


        n = l.next();
        assertTrue(n instanceof BlockStartNode);
        n = l.next();
        assertTrue(n instanceof BlockStartNode);
        block.startBlock();
        step.success(null);
        n = l.next();
        assertTrue(n instanceof AtomNode);
        assertEquals(null, block.waitForBlock());
        block.finishSuccess(null);
        n = l.next();
View Full Code Here

        step = reserialize(step);
        block = reserialize(block);
        t = step.getContext().get(Thing.class);
        assertNotNull(t);
        assertEquals(17, t.number);
        step.success(null);
        assertEquals(null, block.waitForBlock());
        block.finishSuccess(null);
    }

    @SuppressWarnings("unchecked")
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.