@Test public void testJsonSerialization() { DeliveredStep step = DeliveredStep.builder() .setAction(StepAction.DELIVERED_TO_SUBNET) .setDetail( DeliveredStepDetail.builder() .setOutputInterface(NodeInterfacePair.of("node", "iface")) .setResolvedNexthopIp(Ip.parse("1.1.1.1")) .build()) .build(); DeliveredStep clonedStep = BatfishObjectMapper.clone(step, DeliveredStep.class); assertThat(clonedStep.getAction(), equalTo(StepAction.DELIVERED_TO_SUBNET)); assertThat( clonedStep.getDetail().getOutputInterface(), equalTo(NodeInterfacePair.of("node", "iface"))); assertThat(clonedStep.getDetail().getResolvedNexthopIp(), equalTo(Ip.parse("1.1.1.1"))); }
public static Builder builder() { return new Builder(); }
DeliveredStep extends Step<DeliveredStepDetail> { public static Builder builder() { return new Builder(); } }
DeliveredStep extends Step<DeliveredStepDetail> { public static Builder builder() { return new Builder(); } private  DeliveredStep(DeliveredStepDetail detail, StepAction action); }
DeliveredStep extends Step<DeliveredStepDetail> { public static Builder builder() { return new Builder(); } private  DeliveredStep(DeliveredStepDetail detail, StepAction action); static Builder builder(); }
DeliveredStep extends Step<DeliveredStepDetail> { public static Builder builder() { return new Builder(); } private  DeliveredStep(DeliveredStepDetail detail, StepAction action); static Builder builder();  }