Enforce BMP SPI/ API Checkstyle
[bgpcep.git] / bmp / bmp-spi / src / test / java / org / opendaylight / protocol / bmp / spi / parser / TlvUtilTest.java
index b32df99072119367c1bf7503bc81b3cedc2b80ae..3a18ccefbae376677cc39bc3ffe22242e10b0f58 100644 (file)
@@ -10,8 +10,6 @@ package org.opendaylight.protocol.bmp.spi.parser;
 
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.Unpooled;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
 import java.math.BigInteger;
 import org.junit.Assert;
 import org.junit.Test;
@@ -19,9 +17,6 @@ import org.opendaylight.protocol.util.ByteArray;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Counter32;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Gauge64;
 
-/**
- * Created by cgasparini on 19.5.2015.
- */
 public class TlvUtilTest {
 
     private static final byte[] TLV_IN = {(byte) 0x01, (byte) 0x02, (byte) 0x03, (byte) 0x04, (byte) 0x05};
@@ -75,7 +70,7 @@ public class TlvUtilTest {
     }
 
     @Test
-    public void testFormatTlvASCII() throws Exception {
+    public void testFormatTlvAscii() throws Exception {
         ByteBuf out = Unpooled.buffer(TLV_ASCII_OUT.length);
         TlvUtil.formatTlvAscii(1, "Name", out);
         Assert.assertArrayEquals(TLV_ASCII_OUT, ByteArray.getAllBytes(out));
@@ -83,26 +78,4 @@ public class TlvUtilTest {
         TlvUtil.formatTlvAscii(1, null, out);
         Assert.assertFalse(out.isReadable());
     }
-
-    @Test(expected=UnsupportedOperationException.class)
-    public void testBmpMessageConstantsPrivateConstructor() throws Throwable {
-        final Constructor<BmpMessageConstants> c = BmpMessageConstants.class.getDeclaredConstructor();
-        c.setAccessible(true);
-        try {
-            c.newInstance();
-        } catch (final InvocationTargetException e) {
-            throw e.getCause();
-        }
-    }
-
-    @Test(expected=UnsupportedOperationException.class)
-    public void testTlvUtilPrivateConstructor() throws Throwable {
-        final Constructor<TlvUtil> c = TlvUtil.class.getDeclaredConstructor();
-        c.setAccessible(true);
-        try {
-            c.newInstance();
-        } catch (final InvocationTargetException e) {
-            throw e.getCause();
-        }
-    }
 }
\ No newline at end of file