use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.output.Result in project openflowplugin by opendaylight.
the class IpSrcCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = ipSrcCodec.deserialize(buffer);
final IpSrcCaseValue result = (IpSrcCaseValue) input.getMatchEntryValue();
assertEquals(Nxm0Class.class, input.getOxmClass());
assertEquals(NxmOfIpSrc.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(2, result.getIpSrcValues().getValue().intValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.output.Result in project openflowplugin by opendaylight.
the class Ipv6SrcCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = ipv6SrcCodec.deserialize(buffer);
final IpSrcCaseValue result = (IpSrcCaseValue) input.getMatchEntryValue();
assertEquals(Nxm1Class.class, input.getOxmClass());
assertEquals(NxmOfIpSrc.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(2, result.getIpSrcValues().getValue().intValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.output.Result in project openflowplugin by opendaylight.
the class Nshc3CodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = nshc3Codec.deserialize(buffer);
final Nshc3CaseValue result = (Nshc3CaseValue) input.getMatchEntryValue();
assertEquals(Nxm1Class.class, input.getOxmClass());
assertEquals(NxmNxNshc3.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(2, result.getNshc3Values().getNshc().intValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.output.Result in project openflowplugin by opendaylight.
the class Reg3CodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = reg3Codec.deserialize(buffer);
final RegCaseValue result = (RegCaseValue) input.getMatchEntryValue();
assertEquals(Nxm1Class.class, input.getOxmClass());
assertEquals(NxmNxReg3.class, input.getOxmMatchField());
assertEquals(false, input.isHasMask());
assertEquals(1, result.getRegValues().getValue().intValue());
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.rev200120.output.Result in project openflowplugin by opendaylight.
the class UdpSrcCodecTest method deserializeTest.
@Test
public void deserializeTest() {
createBuffer(buffer);
input = udpSrcCodec.deserialize(buffer);
final UdpSrcCaseValue result = (UdpSrcCaseValue) input.getMatchEntryValue();
assertEquals(Nxm0Class.class, input.getOxmClass());
assertEquals(NxmOfUdpSrc.class, input.getOxmMatchField());
assertEquals(true, input.isHasMask());
assertEquals(1, result.getUdpSrcValues().getPort().getValue().shortValue());
assertEquals(0xffff, result.getUdpSrcValues().getMask().shortValue() & 0xffff);
}
Aggregations