Search in sources :

Example 1 with UnknownStep

use of com.paulhammant.buildradiator.radiator.model.UnknownStep in project BuildRadiator by BuildRadiator.

the class RadiatorUnitTest method radiatorCanIgnoreABogusStepName.

@Test
public void radiatorCanIgnoreABogusStepName() throws InterruptedException, JsonProcessingException {
    Radiator rad = new RadiatorStore().createRadiator(new TestRandomGenerator("X", "sseeccrreett"), "A");
    try {
        rad.startStep("1", "NoMatch");
        fail();
    } catch (UnknownStep e) {
    }
    assertRadiatorsEqualIgnoringLastUpdatedField(rad, rad("X", "sseeccrreett", stepNames("A"), build("1", "", 0, step("A", 0, ""))));
}
Also used : UnknownStep(com.paulhammant.buildradiator.radiator.model.UnknownStep) Radiator(com.paulhammant.buildradiator.radiator.model.Radiator) Test(org.junit.Test)

Aggregations

Radiator (com.paulhammant.buildradiator.radiator.model.Radiator)1 UnknownStep (com.paulhammant.buildradiator.radiator.model.UnknownStep)1 Test (org.junit.Test)1