X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=rsvp%2Fspi%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fprotocol%2Frsvp%2Fparser%2Fspi%2Fsubobjects%2FCommonPathKeyParserTest.java;h=a561d51d44b8ce5a3e5aa03be6e1cfdb317e163e;hb=8876195762fec76b9651bd1050dd7d71a529dda1;hp=fc9a206aea84b3af7fb6d7eb5f668ff14bcab6d5;hpb=c03293f4b1f5e396235713dc9b148eb32c19ddc9;p=bgpcep.git diff --git a/rsvp/spi/src/test/java/org/opendaylight/protocol/rsvp/parser/spi/subobjects/CommonPathKeyParserTest.java b/rsvp/spi/src/test/java/org/opendaylight/protocol/rsvp/parser/spi/subobjects/CommonPathKeyParserTest.java index fc9a206aea..a561d51d44 100644 --- a/rsvp/spi/src/test/java/org/opendaylight/protocol/rsvp/parser/spi/subobjects/CommonPathKeyParserTest.java +++ b/rsvp/spi/src/test/java/org/opendaylight/protocol/rsvp/parser/spi/subobjects/CommonPathKeyParserTest.java @@ -20,7 +20,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.rsvp.rev150820.explicit.route.subobjects.subobject.type.path.key._case.PathKeyBuilder; public class CommonPathKeyParserTest { - private final CommonPathKeyParser parser = new CommonPathKeyParser(); private PathKey key1; private PathKey key2; private PathKey key3; @@ -40,22 +39,22 @@ public class CommonPathKeyParserTest { @Test(expected=IllegalArgumentException.class) public void testSerializationExcption1() { - this.parser.serializePathKey(this.key1); + CommonPathKeyParser.serializePathKey(this.key1); } @Test(expected=IllegalArgumentException.class) public void testSerializationExcption2() { - this.parser.serializePathKey(this.key2); + CommonPathKeyParser.serializePathKey(this.key2); } @Test public void testSerialization() { - final ByteBuf output = this.parser.serializePathKey(this.key3); + final ByteBuf output = CommonPathKeyParser.serializePathKey(this.key3); assertArrayEquals(this.bytes, ByteArray.readAllBytes(output)); } @Test public void testParsing() { - assertEquals(this.key3, this.parser.parsePathKey(2, Unpooled.copiedBuffer(this.bytes))); + assertEquals(this.key3, CommonPathKeyParser.parsePathKey(2, Unpooled.copiedBuffer(this.bytes))); } }