Refactor "value" property access
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / test / java / org / opendaylight / mdsal / binding / java / api / generator / TypeUtilsTest.java
index 52a730ebe811b6ea6be75bd76a84afd0596e9db3..2121b5313ee31f2a9b5469cc65767435185d3354 100644 (file)
@@ -8,14 +8,10 @@
 package org.opendaylight.mdsal.binding.java.api.generator;
 
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertTrue;
-import static org.junit.Assert.fail;
 import static org.mockito.Mockito.doReturn;
 import static org.mockito.Mockito.mock;
 
 import com.google.common.collect.ImmutableList;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
 import org.junit.Test;
 import org.opendaylight.mdsal.binding.model.api.ConcreteType;
 import org.opendaylight.mdsal.binding.model.api.GeneratedProperty;
@@ -50,16 +46,4 @@ public class TypeUtilsTest {
         doReturn(ImmutableList.of(property)).when(rootType).getProperties();
         TypeUtils.getBaseYangType(innerType);
     }
-
-    @Test
-    public void constructTest() throws ReflectiveOperationException {
-        final Constructor<TypeUtils> constructor = TypeUtils.class.getDeclaredConstructor();
-        constructor.setAccessible(true);
-        try {
-            constructor.newInstance();
-            fail();
-        } catch (InvocationTargetException e) {
-            assertTrue(e.getCause() instanceof UnsupportedOperationException);
-        }
-    }
 }
\ No newline at end of file