@Test public void testConstruction() { List<LspLocalLabelInfo> lspLocalLabelInfoList = new LinkedList<>(); ResourceConsumer tunnelConsumerId = TunnelConsumerId.valueOf(10); DeviceId deviceId = DeviceId.deviceId("foo"); LabelResourceId inLabelId = LabelResourceId.labelResourceId(1); LabelResourceId outLabelId = LabelResourceId.labelResourceId(2); PortNumber inPort = PortNumber.portNumber(5122); PortNumber outPort = PortNumber.portNumber(5123); LspLocalLabelInfo lspLocalLabelInfo = DefaultLspLocalLabelInfo.builder() .deviceId(deviceId) .inLabelId(inLabelId) .outLabelId(outLabelId) .inPort(inPort) .outPort(outPort) .build(); lspLocalLabelInfoList.add(lspLocalLabelInfo); PceccTunnelInfo pceccTunnelInfo = new PceccTunnelInfo(lspLocalLabelInfoList, tunnelConsumerId); assertThat(lspLocalLabelInfoList, is(pceccTunnelInfo.lspLocalLabelInfoList())); }
public List<LspLocalLabelInfo> lspLocalLabelInfoList() { return this.lspLocalLabelInfoList; }
PceccTunnelInfo { public List<LspLocalLabelInfo> lspLocalLabelInfoList() { return this.lspLocalLabelInfoList; } }
PceccTunnelInfo { public List<LspLocalLabelInfo> lspLocalLabelInfoList() { return this.lspLocalLabelInfoList; } PceccTunnelInfo(List<LspLocalLabelInfo> lspLocalLabelInfoList,
                                           ResourceConsumer tunnelConsumerId);  PceccTunnelInfo(); }
PceccTunnelInfo { public List<LspLocalLabelInfo> lspLocalLabelInfoList() { return this.lspLocalLabelInfoList; } PceccTunnelInfo(List<LspLocalLabelInfo> lspLocalLabelInfoList,
                                           ResourceConsumer tunnelConsumerId);  PceccTunnelInfo(); List<LspLocalLabelInfo> lspLocalLabelInfoList(); ResourceConsumer tunnelConsumerId(); void lspLocalLabelInfoList(List<LspLocalLabelInfo> lspLocalLabelInfoList); void tunnelConsumerId(ResourceConsumer id); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
PceccTunnelInfo { public List<LspLocalLabelInfo> lspLocalLabelInfoList() { return this.lspLocalLabelInfoList; } PceccTunnelInfo(List<LspLocalLabelInfo> lspLocalLabelInfoList,
                                           ResourceConsumer tunnelConsumerId);  PceccTunnelInfo(); List<LspLocalLabelInfo> lspLocalLabelInfoList(); ResourceConsumer tunnelConsumerId(); void lspLocalLabelInfoList(List<LspLocalLabelInfo> lspLocalLabelInfoList); void tunnelConsumerId(ResourceConsumer id); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }