Migrate to RpcResultBuilder
[openflowjava.git] / openflow-protocol-impl / src / test / java / org / opendaylight / openflowjava / protocol / impl / core / OFVersionDetectorTest.java
index 1a3a3244c5292716421a8d658090394646165472..8cf3f75f527ad5e3e857e2e8963816a085358f20 100644 (file)
@@ -24,7 +24,7 @@ import org.mockito.runners.MockitoJUnitRunner;
 import org.opendaylight.openflowjava.util.ByteBufUtils;
 
 /**
- * 
+ *
  * @author michal.polkorab
  */
 @RunWith(MockitoJUnitRunner.class)
@@ -49,7 +49,7 @@ public class OFVersionDetectorTest {
      * Test of decode
      * {@link OFVersionDetector#decode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, java.util.List)
      * }
-     * 
+     *
      * @throws Exception
      */
     @Test
@@ -87,28 +87,23 @@ public class OFVersionDetectorTest {
     @Test
     public void testDecodeEmptyProtocolMessage() throws Exception {
         ByteBuf byteBuffer = ByteBufUtils.hexStringToByteBuf("01 00 00 08 00 00 00 01").skipBytes(8);
-               detector.decode(channelHandlerContext,
-                byteBuffer,
-                list);
+        detector.decode(channelHandlerContext, byteBuffer, list);
 
-               assertEquals( 0, byteBuffer.refCnt() ) ;
-               
+        assertEquals( 0, byteBuffer.refCnt() ) ;
     }
-    
+
     /**
      * Test of decode
      * {@link OFVersionDetector#decode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, java.util.List)
      * }
-     * 
+     *
      * @throws Exception
      */
     @Test
     public void testDecodeNotSupportedVersionProtocolMessage() throws Exception {
-        detector.decode(channelHandlerContext,
-                ByteBufUtils.hexStringToByteBuf("02 00 00 08 00 00 00 01"),
-                list);
+        detector.decode(channelHandlerContext, ByteBufUtils.hexStringToByteBuf("02 00 00 08 00 00 00 01"), list);
 
         Assert.assertEquals("List is not empty", 0, list.size());
     }
 
-}
\ No newline at end of file
+}