@Test public void givenSystemVariableWhenBuildIdThenReturnCorrectId() { SystemVariable systemGlobalVariable = new SystemVariable(null, "MOUNT_PATH", "/opt", null, SystemVariable.SCOPE_GLOBAL, SystemVariable.SOURCE_SYSTEM, null, SystemVariable.ACTIVE); String expectedGlobalVariable = "system__global__MOUNT_PATH"; assertThat(DomainIdBuilder.buildDomainId(systemGlobalVariable)).isEqualTo(expectedGlobalVariable); SystemVariable pluginGlobalVariable = new SystemVariable(null, "CMDB_URL", "http: String expectedPluginGlobalVariable = "wecmdb__v1.0__global__CMDB_URL"; assertThat(DomainIdBuilder.buildDomainId(pluginGlobalVariable)).isEqualTo(expectedPluginGlobalVariable); SystemVariable pluginPackageVariable = new SystemVariable(null, "accessKey", "blablaAbcXyz", null, "wecmdb", "wecmdb__v1.0", "wecmdb", SystemVariable.ACTIVE); String expectedPluginPackageVariable = "wecmdb__v1.0__wecmdb__accessKey"; assertThat(DomainIdBuilder.buildDomainId(pluginPackageVariable)).isEqualTo(expectedPluginPackageVariable); }
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);  }