@Test public void testJsonSerialization() { String iface = "GigabitEthernet1/0"; InboundStep step = InboundStep.builder().setDetail(new InboundStepDetail(iface)).build(); InboundStep clone = BatfishObjectMapper.clone(step, InboundStep.class); assertEquals(step.getAction(), clone.getAction()); assertEquals(step.getDetail().getInterface(), clone.getDetail().getInterface()); assertEquals(clone.getDetail().getInterface(), iface); }
public static Builder builder() { return new Builder(); }
InboundStep extends Step<InboundStepDetail> { public static Builder builder() { return new Builder(); } }
InboundStep extends Step<InboundStepDetail> { public static Builder builder() { return new Builder(); } private  InboundStep(InboundStepDetail detail, StepAction action); }
InboundStep extends Step<InboundStepDetail> { public static Builder builder() { return new Builder(); } private  InboundStep(InboundStepDetail detail, StepAction action); static Builder builder(); }
InboundStep extends Step<InboundStepDetail> { public static Builder builder() { return new Builder(); } private  InboundStep(InboundStepDetail detail, StepAction action); static Builder builder();  }