Fix ietf-type-util checkstyle
[mdsal.git] / model / ietf / ietf-type-util / src / test / java / org / opendaylight / mdsal / model / ietf / util / Ipv6UtilsTest.java
index 7641e6a57b81f362db69af4b5525505c1b23786f..75f1ab63594ebad03d47abdf33560e19b1af1f67 100644 (file)
@@ -10,11 +10,8 @@ package org.opendaylight.mdsal.model.ietf.util;
 
 import static com.google.common.net.InetAddresses.forString;
 import static org.junit.Assert.assertArrayEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.fail;
 import static org.opendaylight.mdsal.model.ietf.util.Ipv6Utils.fillIpv6Bytes;
 
-import java.lang.reflect.Constructor;
 import org.junit.Test;
 
 public class Ipv6UtilsTest {
@@ -49,8 +46,9 @@ public class Ipv6UtilsTest {
         assertArrayEquals(test1, bytesForString("0:0:0:0:0:0:13.1.68.3"));
         assertArrayEquals(test1, bytesForString("::13.1.68.3"));
 
-        final byte[] test2 = new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255,
-                (byte)129, (byte)144, 52, 38 };
+        final byte[] test2 = new byte[] {
+            0, 0, 0, 0, 0, 0, 0, 0, 0, 0, (byte)255, (byte)255, (byte)129, (byte)144, 52, 38
+        };
         assertArrayEquals(test2, bytesForString("0:0:0:0:0:FFFF:129.144.52.38"));
         assertArrayEquals(test2, bytesForString("::FFFF:129.144.52.38"));
     }
@@ -113,17 +111,4 @@ public class Ipv6UtilsTest {
     private static void assertEqualResult(final String str) {
         assertArrayEquals(forString(str).getAddress(), bytesForString(str));
     }
-
-    @Test(expected = UnsupportedOperationException.class)
-    public void privateConstructTest() throws Throwable {
-        final Constructor<Ipv6Utils> constructor = Ipv6Utils.class.getDeclaredConstructor();
-        assertFalse(constructor.isAccessible());
-        constructor.setAccessible(true);
-        try {
-            constructor.newInstance();
-            fail("Exception should be thrown");
-        } catch (Exception e) {
-            throw e.getCause();
-        }
-    }
-}
\ No newline at end of file
+}