@Test public void builderClassGenerationTest() { String builderClassJavaDoc = getJavaDoc(BUILDER_CLASS, TEST_NAME, false, getStubPluginConfig()); assertThat(true, is(builderClassJavaDoc.contains("Represents the builder implementation of") && builderClassJavaDoc.contains(END_STRING))); }
public static String getJavaDoc(JavaDocType type, String name, boolean isList, YangPluginConfig pluginConfig) { name = YangIoUtils.getSmallCase(getCamelCase(name, pluginConfig.getConflictResolver())); switch (type) { case IMPL_CLASS: { return generateForClass(name); } case BUILDER_CLASS: { return generateForBuilderClass(name); } case INTERFACE: { return generateForInterface(name); } case BUILDER_INTERFACE: { return generateForBuilderInterface(name); } case PACKAGE_INFO: { return generateForPackage(name, isList); } case GETTER_METHOD: { return generateForGetters(name, isList); } case TYPE_DEF_SETTER_METHOD: { return generateForTypeDefSetter(name); } case SETTER_METHOD: { return generateForSetters(name, isList); } case MANAGER_SETTER_METHOD: { return generateForManagerSetters(name, isList); } case OF_METHOD: { return generateForOf(name); } case DEFAULT_CONSTRUCTOR: { return generateForDefaultConstructors(name); } case BUILD_METHOD: { return generateForBuild(name); } case TYPE_CONSTRUCTOR: { return generateForTypeConstructor(name); } case FROM_METHOD: { return generateForFromString(name); } case ENUM_CLASS: { return generateForEnum(name); } case ENUM_ATTRIBUTE: { return generateForEnumAttr(name); } case RPC_INTERFACE: { return generateForRpcService(name); } case RPC_MANAGER: { return generateForClass(name); } case EVENT: { return generateForEvent(name); } case EVENT_LISTENER: { return generateForEventListener(name); } case EVENT_SUBJECT_CLASS: { return generateForClass(name); } default: { return generateForConstructors(name); } } }
JavaDocGen { public static String getJavaDoc(JavaDocType type, String name, boolean isList, YangPluginConfig pluginConfig) { name = YangIoUtils.getSmallCase(getCamelCase(name, pluginConfig.getConflictResolver())); switch (type) { case IMPL_CLASS: { return generateForClass(name); } case BUILDER_CLASS: { return generateForBuilderClass(name); } case INTERFACE: { return generateForInterface(name); } case BUILDER_INTERFACE: { return generateForBuilderInterface(name); } case PACKAGE_INFO: { return generateForPackage(name, isList); } case GETTER_METHOD: { return generateForGetters(name, isList); } case TYPE_DEF_SETTER_METHOD: { return generateForTypeDefSetter(name); } case SETTER_METHOD: { return generateForSetters(name, isList); } case MANAGER_SETTER_METHOD: { return generateForManagerSetters(name, isList); } case OF_METHOD: { return generateForOf(name); } case DEFAULT_CONSTRUCTOR: { return generateForDefaultConstructors(name); } case BUILD_METHOD: { return generateForBuild(name); } case TYPE_CONSTRUCTOR: { return generateForTypeConstructor(name); } case FROM_METHOD: { return generateForFromString(name); } case ENUM_CLASS: { return generateForEnum(name); } case ENUM_ATTRIBUTE: { return generateForEnumAttr(name); } case RPC_INTERFACE: { return generateForRpcService(name); } case RPC_MANAGER: { return generateForClass(name); } case EVENT: { return generateForEvent(name); } case EVENT_LISTENER: { return generateForEventListener(name); } case EVENT_SUBJECT_CLASS: { return generateForClass(name); } default: { return generateForConstructors(name); } } } }
JavaDocGen { public static String getJavaDoc(JavaDocType type, String name, boolean isList, YangPluginConfig pluginConfig) { name = YangIoUtils.getSmallCase(getCamelCase(name, pluginConfig.getConflictResolver())); switch (type) { case IMPL_CLASS: { return generateForClass(name); } case BUILDER_CLASS: { return generateForBuilderClass(name); } case INTERFACE: { return generateForInterface(name); } case BUILDER_INTERFACE: { return generateForBuilderInterface(name); } case PACKAGE_INFO: { return generateForPackage(name, isList); } case GETTER_METHOD: { return generateForGetters(name, isList); } case TYPE_DEF_SETTER_METHOD: { return generateForTypeDefSetter(name); } case SETTER_METHOD: { return generateForSetters(name, isList); } case MANAGER_SETTER_METHOD: { return generateForManagerSetters(name, isList); } case OF_METHOD: { return generateForOf(name); } case DEFAULT_CONSTRUCTOR: { return generateForDefaultConstructors(name); } case BUILD_METHOD: { return generateForBuild(name); } case TYPE_CONSTRUCTOR: { return generateForTypeConstructor(name); } case FROM_METHOD: { return generateForFromString(name); } case ENUM_CLASS: { return generateForEnum(name); } case ENUM_ATTRIBUTE: { return generateForEnumAttr(name); } case RPC_INTERFACE: { return generateForRpcService(name); } case RPC_MANAGER: { return generateForClass(name); } case EVENT: { return generateForEvent(name); } case EVENT_LISTENER: { return generateForEventListener(name); } case EVENT_SUBJECT_CLASS: { return generateForClass(name); } default: { return generateForConstructors(name); } } } private  JavaDocGen(); }
JavaDocGen { public static String getJavaDoc(JavaDocType type, String name, boolean isList, YangPluginConfig pluginConfig) { name = YangIoUtils.getSmallCase(getCamelCase(name, pluginConfig.getConflictResolver())); switch (type) { case IMPL_CLASS: { return generateForClass(name); } case BUILDER_CLASS: { return generateForBuilderClass(name); } case INTERFACE: { return generateForInterface(name); } case BUILDER_INTERFACE: { return generateForBuilderInterface(name); } case PACKAGE_INFO: { return generateForPackage(name, isList); } case GETTER_METHOD: { return generateForGetters(name, isList); } case TYPE_DEF_SETTER_METHOD: { return generateForTypeDefSetter(name); } case SETTER_METHOD: { return generateForSetters(name, isList); } case MANAGER_SETTER_METHOD: { return generateForManagerSetters(name, isList); } case OF_METHOD: { return generateForOf(name); } case DEFAULT_CONSTRUCTOR: { return generateForDefaultConstructors(name); } case BUILD_METHOD: { return generateForBuild(name); } case TYPE_CONSTRUCTOR: { return generateForTypeConstructor(name); } case FROM_METHOD: { return generateForFromString(name); } case ENUM_CLASS: { return generateForEnum(name); } case ENUM_ATTRIBUTE: { return generateForEnumAttr(name); } case RPC_INTERFACE: { return generateForRpcService(name); } case RPC_MANAGER: { return generateForClass(name); } case EVENT: { return generateForEvent(name); } case EVENT_LISTENER: { return generateForEventListener(name); } case EVENT_SUBJECT_CLASS: { return generateForClass(name); } default: { return generateForConstructors(name); } } } private  JavaDocGen(); static String getJavaDoc(JavaDocType type, String name, boolean isList, YangPluginConfig pluginConfig); static String generateJavaDocForRpc(String rpcName, String inputName, String outputName,
            YangPluginConfig pluginConfig); }
JavaDocGen { public static String getJavaDoc(JavaDocType type, String name, boolean isList, YangPluginConfig pluginConfig) { name = YangIoUtils.getSmallCase(getCamelCase(name, pluginConfig.getConflictResolver())); switch (type) { case IMPL_CLASS: { return generateForClass(name); } case BUILDER_CLASS: { return generateForBuilderClass(name); } case INTERFACE: { return generateForInterface(name); } case BUILDER_INTERFACE: { return generateForBuilderInterface(name); } case PACKAGE_INFO: { return generateForPackage(name, isList); } case GETTER_METHOD: { return generateForGetters(name, isList); } case TYPE_DEF_SETTER_METHOD: { return generateForTypeDefSetter(name); } case SETTER_METHOD: { return generateForSetters(name, isList); } case MANAGER_SETTER_METHOD: { return generateForManagerSetters(name, isList); } case OF_METHOD: { return generateForOf(name); } case DEFAULT_CONSTRUCTOR: { return generateForDefaultConstructors(name); } case BUILD_METHOD: { return generateForBuild(name); } case TYPE_CONSTRUCTOR: { return generateForTypeConstructor(name); } case FROM_METHOD: { return generateForFromString(name); } case ENUM_CLASS: { return generateForEnum(name); } case ENUM_ATTRIBUTE: { return generateForEnumAttr(name); } case RPC_INTERFACE: { return generateForRpcService(name); } case RPC_MANAGER: { return generateForClass(name); } case EVENT: { return generateForEvent(name); } case EVENT_LISTENER: { return generateForEventListener(name); } case EVENT_SUBJECT_CLASS: { return generateForClass(name); } default: { return generateForConstructors(name); } } } private  JavaDocGen(); static String getJavaDoc(JavaDocType type, String name, boolean isList, YangPluginConfig pluginConfig); static String generateJavaDocForRpc(String rpcName, String inputName, String outputName,
            YangPluginConfig pluginConfig);  }