Remove private constructor tests
[bgpcep.git] / rsvp / spi / src / test / java / org / opendaylight / protocol / rsvp / parser / spi / EROSubobjectUtilTest.java
index abc1cfcc535f8769b73fd4d96c948455abbeb254..31c622c9c87fa3fb5349a0b974baf9e0e97869c7 100644 (file)
@@ -11,24 +11,9 @@ import static org.junit.Assert.assertArrayEquals;
 
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.Unpooled;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
 import org.junit.Test;
 
 public class EROSubobjectUtilTest {
-
-    @Test(expected = UnsupportedOperationException.class)
-    @SuppressWarnings({ "checkstyle:IllegalThrows", "checkstyle:avoidHidingCauseException" })
-    public void testPrivateConstructor() throws Throwable {
-        final Constructor<EROSubobjectUtil> c = EROSubobjectUtil.class.getDeclaredConstructor();
-        c.setAccessible(true);
-        try {
-            c.newInstance();
-        } catch (final InvocationTargetException e) {
-            throw e.getCause();
-        }
-    }
-
     @Test
     public void testFormatSubobject1() {
         final byte[] array = new byte[]{2, 3};