import static org.mockito.Mockito.mock;
import com.google.common.collect.ImmutableList;
-import java.lang.reflect.Constructor;
import org.junit.Test;
import org.opendaylight.mdsal.binding.model.api.ConcreteType;
import org.opendaylight.mdsal.binding.model.api.GeneratedProperty;
doReturn(ImmutableList.of(property)).when(rootType).getProperties();
TypeUtils.getBaseYangType(innerType);
}
-
- @Test(expected = UnsupportedOperationException.class)
- public void constructTest() throws Throwable {
- final Constructor<TypeUtils> constructor = TypeUtils.class.getDeclaredConstructor();
- constructor.setAccessible(true);
- try {
- constructor.newInstance();
- } catch (Exception e) {
- throw e.getCause();
- }
- }
}
\ No newline at end of file