Fixup Augmentable and Identifiable methods changing
[openflowplugin.git] / openflowjava / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / deserialization / factories / OF10QueueGetConfigReplyMessageFactoryTest.java
index c4ccb4e34137f6f12a390bb279f22c07a876b45e..415f58fdfbe07a4791bf91b75defd37eac3e6377 100644 (file)
@@ -9,7 +9,6 @@
 package org.opendaylight.openflowjava.protocol.impl.deserialization.factories;
 
 import io.netty.buffer.ByteBuf;
-
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
@@ -25,15 +24,16 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.queue.get.config.reply.Queues;
 
 /**
- * @author michal.polkorab
+ * Unit tests for OF10QueueGetConfigReplyMessageFactory.
  *
+ * @author michal.polkorab
  */
 public class OF10QueueGetConfigReplyMessageFactoryTest {
 
     private OFDeserializer<GetQueueConfigOutput> queueFactory;
 
     /**
-     * Initializes deserializer registry and lookups correct deserializer
+     * Initializes deserializer registry and lookups correct deserializer.
      */
     @Before
     public void startUp() {
@@ -45,7 +45,7 @@ public class OF10QueueGetConfigReplyMessageFactoryTest {
 
     /**
      * Testing of {@link OF10QueueGetConfigReplyMessageFactory} for correct
-     * translation into POJO
+     * translation into POJO.
      */
     @Test
     public void test() {
@@ -71,8 +71,8 @@ public class OF10QueueGetConfigReplyMessageFactoryTest {
                 queue2.getQueueProperty().get(0).getProperty());
         Assert.assertEquals("Wrong queue - wrong property", QueueProperties.OFPQTMINRATE,
                 queue2.getQueueProperty().get(1).getProperty());
-        RateQueueProperty rate1 = queue2.getQueueProperty().get(0).getAugmentation(RateQueueProperty.class);
-        RateQueueProperty rate2 = queue2.getQueueProperty().get(1).getAugmentation(RateQueueProperty.class);
+        RateQueueProperty rate1 = queue2.getQueueProperty().get(0).augmentation(RateQueueProperty.class);
+        RateQueueProperty rate2 = queue2.getQueueProperty().get(1).augmentation(RateQueueProperty.class);
         Assert.assertEquals("Wrong queue - wrong property rate", 32, rate1.getRate().intValue());
         Assert.assertEquals("Wrong queue - wrong property rate", 48, rate2.getRate().intValue());
     }