@Test public void testJsonSerialization() { ArpErrorStep step = ArpErrorStep.builder() .setAction(StepAction.NEIGHBOR_UNREACHABLE) .setDetail( ArpErrorStepDetail.builder() .setOutputInterface(NodeInterfacePair.of("node", "iface")) .setResolvedNexthopIp(Ip.parse("1.1.1.1")) .build()) .build(); ArpErrorStep clonedStep = BatfishObjectMapper.clone(step, ArpErrorStep.class); assertThat(clonedStep.getAction(), equalTo(StepAction.NEIGHBOR_UNREACHABLE)); 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(); }
ArpErrorStep extends Step<ArpErrorStepDetail> { public static Builder builder() { return new Builder(); } }
ArpErrorStep extends Step<ArpErrorStepDetail> { public static Builder builder() { return new Builder(); } private  ArpErrorStep(ArpErrorStepDetail detail, StepAction action); }
ArpErrorStep extends Step<ArpErrorStepDetail> { public static Builder builder() { return new Builder(); } private  ArpErrorStep(ArpErrorStepDetail detail, StepAction action); static Builder builder(); }
ArpErrorStep extends Step<ArpErrorStepDetail> { public static Builder builder() { return new Builder(); } private  ArpErrorStep(ArpErrorStepDetail detail, StepAction action); static Builder builder();  }