+++ /dev/null
-/**
- * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.mdsal.binding.generator.impl;
-
-interface SchemaLock {
- void waitForSchema(Class<?> cls);
-}
+++ /dev/null
-/*
- * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.mdsal.binding.generator.util;
-
-import java.util.List;
-import org.opendaylight.yangtools.yang.model.api.TypeDefinition;
-import org.opendaylight.yangtools.yang.model.api.type.UnionTypeDefinition;
-
-public final class XtendHelper {
- private XtendHelper() {
- throw new UnsupportedOperationException("Utility class should not be instantiated");
- }
-
- @SuppressWarnings({"rawtypes","unchecked"})
- public static Iterable<TypeDefinition> getTypes(final UnionTypeDefinition definition) {
- return (List) definition.getTypes();
- }
-}
+++ /dev/null
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.mdsal.binding.generator.util;
-
-import static org.mockito.Mockito.doReturn;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.verify;
-
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
-import org.junit.Test;
-import org.opendaylight.yangtools.yang.model.api.type.UnionTypeDefinition;
-
-public class XtendHelperTest {
-
- @Test
- public void getTypesTest() throws Exception {
- final UnionTypeDefinition unionTypeDefinition = mock(UnionTypeDefinition.class);
- doReturn(null).when(unionTypeDefinition).getTypes();
- XtendHelper.getTypes(unionTypeDefinition);
- verify(unionTypeDefinition).getTypes();
- }
-
- @Test(expected = UnsupportedOperationException.class)
- public void privateConstructTest() throws Throwable {
- final Constructor<XtendHelper> constructor = XtendHelper.class.getDeclaredConstructor();
- constructor.setAccessible(true);
- try {
- constructor.newInstance();
- } catch (InvocationTargetException e) {
- throw e.getCause();
- }
- }
-}
\ No newline at end of file