@Test public void givenPluginConfigInterfaceParameterWhenBuildIdThenReturnCorrectId() { PluginConfig pluginConfig = new PluginConfig(null, pluginPackage, "task", "service-management", "task", PluginConfig.Status.DISABLED, null); pluginConfig.initId(); PluginConfigInterface configInterface = new PluginConfigInterface(null, pluginConfig, "create", null, null, "/service-management/tasks", "POST", null, null); configInterface.initId(); PluginConfigInterfaceParameter inputParameter = new PluginConfigInterfaceParameter(null, configInterface, PluginConfigInterfaceParameter.TYPE_INPUT, "callbackUrl", "string", "system_variable", null, null, "Y"); String expectedInputId = "service-management__v1.0__task__create__task__INPUT__callbackUrl"; assertThat(DomainIdBuilder.buildDomainId(inputParameter)).isEqualTo(expectedInputId); PluginConfigInterfaceParameter outputParameter = new PluginConfigInterfaceParameter(null, configInterface, PluginConfigInterfaceParameter.TYPE_OUTPUT, "status", "string", null, null, null, null); String expectedOutputId = "service-management__v1.0__task__create__task__OUTPUT__status"; assertThat(DomainIdBuilder.buildDomainId(outputParameter)).isEqualTo(expectedOutputId); }
public static String buildDomainId(String... fields) { return buildDomainId(Lists.newArrayList(fields)); }
DomainIdBuilder { public static String buildDomainId(String... fields) { return buildDomainId(Lists.newArrayList(fields)); } }
DomainIdBuilder { public static String buildDomainId(String... fields) { return buildDomainId(Lists.newArrayList(fields)); }  }
DomainIdBuilder { public static String buildDomainId(String... fields) { return buildDomainId(Lists.newArrayList(fields)); }  static String buildDomainId(String... fields); static String buildDomainId(List<String> fields); static String buildDomainId(PluginPackage pluginPackage); static String buildDomainId(LazyPluginPackage pluginPackage); static String buildDomainId(PluginPackageDependency pluginPackageDependency); static String buildDomainId(PluginPackageMenu pluginPackageMenu); static String buildDomainId(LazyPluginPackageMenu pluginPackageMenu); static String buildDomainId(PluginPackageDataModel pluginPackageDataModel); static String buildDomainId(LazyPluginPackageDataModel pluginPackageDataModel); static String buildDomainId(PluginPackageEntity pluginPackageEntity); static String buildDomainId(LazyPluginPackageEntity pluginPackageEntity); static String buildDomainId(PluginPackageAttribute pluginPackageAttribute); static String buildDomainId(LazyPluginPackageAttribute pluginPackageAttribute); static String buildDomainId(SystemVariable systemVariable); static String buildDomainId(PluginPackageAuthority pluginPackageAuthority); static String buildDomainId(PluginPackageRuntimeResourcesDocker runtimeResourcesDocker); static String buildDomainId(PluginPackageRuntimeResourcesMysql runtimeResourcesMysql); static String buildDomainId(PluginPackageRuntimeResourcesS3 runtimeResourcesS3); static String buildDomainId(PluginConfig pluginConfig); static String buildDomainId(PluginConfigInterface pluginConfigInterface); static String buildDomainId(PluginConfigInterfaceParameter interfaceParameter); static String buildDomainId(PluginInstance pluginInstance); static String buildDomainId(PluginMysqlInstance mysqlInstance); static String buildDomainId(MenuItem menuItem); static String buildDomainId(ResourceServer resourceServer); static String buildDomainId(ResourceItem resourceItem); static String buildDomainId(BatchExecutionJob batchExecutionJob); }
DomainIdBuilder { public static String buildDomainId(String... fields) { return buildDomainId(Lists.newArrayList(fields)); }  static String buildDomainId(String... fields); static String buildDomainId(List<String> fields); static String buildDomainId(PluginPackage pluginPackage); static String buildDomainId(LazyPluginPackage pluginPackage); static String buildDomainId(PluginPackageDependency pluginPackageDependency); static String buildDomainId(PluginPackageMenu pluginPackageMenu); static String buildDomainId(LazyPluginPackageMenu pluginPackageMenu); static String buildDomainId(PluginPackageDataModel pluginPackageDataModel); static String buildDomainId(LazyPluginPackageDataModel pluginPackageDataModel); static String buildDomainId(PluginPackageEntity pluginPackageEntity); static String buildDomainId(LazyPluginPackageEntity pluginPackageEntity); static String buildDomainId(PluginPackageAttribute pluginPackageAttribute); static String buildDomainId(LazyPluginPackageAttribute pluginPackageAttribute); static String buildDomainId(SystemVariable systemVariable); static String buildDomainId(PluginPackageAuthority pluginPackageAuthority); static String buildDomainId(PluginPackageRuntimeResourcesDocker runtimeResourcesDocker); static String buildDomainId(PluginPackageRuntimeResourcesMysql runtimeResourcesMysql); static String buildDomainId(PluginPackageRuntimeResourcesS3 runtimeResourcesS3); static String buildDomainId(PluginConfig pluginConfig); static String buildDomainId(PluginConfigInterface pluginConfigInterface); static String buildDomainId(PluginConfigInterfaceParameter interfaceParameter); static String buildDomainId(PluginInstance pluginInstance); static String buildDomainId(PluginMysqlInstance mysqlInstance); static String buildDomainId(MenuItem menuItem); static String buildDomainId(ResourceServer resourceServer); static String buildDomainId(ResourceItem resourceItem); static String buildDomainId(BatchExecutionJob batchExecutionJob);  }