/**
* Test mainly for the method
- * {@link TypeProviderImpl#provideTypeForIdentityref()
+ * {@link TypeProviderImpl#provideTypeForIdentityref(IdentityrefTypeDefinition)
* provideTypeForIdentityref}
+ * @throws IOException IOException
*/
@Test
public void testIdentityrefYangBuiltInType() throws IOException {
/**
* Test mainly for the method
- * {@link TypeProviderImpl#provideTypeForIdentityref()
+ * {@link TypeProviderImpl#provideTypeForIdentityref(IdentityrefTypeDefinition)
* provideTypeForIdentityref}
- * @throws ReactorException
- * @throws SourceException
+ * @throws ReactorException Reactor exception
+ * @throws SourceException Source exception
+ * @throws IOException IOException
*/
@Test
public void testIdentityrefYangBuiltInType() throws IOException, SourceException, ReactorException {
/**
* Test class for testing BaseYangTypes class.
*
- * @author Lukas Sedlak <lsedlak@cisco.com>
+ * @author Lukas Sedlak <lsedlak@cisco.com>
*/
public class BaseYangTypesTest {
/**
* Mock LeafrefDypeDefinition implementation with RevisionAwareXPath null reference
*
- * @author Lukas Sedlak <lsedlak@cisco.com>
+ * @author Lukas Sedlak <lsedlak@cisco.com>
*/
public class LeafrefTypeWithNullXpath implements LeafrefTypeDefinition {
@Override public RevisionAwareXPath getPathStatement() {
/**
* Mock Integer Type Definition designated to increase branch coverage in test cases.
*
- * @author Lukas Sedlak <lsedlak@cisco.com>
+ * @author Lukas Sedlak <lsedlak@cisco.com>
*/
final class TestIntegerTypeDefinition implements IntegerTypeDefinition {
/**
* Mock Leaf Schema Node designated to increase branch coverage in test cases.
*
- * @author Lukas Sedlak <lsedlak@cisco.com>
+ * @author Lukas Sedlak <lsedlak@cisco.com>
*/
public class TestLeafSchemaNode implements LeafSchemaNode {
@Override public TypeDefinition<?> getType() {
* Test Model Provider designated to load test resources and provide Schema Context
* for testing of TypeProviderImpl
*
- * @author Lukas Sedlak <lsedlak@cisco.com>
+ * @author Lukas Sedlak <lsedlak@cisco.com>
*/
final class TypeProviderModel {
*
* @see org.opendaylight.yangtools.sal.binding.yang.types.TypeProviderImpl
*
- * @author Lukas Sedlak <lsedlak@cisco.com>
+ * @author Lukas Sedlak <lsedlak@cisco.com>
*/
@RunWith(JUnit4.class)
public class TypeProviderTest {
/**
* Test class for testing BaseYangTypes class.
*
- * @author Lukas Sedlak <lsedlak@cisco.com>
+ * @author Lukas Sedlak <lsedlak@cisco.com>
*/
public class BaseYangTypesTest {
/**
* Mock LeafrefDypeDefinition implementation with RevisionAwareXPath null reference
*
- * @author Lukas Sedlak <lsedlak@cisco.com>
+ * @author Lukas Sedlak <lsedlak@cisco.com>
*/
public class LeafrefTypeWithNullXpath implements LeafrefTypeDefinition {
@Override public RevisionAwareXPath getPathStatement() {
/**
* Mock Integer Type Definition designated to increase branch coverage in test cases.
*
- * @author Lukas Sedlak <lsedlak@cisco.com>
+ * @author Lukas Sedlak <lsedlak@cisco.com>
*/
final class TestIntegerTypeDefinition implements IntegerTypeDefinition {
/**
* Mock Leaf Schema Node designated to increase branch coverage in test cases.
*
- * @author Lukas Sedlak <lsedlak@cisco.com>
+ * @author Lukas Sedlak <lsedlak@cisco.com>
*/
public class TestLeafSchemaNode implements LeafSchemaNode {
@Override public TypeDefinition<?> getType() {
* Test Model Provider designated to load test resources and provide Schema Context
* for testing of TypeProviderImpl
*
- * @author Lukas Sedlak <lsedlak@cisco.com>
+ * @author Lukas Sedlak <lsedlak@cisco.com>
*/
final class TypeProviderModel {
*
* @see org.opendaylight.yangtools.sal.binding.yang.types.TypeProviderImpl
*
- * @author Lukas Sedlak <lsedlak@cisco.com>
+ * @author Lukas Sedlak <lsedlak@cisco.com>
*/
@RunWith(JUnit4.class)
public class TypeProviderTest {
/**
* Tests methods:
- * <ul>
- * <li>moduleNamespaceToPackageName</li> - with revision
- * <li>packageNameForGeneratedType</li>
- * <ul>
- * <li>validateJavaPackage</li>
- * </ul>
- * <li>packageNameForTypeDefinition</li> <li>moduleNamespaceToPackageName</li>
- * - without revision </ul>
+ * <ul>
+ * <li>moduleNamespaceToPackageName</li> - with revision
+ * <li>packageNameForGeneratedType</li>
+ * <ul>
+ * <li>validateJavaPackage</li>
+ * </ul>
+ * <li>packageNameForTypeDefinition</li> <li>moduleNamespaceToPackageName</li>
+ * - without revision </ul>
+ *
+ * @throws IOException IOException
*/
@Test
public void testBindingGeneratorUtilMethods() throws IOException {
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#packageNameForTypeDefinition()
- * packageNameForTypeDefinition()}</li>
- * </ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#packageNameForTypeDefinition(String, TypeDefinition)
+ * packageNameForTypeDefinition(String, TypeDefinition)}</li>
+ * </ul>
*/
@Test
@Deprecated
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#packageNameForTypeDefinition()
- * packageNameForTypeDefinition()}</li>
- * </ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#packageNameForTypeDefinition(String, TypeDefinition)
+ * packageNameForTypeDefinition(String, TypeDefinition)}</li>
+ * </ul>
*/
@Test
@Deprecated
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#packageNameForGeneratedType()
- * packageNameForGeneratedType()}</li>
- * </ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#packageNameForGeneratedType(String, SchemaPath)
+ * packageNameForGeneratedType(String, SchemaPath)}</li>
+ * </ul>
*/
@Test
public void testPackageNameForGeneratedTypeNullBasePackageName() {
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#packageNameForGeneratedType()
- * packageNameForGeneratedType()}</li>
- * </ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#packageNameForGeneratedType(String, SchemaPath)
+ * packageNameForGeneratedType(String, SchemaPath)}</li>
+ * </ul>
*/
@Test
public void testPackageNameForGeneratedTypeNullSchemaPath() {
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#parseToClassName()
- * parseToClassName()}</li>
- * </ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#parseToClassName(String)
+ * parseToClassName(String)}</li>
+ * </ul>
*/
@Test
public void testParseToClassNameNullValue() {
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#parseToClassName()
- * parseToClassName()}</li>
- * </ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#parseToClassName(String)
+ * parseToClassName(String)}</li>
+ * </ul>
*/
@Test
public void testParseToClassNameEmptyValue() {
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#validateParameterName()
- * validateParameterName()}</li>
- * <ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#resolveJavaReservedWordEquivalency(String)
+ * resolveJavaReservedWordEquivalency(String)}</li>
+ * <ul>
*/
@Test
public void testValidateParameterName() {
/**
* Tests the methods:
- * <ul>
- * <li>parseToClassName</li>
- * <ul>
- * <li>parseToCamelCase</li>
- * <ul>
- * <li>replaceWithCamelCase</li>
- * </ul>
- * </ul> <li>parseToValidParamName</li>
- * <ul>
- * <li>parseToCamelCase</li>
- * <ul>
- * <li>replaceWithCamelCase</li>
- * </ul>
- * </ul>
- * <ul>
+ * <ul>
+ * <li>parseToClassName</li>
+ * <ul>
+ * <li>parseToCamelCase</li>
+ * <ul>
+ * <li>replaceWithCamelCase</li>
+ * </ul>
+ * </ul> <li>parseToValidParamName</li>
+ * <ul>
+ * <li>parseToCamelCase</li>
+ * <ul>
+ * <li>replaceWithCamelCase</li>
+ * </ul>
+ * </ul>
+ * <ul>
*/
@Test
public void testParsingMethods() {
/**
* Tests methods:
- * <ul>
- * <li>moduleNamespaceToPackageName</li> - with revision
- * <li>packageNameForGeneratedType</li>
- * <ul>
- * <li>validateJavaPackage</li>
- * </ul>
- * <li>packageNameForTypeDefinition</li> <li>moduleNamespaceToPackageName</li>
- * - without revision </ul>
- * @throws ReactorException
- * @throws SourceException
+ * <ul>
+ * <li>moduleNamespaceToPackageName</li> - with revision
+ * <li>packageNameForGeneratedType</li>
+ * <ul>
+ * <li>validateJavaPackage</li>
+ * </ul>
+ * <li>packageNameForTypeDefinition</li> <li>moduleNamespaceToPackageName</li>
+ * - without revision </ul>
+ * @throws ReactorException Reactor exception
+ * @throws SourceException Source exception
*/
@Test
public void testBindingGeneratorUtilMethods() throws IOException, SourceException, ReactorException {
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#packageNameForTypeDefinition()
- * packageNameForTypeDefinition()}</li>
- * </ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#packageNameForTypeDefinition(String, TypeDefinition)
+ * packageNameForTypeDefinition(String, TypeDefinition)}</li>
+ * </ul>
*/
@Test
@Deprecated
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#packageNameForTypeDefinition()
- * packageNameForTypeDefinition()}</li>
- * </ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#packageNameForTypeDefinition(String, TypeDefinition)
+ * packageNameForTypeDefinition(String, TypeDefinition)}</li>
+ * </ul>
*/
@Test
@Deprecated
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#packageNameForGeneratedType()
- * packageNameForGeneratedType()}</li>
- * </ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#packageNameForGeneratedType(String, SchemaPath)
+ * packageNameForGeneratedType(String, SchemaPath)}</li>
+ * </ul>
*/
@Test
public void testPackageNameForGeneratedTypeNullBasePackageName() {
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#packageNameForGeneratedType()
- * packageNameForGeneratedType()}</li>
- * </ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#packageNameForGeneratedType(String, SchemaPath)
+ * packageNameForGeneratedType(String, SchemaPath)}</li>
+ * </ul>
*/
@Test
public void testPackageNameForGeneratedTypeNullSchemaPath() {
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#parseToClassName()
- * parseToClassName()}</li>
- * </ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#parseToClassName(String)
+ * parseToClassName(String)}</li>
+ * </ul>
*/
@Test
public void testParseToClassNameNullValue() {
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#parseToClassName()
- * parseToClassName()}</li>
- * </ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#parseToClassName(String)
+ * parseToClassName(String)}</li>
+ * </ul>
*/
@Test
public void testParseToClassNameEmptyValue() {
/**
* Test for the method
- * <ul>
- * <li>{@link BindingGeneratorUtil#validateParameterName()
- * validateParameterName()}</li>
- * <ul>
+ * <ul>
+ * <li>{@link BindingGeneratorUtil#resolveJavaReservedWordEquivalency(String)
+ * resolveJavaReservedWordEquivalency(String)}</li>
+ * <ul>
*/
@Test
public void testValidateParameterName() {
/**
* Tests the methods:
- * <ul>
- * <li>parseToClassName</li>
- * <ul>
- * <li>parseToCamelCase</li>
- * <ul>
- * <li>replaceWithCamelCase</li>
- * </ul>
- * </ul> <li>parseToValidParamName</li>
- * <ul>
- * <li>parseToCamelCase</li>
- * <ul>
- * <li>replaceWithCamelCase</li>
- * </ul>
- * </ul>
- * <ul>
+ * <ul>
+ * <li>parseToClassName</li>
+ * <ul>
+ * <li>parseToCamelCase</li>
+ * <ul>
+ * <li>replaceWithCamelCase</li>
+ * </ul>
+ * </ul> <li>parseToValidParamName</li>
+ * <ul>
+ * <li>parseToCamelCase</li>
+ * <ul>
+ * <li>replaceWithCamelCase</li>
+ * </ul>
+ * </ul>
+ * <ul>
*/
@Test
public void testParsingMethods() {