@Test public void testEquality() { flowSpecComponents1.add(portNum1); byte[] port1 = new byte[] {(byte) 0x1 }; operatorValue1.add(new BgpFsOperatorValue((byte) 0x81, port1)); byte[] port11 = new byte[] {(byte) 0x1 }; operatorValue1.add(new BgpFsOperatorValue((byte) 0x82, port11)); List<BgpValueType> fsTlvs1 = new LinkedList<>(); fsTlvs1.add(new BgpFsActionTrafficRate((short) 1, 1)); flowSpecDetails1.setFsActionTlv(fsTlvs1); flowSpecComponents.add(portNum); byte[] port = new byte[] {(byte) 0x1 }; operatorValue.add(new BgpFsOperatorValue((byte) 0x81, port)); byte[] port4 = new byte[] {(byte) 0x1 }; operatorValue.add(new BgpFsOperatorValue((byte) 0x82, port4)); List<BgpValueType> fsTlvs = new LinkedList<>(); fsTlvs.add(new BgpFsActionTrafficRate((short) 1, 1)); flowSpecComponents2.add(portNum2); byte[] port2 = new byte[] {(byte) 0x1 }; operatorValue2.add(new BgpFsOperatorValue((byte) 0x82, port2)); byte[] port22 = new byte[] {(byte) 0x1 }; operatorValue2.add(new BgpFsOperatorValue((byte) 0x82, port22)); List<BgpValueType> fsTlvs2 = new LinkedList<>(); fsTlvs2.add(new BgpFsActionTrafficRate((short) 1, 1)); flowSpecDetails2.setFsActionTlv(fsTlvs2); new EqualsTester() .addEqualityGroup(flowSpecDetails1, flowSpecDetails) .addEqualityGroup(flowSpecDetails2) .testEquals(); }
public void setFsActionTlv(List<BgpValueType> fsActionTlv) { this.fsActionTlv = fsActionTlv; }
BgpFlowSpecNlri { public void setFsActionTlv(List<BgpValueType> fsActionTlv) { this.fsActionTlv = fsActionTlv; } }
BgpFlowSpecNlri { public void setFsActionTlv(List<BgpValueType> fsActionTlv) { this.fsActionTlv = fsActionTlv; } BgpFlowSpecNlri(List<BgpValueType> flowSpecComponents);  BgpFlowSpecNlri(); }
BgpFlowSpecNlri { public void setFsActionTlv(List<BgpValueType> fsActionTlv) { this.fsActionTlv = fsActionTlv; } BgpFlowSpecNlri(List<BgpValueType> flowSpecComponents);  BgpFlowSpecNlri(); List<BgpValueType> fsActionTlv(); void setFsActionTlv(List<BgpValueType> fsActionTlv); RouteDistinguisher routeDistinguisher(); void setRouteDistinguiher(RouteDistinguisher routeDistinguisher); List<BgpValueType> flowSpecComponents(); void setFlowSpecComponents(List<BgpValueType> flowSpecComponents); @Override int hashCode(); @Override boolean equals(Object obj); static void writeFlowType(BgpValueType tlv, ChannelBuffer cb); static void updateBufferIdenticalFlowTypes(ChannelBuffer cb, BgpFlowSpecNlri bgpFlowSpecNlri); static void updateBufferNonIdenticalFlowTypes(ChannelBuffer cb, BgpFlowSpecNlri bgpFlowSpecNlri); @Override String toString(); }
BgpFlowSpecNlri { public void setFsActionTlv(List<BgpValueType> fsActionTlv) { this.fsActionTlv = fsActionTlv; } BgpFlowSpecNlri(List<BgpValueType> flowSpecComponents);  BgpFlowSpecNlri(); List<BgpValueType> fsActionTlv(); void setFsActionTlv(List<BgpValueType> fsActionTlv); RouteDistinguisher routeDistinguisher(); void setRouteDistinguiher(RouteDistinguisher routeDistinguisher); List<BgpValueType> flowSpecComponents(); void setFlowSpecComponents(List<BgpValueType> flowSpecComponents); @Override int hashCode(); @Override boolean equals(Object obj); static void writeFlowType(BgpValueType tlv, ChannelBuffer cb); static void updateBufferIdenticalFlowTypes(ChannelBuffer cb, BgpFlowSpecNlri bgpFlowSpecNlri); static void updateBufferNonIdenticalFlowTypes(ChannelBuffer cb, BgpFlowSpecNlri bgpFlowSpecNlri); @Override String toString(); static final short FLOW_SPEC_LEN; }