target
stringlengths
20
113k
src_fm
stringlengths
11
86.3k
src_fm_fc
stringlengths
21
86.4k
src_fm_fc_co
stringlengths
30
86.4k
src_fm_fc_ms
stringlengths
42
86.8k
src_fm_fc_ms_ff
stringlengths
43
86.8k
@Test void testGetMaxManifestFileSize() { Mockito.when(environment.getLong(ApplicationConfiguration.CFG_MAX_MANIFEST_SIZE, ApplicationConfiguration.DEFAULT_MAX_MANIFEST_SIZE)) .thenReturn(ApplicationConfiguration.DEFAULT_MAX_MANIFEST_SIZE); Assertions.assertEquals(ApplicationConfiguration.DEFAULT_MAX_MANIFEST_SIZE, con...
public Long getMaxManifestSize() { if (maxManifestSize == null) { maxManifestSize = getMaxManifestSizeFromEnvironment(); } return maxManifestSize; }
ApplicationConfiguration { public Long getMaxManifestSize() { if (maxManifestSize == null) { maxManifestSize = getMaxManifestSizeFromEnvironment(); } return maxManifestSize; } }
ApplicationConfiguration { public Long getMaxManifestSize() { if (maxManifestSize == null) { maxManifestSize = getMaxManifestSizeFromEnvironment(); } return maxManifestSize; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Long getMaxManifestSize() { if (maxManifestSize == null) { maxManifestSize = getMaxManifestSizeFromEnvironment(); } return maxManifestSize; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariable...
ApplicationConfiguration { public Long getMaxManifestSize() { if (maxManifestSize == null) { maxManifestSize = getMaxManifestSizeFromEnvironment(); } return maxManifestSize; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariable...
@Test void testGetMaxResourceFileSize() { Mockito.when(environment.getLong(ApplicationConfiguration.CFG_MAX_RESOURCE_FILE_SIZE, ApplicationConfiguration.DEFAULT_MAX_RESOURCE_FILE_SIZE)) .thenReturn(ApplicationConfiguration.DEFAULT_MAX_RESOURCE_FILE_SIZE); Assertions.assertEquals(ApplicationConfiguration.DEFAULT_MAX_RES...
public Long getMaxResourceFileSize() { if (maxResourceFileSize == null) { maxResourceFileSize = getMaxResourceFileSizeFromEnvironment(); } return maxResourceFileSize; }
ApplicationConfiguration { public Long getMaxResourceFileSize() { if (maxResourceFileSize == null) { maxResourceFileSize = getMaxResourceFileSizeFromEnvironment(); } return maxResourceFileSize; } }
ApplicationConfiguration { public Long getMaxResourceFileSize() { if (maxResourceFileSize == null) { maxResourceFileSize = getMaxResourceFileSizeFromEnvironment(); } return maxResourceFileSize; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Long getMaxResourceFileSize() { if (maxResourceFileSize == null) { maxResourceFileSize = getMaxResourceFileSizeFromEnvironment(); } return maxResourceFileSize; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> get...
ApplicationConfiguration { public Long getMaxResourceFileSize() { if (maxResourceFileSize == null) { maxResourceFileSize = getMaxResourceFileSizeFromEnvironment(); } return maxResourceFileSize; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> get...
@Test void testQueryByVersion() { addConfigurationEntries(List.of(CONFIGURATION_ENTRY_1, CONFIGURATION_ENTRY_2)); String version = ">3.0.0"; assertEquals(1, configurationEntryService.createQuery() .version(version) .list() .size()); }
public ConfigurationEntryQuery createQuery() { return new ConfigurationEntryQueryImpl(createEntityManager(), entryMapper); }
ConfigurationEntryService extends PersistenceService<ConfigurationEntry, ConfigurationEntryDto, Long> { public ConfigurationEntryQuery createQuery() { return new ConfigurationEntryQueryImpl(createEntityManager(), entryMapper); } }
ConfigurationEntryService extends PersistenceService<ConfigurationEntry, ConfigurationEntryDto, Long> { public ConfigurationEntryQuery createQuery() { return new ConfigurationEntryQueryImpl(createEntityManager(), entryMapper); } ConfigurationEntryService(EntityManagerFactory entityManagerFactory, ConfigurationEntryMapp...
ConfigurationEntryService extends PersistenceService<ConfigurationEntry, ConfigurationEntryDto, Long> { public ConfigurationEntryQuery createQuery() { return new ConfigurationEntryQueryImpl(createEntityManager(), entryMapper); } ConfigurationEntryService(EntityManagerFactory entityManagerFactory, ConfigurationEntryMapp...
ConfigurationEntryService extends PersistenceService<ConfigurationEntry, ConfigurationEntryDto, Long> { public ConfigurationEntryQuery createQuery() { return new ConfigurationEntryQueryImpl(createEntityManager(), entryMapper); } ConfigurationEntryService(EntityManagerFactory entityManagerFactory, ConfigurationEntryMapp...
@Test void testConvertToDatabaseColumnWhenInputIsNull() { Assertions.assertEquals("", textAttributeConverter.convertToDatabaseColumn(null)); }
@Override public String convertToDatabaseColumn(String text) { if (text != null) { return StringUtils.abbreviate(text, MAX_STRING_LENGTH); } return ""; }
TextAttributeConverter implements AttributeConverter<String, String> { @Override public String convertToDatabaseColumn(String text) { if (text != null) { return StringUtils.abbreviate(text, MAX_STRING_LENGTH); } return ""; } }
TextAttributeConverter implements AttributeConverter<String, String> { @Override public String convertToDatabaseColumn(String text) { if (text != null) { return StringUtils.abbreviate(text, MAX_STRING_LENGTH); } return ""; } }
TextAttributeConverter implements AttributeConverter<String, String> { @Override public String convertToDatabaseColumn(String text) { if (text != null) { return StringUtils.abbreviate(text, MAX_STRING_LENGTH); } return ""; } @Override String convertToDatabaseColumn(String text); @Override String convertToEntityAttribu...
TextAttributeConverter implements AttributeConverter<String, String> { @Override public String convertToDatabaseColumn(String text) { if (text != null) { return StringUtils.abbreviate(text, MAX_STRING_LENGTH); } return ""; } @Override String convertToDatabaseColumn(String text); @Override String convertToEntityAttribu...
@Test void testGetCronExpressionForOldData() { Mockito.when(environment.getString(ApplicationConfiguration.CFG_CRON_EXPRESSION_FOR_OLD_DATA)) .thenReturn(ApplicationConfiguration.DEFAULT_CRON_EXPRESSION_FOR_OLD_DATA); Assertions.assertEquals(ApplicationConfiguration.DEFAULT_CRON_EXPRESSION_FOR_OLD_DATA, configuration.g...
public String getCronExpressionForOldData() { if (cronExpressionForOldData == null) { cronExpressionForOldData = getCronExpressionForOldDataFromEnvironment(); } return cronExpressionForOldData; }
ApplicationConfiguration { public String getCronExpressionForOldData() { if (cronExpressionForOldData == null) { cronExpressionForOldData = getCronExpressionForOldDataFromEnvironment(); } return cronExpressionForOldData; } }
ApplicationConfiguration { public String getCronExpressionForOldData() { if (cronExpressionForOldData == null) { cronExpressionForOldData = getCronExpressionForOldDataFromEnvironment(); } return cronExpressionForOldData; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public String getCronExpressionForOldData() { if (cronExpressionForOldData == null) { cronExpressionForOldData = getCronExpressionForOldDataFromEnvironment(); } return cronExpressionForOldData; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load...
ApplicationConfiguration { public String getCronExpressionForOldData() { if (cronExpressionForOldData == null) { cronExpressionForOldData = getCronExpressionForOldDataFromEnvironment(); } return cronExpressionForOldData; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load...
@Test void testGetMaxTtlForOldDataFromEnvironment() { Mockito.when(environment.getLong(ApplicationConfiguration.CFG_MAX_TTL_FOR_OLD_DATA, ApplicationConfiguration.DEFAULT_MAX_TTL_FOR_OLD_DATA)) .thenReturn(ApplicationConfiguration.DEFAULT_MAX_TTL_FOR_OLD_DATA); Assertions.assertEquals(ApplicationConfiguration.DEFAULT_M...
private Long getMaxTtlForOldDataFromEnvironment() { Long value = environment.getLong(CFG_MAX_TTL_FOR_OLD_DATA, DEFAULT_MAX_TTL_FOR_OLD_DATA); LOGGER.info(format(Messages.MAX_TTL_FOR_OLD_DATA, value)); return value; }
ApplicationConfiguration { private Long getMaxTtlForOldDataFromEnvironment() { Long value = environment.getLong(CFG_MAX_TTL_FOR_OLD_DATA, DEFAULT_MAX_TTL_FOR_OLD_DATA); LOGGER.info(format(Messages.MAX_TTL_FOR_OLD_DATA, value)); return value; } }
ApplicationConfiguration { private Long getMaxTtlForOldDataFromEnvironment() { Long value = environment.getLong(CFG_MAX_TTL_FOR_OLD_DATA, DEFAULT_MAX_TTL_FOR_OLD_DATA); LOGGER.info(format(Messages.MAX_TTL_FOR_OLD_DATA, value)); return value; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment en...
ApplicationConfiguration { private Long getMaxTtlForOldDataFromEnvironment() { Long value = environment.getLong(CFG_MAX_TTL_FOR_OLD_DATA, DEFAULT_MAX_TTL_FOR_OLD_DATA); LOGGER.info(format(Messages.MAX_TTL_FOR_OLD_DATA, value)); return value; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment en...
ApplicationConfiguration { private Long getMaxTtlForOldDataFromEnvironment() { Long value = environment.getLong(CFG_MAX_TTL_FOR_OLD_DATA, DEFAULT_MAX_TTL_FOR_OLD_DATA); LOGGER.info(format(Messages.MAX_TTL_FOR_OLD_DATA, value)); return value; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment en...
@Test void testShouldUseXSAuditLogging() { Mockito.when(environment.getBoolean(ApplicationConfiguration.CFG_USE_XS_AUDIT_LOGGING, ApplicationConfiguration.DEFAULT_USE_XS_AUDIT_LOGGING)) .thenReturn(ApplicationConfiguration.DEFAULT_USE_XS_AUDIT_LOGGING); Assertions.assertEquals(ApplicationConfiguration.DEFAULT_USE_XS_AU...
public Boolean shouldUseXSAuditLogging() { if (useXSAuditLogging == null) { useXSAuditLogging = shouldUseXSAuditLoggingFromEnvironment(); } return useXSAuditLogging; }
ApplicationConfiguration { public Boolean shouldUseXSAuditLogging() { if (useXSAuditLogging == null) { useXSAuditLogging = shouldUseXSAuditLoggingFromEnvironment(); } return useXSAuditLogging; } }
ApplicationConfiguration { public Boolean shouldUseXSAuditLogging() { if (useXSAuditLogging == null) { useXSAuditLogging = shouldUseXSAuditLoggingFromEnvironment(); } return useXSAuditLogging; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Boolean shouldUseXSAuditLogging() { if (useXSAuditLogging == null) { useXSAuditLogging = shouldUseXSAuditLoggingFromEnvironment(); } return useXSAuditLogging; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getN...
ApplicationConfiguration { public Boolean shouldUseXSAuditLogging() { if (useXSAuditLogging == null) { useXSAuditLogging = shouldUseXSAuditLoggingFromEnvironment(); } return useXSAuditLogging; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getN...
@Test void testGetOrgNameWithValidOrgName() { Map<String, Object> vcapApplication = injectFileInEnvironment(VCAP_APPLICATION, ApplicationConfiguration.CFG_VCAP_APPLICATION); Assertions.assertEquals(vcapApplication.get("organization_name"), configuration.getOrgName()); }
public String getOrgName() { if (orgName == null) { orgName = getOrgNameFromEnvironment(); } return orgName; }
ApplicationConfiguration { public String getOrgName() { if (orgName == null) { orgName = getOrgNameFromEnvironment(); } return orgName; } }
ApplicationConfiguration { public String getOrgName() { if (orgName == null) { orgName = getOrgNameFromEnvironment(); } return orgName; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public String getOrgName() { if (orgName == null) { orgName = getOrgNameFromEnvironment(); } return orgName; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Configuration getFileConfiguratio...
ApplicationConfiguration { public String getOrgName() { if (orgName == null) { orgName = getOrgNameFromEnvironment(); } return orgName; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Configuration getFileConfiguratio...
@Test void testGetOrgNameNameNotSet() { injectFileInEnvironment(VCAP_APPLICATION_WITHOUT_SPACE, ApplicationConfiguration.CFG_VCAP_APPLICATION); Assertions.assertNull(configuration.getOrgName()); }
public String getOrgName() { if (orgName == null) { orgName = getOrgNameFromEnvironment(); } return orgName; }
ApplicationConfiguration { public String getOrgName() { if (orgName == null) { orgName = getOrgNameFromEnvironment(); } return orgName; } }
ApplicationConfiguration { public String getOrgName() { if (orgName == null) { orgName = getOrgNameFromEnvironment(); } return orgName; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public String getOrgName() { if (orgName == null) { orgName = getOrgNameFromEnvironment(); } return orgName; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Configuration getFileConfiguratio...
ApplicationConfiguration { public String getOrgName() { if (orgName == null) { orgName = getOrgNameFromEnvironment(); } return orgName; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Configuration getFileConfiguratio...
@Test void testGetDeployServiceUrlUrlIsSet() { Map<String, Object> vcapApplication = injectFileInEnvironment(VCAP_APPLICATION, ApplicationConfiguration.CFG_VCAP_APPLICATION); @SuppressWarnings("unchecked") List<String> urls = (List<String>) vcapApplication.get("uris"); Assertions.assertEquals(urls.get(0), configuration...
public String getDeployServiceUrl() { if (deployServiceUrl == null) { deployServiceUrl = getDeployServiceUrlFromEnvironment(); } return deployServiceUrl; }
ApplicationConfiguration { public String getDeployServiceUrl() { if (deployServiceUrl == null) { deployServiceUrl = getDeployServiceUrlFromEnvironment(); } return deployServiceUrl; } }
ApplicationConfiguration { public String getDeployServiceUrl() { if (deployServiceUrl == null) { deployServiceUrl = getDeployServiceUrlFromEnvironment(); } return deployServiceUrl; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public String getDeployServiceUrl() { if (deployServiceUrl == null) { deployServiceUrl = getDeployServiceUrlFromEnvironment(); } return deployServiceUrl; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveV...
ApplicationConfiguration { public String getDeployServiceUrl() { if (deployServiceUrl == null) { deployServiceUrl = getDeployServiceUrlFromEnvironment(); } return deployServiceUrl; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveV...
@Test void testGetDeployServiceUrlUrlIsNotSet() { injectFileInEnvironment(VCAP_APPLICATION_WITHOUT_URLS, ApplicationConfiguration.CFG_VCAP_APPLICATION); Assertions.assertNull(configuration.getDeployServiceUrl()); }
public String getDeployServiceUrl() { if (deployServiceUrl == null) { deployServiceUrl = getDeployServiceUrlFromEnvironment(); } return deployServiceUrl; }
ApplicationConfiguration { public String getDeployServiceUrl() { if (deployServiceUrl == null) { deployServiceUrl = getDeployServiceUrlFromEnvironment(); } return deployServiceUrl; } }
ApplicationConfiguration { public String getDeployServiceUrl() { if (deployServiceUrl == null) { deployServiceUrl = getDeployServiceUrlFromEnvironment(); } return deployServiceUrl; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public String getDeployServiceUrl() { if (deployServiceUrl == null) { deployServiceUrl = getDeployServiceUrlFromEnvironment(); } return deployServiceUrl; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveV...
ApplicationConfiguration { public String getDeployServiceUrl() { if (deployServiceUrl == null) { deployServiceUrl = getDeployServiceUrlFromEnvironment(); } return deployServiceUrl; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveV...
@Test void testIsBasicAuthEnabled() { Mockito.when(environment.getBoolean(ApplicationConfiguration.CFG_BASIC_AUTH_ENABLED, ApplicationConfiguration.DEFAULT_BASIC_AUTH_ENABLED)) .thenReturn(ApplicationConfiguration.DEFAULT_BASIC_AUTH_ENABLED); Assertions.assertEquals(ApplicationConfiguration.DEFAULT_BASIC_AUTH_ENABLED, ...
public Boolean isBasicAuthEnabled() { if (basicAuthEnabled == null) { basicAuthEnabled = isBasicAuthEnabledThroughEnvironment(); } return basicAuthEnabled; }
ApplicationConfiguration { public Boolean isBasicAuthEnabled() { if (basicAuthEnabled == null) { basicAuthEnabled = isBasicAuthEnabledThroughEnvironment(); } return basicAuthEnabled; } }
ApplicationConfiguration { public Boolean isBasicAuthEnabled() { if (basicAuthEnabled == null) { basicAuthEnabled = isBasicAuthEnabledThroughEnvironment(); } return basicAuthEnabled; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Boolean isBasicAuthEnabled() { if (basicAuthEnabled == null) { basicAuthEnabled = isBasicAuthEnabledThroughEnvironment(); } return basicAuthEnabled; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiv...
ApplicationConfiguration { public Boolean isBasicAuthEnabled() { if (basicAuthEnabled == null) { basicAuthEnabled = isBasicAuthEnabledThroughEnvironment(); } return basicAuthEnabled; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiv...
@Test void testGetGlobalAuditorUser() { String globalAuditorUser = "globalAuditorUserName"; Mockito.when(environment.getString(ApplicationConfiguration.CFG_GLOBAL_AUDITOR_USER)) .thenReturn(globalAuditorUser); Assertions.assertEquals(globalAuditorUser, configuration.getGlobalAuditorUser()); }
public String getGlobalAuditorUser() { if (globalAuditorUser == null) { globalAuditorUser = getGlobalAuditorUserFromEnvironment(); } return globalAuditorUser; }
ApplicationConfiguration { public String getGlobalAuditorUser() { if (globalAuditorUser == null) { globalAuditorUser = getGlobalAuditorUserFromEnvironment(); } return globalAuditorUser; } }
ApplicationConfiguration { public String getGlobalAuditorUser() { if (globalAuditorUser == null) { globalAuditorUser = getGlobalAuditorUserFromEnvironment(); } return globalAuditorUser; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public String getGlobalAuditorUser() { if (globalAuditorUser == null) { globalAuditorUser = getGlobalAuditorUserFromEnvironment(); } return globalAuditorUser; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensi...
ApplicationConfiguration { public String getGlobalAuditorUser() { if (globalAuditorUser == null) { globalAuditorUser = getGlobalAuditorUserFromEnvironment(); } return globalAuditorUser; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensi...
@Test void testGetGlobalAuditorPasswordFromEnvironment() { String globalAuditorPassword = "globalAuditorUserPassword"; Mockito.when(environment.getString(ApplicationConfiguration.CFG_GLOBAL_AUDITOR_PASSWORD)) .thenReturn(globalAuditorPassword); Assertions.assertEquals(globalAuditorPassword, configuration.getGlobalAudit...
private String getGlobalAuditorPasswordFromEnvironment() { return environment.getString(CFG_GLOBAL_AUDITOR_PASSWORD); }
ApplicationConfiguration { private String getGlobalAuditorPasswordFromEnvironment() { return environment.getString(CFG_GLOBAL_AUDITOR_PASSWORD); } }
ApplicationConfiguration { private String getGlobalAuditorPasswordFromEnvironment() { return environment.getString(CFG_GLOBAL_AUDITOR_PASSWORD); } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { private String getGlobalAuditorPasswordFromEnvironment() { return environment.getString(CFG_GLOBAL_AUDITOR_PASSWORD); } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Configuration getFileCon...
ApplicationConfiguration { private String getGlobalAuditorPasswordFromEnvironment() { return environment.getString(CFG_GLOBAL_AUDITOR_PASSWORD); } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Configuration getFileCon...
@Test void testQueryByProviderNamespace() { addConfigurationEntries(ALL_ENTRIES); ConfigurationEntryQuery allEntries = configurationEntryService.createQuery() .providerNamespace(null, false); assertEquals(3, allEntries.list() .size()); ConfigurationEntryQuery allEntriesNoNamespace = configurationEntryService.createQuer...
public ConfigurationEntryQuery createQuery() { return new ConfigurationEntryQueryImpl(createEntityManager(), entryMapper); }
ConfigurationEntryService extends PersistenceService<ConfigurationEntry, ConfigurationEntryDto, Long> { public ConfigurationEntryQuery createQuery() { return new ConfigurationEntryQueryImpl(createEntityManager(), entryMapper); } }
ConfigurationEntryService extends PersistenceService<ConfigurationEntry, ConfigurationEntryDto, Long> { public ConfigurationEntryQuery createQuery() { return new ConfigurationEntryQueryImpl(createEntityManager(), entryMapper); } ConfigurationEntryService(EntityManagerFactory entityManagerFactory, ConfigurationEntryMapp...
ConfigurationEntryService extends PersistenceService<ConfigurationEntry, ConfigurationEntryDto, Long> { public ConfigurationEntryQuery createQuery() { return new ConfigurationEntryQueryImpl(createEntityManager(), entryMapper); } ConfigurationEntryService(EntityManagerFactory entityManagerFactory, ConfigurationEntryMapp...
ConfigurationEntryService extends PersistenceService<ConfigurationEntry, ConfigurationEntryDto, Long> { public ConfigurationEntryQuery createQuery() { return new ConfigurationEntryQueryImpl(createEntityManager(), entryMapper); } ConfigurationEntryService(EntityManagerFactory entityManagerFactory, ConfigurationEntryMapp...
@Test void testGetDbConnectionThreadsFromEnvironment() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_DB_CONNECTION_THREADS, ApplicationConfiguration.DEFAULT_DB_CONNECTION_THREADS)) .thenReturn(ApplicationConfiguration.DEFAULT_DB_CONNECTION_THREADS); Assertions.assertEquals(ApplicationConfig...
private Integer getDbConnectionThreadsFromEnvironment() { Integer value = environment.getPositiveInteger(CFG_DB_CONNECTION_THREADS, DEFAULT_DB_CONNECTION_THREADS); LOGGER.info(format(Messages.DB_CONNECTION_THREADS, value)); return value; }
ApplicationConfiguration { private Integer getDbConnectionThreadsFromEnvironment() { Integer value = environment.getPositiveInteger(CFG_DB_CONNECTION_THREADS, DEFAULT_DB_CONNECTION_THREADS); LOGGER.info(format(Messages.DB_CONNECTION_THREADS, value)); return value; } }
ApplicationConfiguration { private Integer getDbConnectionThreadsFromEnvironment() { Integer value = environment.getPositiveInteger(CFG_DB_CONNECTION_THREADS, DEFAULT_DB_CONNECTION_THREADS); LOGGER.info(format(Messages.DB_CONNECTION_THREADS, value)); return value; } ApplicationConfiguration(); @Inject ApplicationConfi...
ApplicationConfiguration { private Integer getDbConnectionThreadsFromEnvironment() { Integer value = environment.getPositiveInteger(CFG_DB_CONNECTION_THREADS, DEFAULT_DB_CONNECTION_THREADS); LOGGER.info(format(Messages.DB_CONNECTION_THREADS, value)); return value; } ApplicationConfiguration(); @Inject ApplicationConfi...
ApplicationConfiguration { private Integer getDbConnectionThreadsFromEnvironment() { Integer value = environment.getPositiveInteger(CFG_DB_CONNECTION_THREADS, DEFAULT_DB_CONNECTION_THREADS); LOGGER.info(format(Messages.DB_CONNECTION_THREADS, value)); return value; } ApplicationConfiguration(); @Inject ApplicationConfi...
@Test void testGetStepPollingIntervalInSeconds() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_STEP_POLLING_INTERVAL_IN_SECONDS, ApplicationConfiguration.DEFAULT_STEP_POLLING_INTERVAL_IN_SECONDS)) .thenReturn(ApplicationConfiguration.DEFAULT_STEP_POLLING_INTERVAL_IN_SECONDS); Assertions.ass...
public int getStepPollingIntervalInSeconds() { if (stepPollingIntervalInSeconds == null) { stepPollingIntervalInSeconds = getStepPollingIntervalFromEnvironment(); } return stepPollingIntervalInSeconds; }
ApplicationConfiguration { public int getStepPollingIntervalInSeconds() { if (stepPollingIntervalInSeconds == null) { stepPollingIntervalInSeconds = getStepPollingIntervalFromEnvironment(); } return stepPollingIntervalInSeconds; } }
ApplicationConfiguration { public int getStepPollingIntervalInSeconds() { if (stepPollingIntervalInSeconds == null) { stepPollingIntervalInSeconds = getStepPollingIntervalFromEnvironment(); } return stepPollingIntervalInSeconds; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public int getStepPollingIntervalInSeconds() { if (stepPollingIntervalInSeconds == null) { stepPollingIntervalInSeconds = getStepPollingIntervalFromEnvironment(); } return stepPollingIntervalInSeconds; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); v...
ApplicationConfiguration { public int getStepPollingIntervalInSeconds() { if (stepPollingIntervalInSeconds == null) { stepPollingIntervalInSeconds = getStepPollingIntervalFromEnvironment(); } return stepPollingIntervalInSeconds; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); v...
@Test void testShouldSkipSslValidation() { Mockito.when(environment.getBoolean(ApplicationConfiguration.CFG_SKIP_SSL_VALIDATION, ApplicationConfiguration.DEFAULT_SKIP_SSL_VALIDATION)) .thenReturn(ApplicationConfiguration.DEFAULT_SKIP_SSL_VALIDATION); Assertions.assertEquals(ApplicationConfiguration.DEFAULT_SKIP_SSL_VAL...
public Boolean shouldSkipSslValidation() { if (skipSslValidation == null) { skipSslValidation = shouldSkipSslValidationBasedOnEnvironment(); } return skipSslValidation; }
ApplicationConfiguration { public Boolean shouldSkipSslValidation() { if (skipSslValidation == null) { skipSslValidation = shouldSkipSslValidationBasedOnEnvironment(); } return skipSslValidation; } }
ApplicationConfiguration { public Boolean shouldSkipSslValidation() { if (skipSslValidation == null) { skipSslValidation = shouldSkipSslValidationBasedOnEnvironment(); } return skipSslValidation; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Boolean shouldSkipSslValidation() { if (skipSslValidation == null) { skipSslValidation = shouldSkipSslValidationBasedOnEnvironment(); } return skipSslValidation; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> g...
ApplicationConfiguration { public Boolean shouldSkipSslValidation() { if (skipSslValidation == null) { skipSslValidation = shouldSkipSslValidationBasedOnEnvironment(); } return skipSslValidation; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> g...
@Test void testGetVersionFromEnvironment() { Mockito.when(environment.getString(ApplicationConfiguration.CFG_VERSION, ApplicationConfiguration.DEFAULT_VERSION)) .thenReturn(ApplicationConfiguration.DEFAULT_VERSION); Assertions.assertEquals(ApplicationConfiguration.DEFAULT_VERSION, configuration.getVersion()); }
private String getVersionFromEnvironment() { String value = environment.getString(CFG_VERSION, DEFAULT_VERSION); LOGGER.info(format(Messages.DS_VERSION, value)); return value; }
ApplicationConfiguration { private String getVersionFromEnvironment() { String value = environment.getString(CFG_VERSION, DEFAULT_VERSION); LOGGER.info(format(Messages.DS_VERSION, value)); return value; } }
ApplicationConfiguration { private String getVersionFromEnvironment() { String value = environment.getString(CFG_VERSION, DEFAULT_VERSION); LOGGER.info(format(Messages.DS_VERSION, value)); return value; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { private String getVersionFromEnvironment() { String value = environment.getString(CFG_VERSION, DEFAULT_VERSION); LOGGER.info(format(Messages.DS_VERSION, value)); return value; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, St...
ApplicationConfiguration { private String getVersionFromEnvironment() { String value = environment.getString(CFG_VERSION, DEFAULT_VERSION); LOGGER.info(format(Messages.DS_VERSION, value)); return value; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, St...
@Test void testGetChangeLogLockPollRate() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_CHANGE_LOG_LOCK_POLL_RATE, ApplicationConfiguration.DEFAULT_CHANGE_LOG_LOCK_POLL_RATE)) .thenReturn(ApplicationConfiguration.DEFAULT_CHANGE_LOG_LOCK_POLL_RATE); Assertions.assertEquals(ApplicationConfigu...
public Integer getChangeLogLockPollRate() { if (changeLogLockPollRate == null) { changeLogLockPollRate = getChangeLogLockPollRateFromEnvironment(); } return changeLogLockPollRate; }
ApplicationConfiguration { public Integer getChangeLogLockPollRate() { if (changeLogLockPollRate == null) { changeLogLockPollRate = getChangeLogLockPollRateFromEnvironment(); } return changeLogLockPollRate; } }
ApplicationConfiguration { public Integer getChangeLogLockPollRate() { if (changeLogLockPollRate == null) { changeLogLockPollRate = getChangeLogLockPollRateFromEnvironment(); } return changeLogLockPollRate; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Integer getChangeLogLockPollRate() { if (changeLogLockPollRate == null) { changeLogLockPollRate = getChangeLogLockPollRateFromEnvironment(); } return changeLogLockPollRate; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String...
ApplicationConfiguration { public Integer getChangeLogLockPollRate() { if (changeLogLockPollRate == null) { changeLogLockPollRate = getChangeLogLockPollRateFromEnvironment(); } return changeLogLockPollRate; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String...
@Test void testGetControllerClientSslHandshakeTimeout() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_CONTROLLER_CLIENT_SSL_HANDSHAKE_TIMEOUT_IN_SECONDS, ApplicationConfiguration.DEFAULT_CONTROLLER_CLIENT_SSL_HANDSHAKE_TIMEOUT_IN_SECONDS)) .thenReturn(120); assertEquals(Duration.ofSeconds(1...
public Duration getControllerClientSslHandshakeTimeout() { if (controllerClientSslHandshakeTimeout == null) { controllerClientSslHandshakeTimeout = getControllerClientSslHandshakeTimeoutFromEnvironment(); } return controllerClientSslHandshakeTimeout; }
ApplicationConfiguration { public Duration getControllerClientSslHandshakeTimeout() { if (controllerClientSslHandshakeTimeout == null) { controllerClientSslHandshakeTimeout = getControllerClientSslHandshakeTimeoutFromEnvironment(); } return controllerClientSslHandshakeTimeout; } }
ApplicationConfiguration { public Duration getControllerClientSslHandshakeTimeout() { if (controllerClientSslHandshakeTimeout == null) { controllerClientSslHandshakeTimeout = getControllerClientSslHandshakeTimeoutFromEnvironment(); } return controllerClientSslHandshakeTimeout; } ApplicationConfiguration(); @Inject App...
ApplicationConfiguration { public Duration getControllerClientSslHandshakeTimeout() { if (controllerClientSslHandshakeTimeout == null) { controllerClientSslHandshakeTimeout = getControllerClientSslHandshakeTimeoutFromEnvironment(); } return controllerClientSslHandshakeTimeout; } ApplicationConfiguration(); @Inject App...
ApplicationConfiguration { public Duration getControllerClientSslHandshakeTimeout() { if (controllerClientSslHandshakeTimeout == null) { controllerClientSslHandshakeTimeout = getControllerClientSslHandshakeTimeoutFromEnvironment(); } return controllerClientSslHandshakeTimeout; } ApplicationConfiguration(); @Inject App...
@Test void testGetControllerClientConnectTimeout() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_CONTROLLER_CLIENT_CONNECT_TIMEOUT_IN_SECONDS, ApplicationConfiguration.DEFAULT_CONTROLLER_CLIENT_CONNECT_TIMEOUT_IN_SECONDS)) .thenReturn(10); assertEquals(Duration.ofSeconds(10), configuration....
public Duration getControllerClientConnectTimeout() { if (controllerClientConnectTimeout == null) { controllerClientConnectTimeout = getControllerClientConnectTimeoutFromEnvironment(); } return controllerClientConnectTimeout; }
ApplicationConfiguration { public Duration getControllerClientConnectTimeout() { if (controllerClientConnectTimeout == null) { controllerClientConnectTimeout = getControllerClientConnectTimeoutFromEnvironment(); } return controllerClientConnectTimeout; } }
ApplicationConfiguration { public Duration getControllerClientConnectTimeout() { if (controllerClientConnectTimeout == null) { controllerClientConnectTimeout = getControllerClientConnectTimeoutFromEnvironment(); } return controllerClientConnectTimeout; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Env...
ApplicationConfiguration { public Duration getControllerClientConnectTimeout() { if (controllerClientConnectTimeout == null) { controllerClientConnectTimeout = getControllerClientConnectTimeoutFromEnvironment(); } return controllerClientConnectTimeout; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Env...
ApplicationConfiguration { public Duration getControllerClientConnectTimeout() { if (controllerClientConnectTimeout == null) { controllerClientConnectTimeout = getControllerClientConnectTimeoutFromEnvironment(); } return controllerClientConnectTimeout; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Env...
@Test void testGetChangeLogLockAttempts() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_CHANGE_LOG_LOCK_ATTEMPTS, ApplicationConfiguration.DEFAULT_CHANGE_LOG_LOCK_ATTEMPTS)) .thenReturn(ApplicationConfiguration.DEFAULT_CHANGE_LOG_LOCK_ATTEMPTS); Assertions.assertEquals(ApplicationConfigurat...
public Integer getChangeLogLockAttempts() { if (changeLogLockAttempts == null) { changeLogLockAttempts = getChangeLogLockAttemptsFromEnvironment(); } return changeLogLockAttempts; }
ApplicationConfiguration { public Integer getChangeLogLockAttempts() { if (changeLogLockAttempts == null) { changeLogLockAttempts = getChangeLogLockAttemptsFromEnvironment(); } return changeLogLockAttempts; } }
ApplicationConfiguration { public Integer getChangeLogLockAttempts() { if (changeLogLockAttempts == null) { changeLogLockAttempts = getChangeLogLockAttemptsFromEnvironment(); } return changeLogLockAttempts; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Integer getChangeLogLockAttempts() { if (changeLogLockAttempts == null) { changeLogLockAttempts = getChangeLogLockAttemptsFromEnvironment(); } return changeLogLockAttempts; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String...
ApplicationConfiguration { public Integer getChangeLogLockAttempts() { if (changeLogLockAttempts == null) { changeLogLockAttempts = getChangeLogLockAttemptsFromEnvironment(); } return changeLogLockAttempts; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String...
@Test void testGetGlobalConfigSpace() { String globalConfigSpace = "globalConfigSpace"; Mockito.when(environment.getString(ApplicationConfiguration.CFG_GLOBAL_CONFIG_SPACE)) .thenReturn(globalConfigSpace); Assertions.assertEquals(globalConfigSpace, configuration.getGlobalConfigSpace()); }
public String getGlobalConfigSpace() { if (globalConfigSpace == null) { globalConfigSpace = getGlobalConfigSpaceFromEnvironment(); } return globalConfigSpace; }
ApplicationConfiguration { public String getGlobalConfigSpace() { if (globalConfigSpace == null) { globalConfigSpace = getGlobalConfigSpaceFromEnvironment(); } return globalConfigSpace; } }
ApplicationConfiguration { public String getGlobalConfigSpace() { if (globalConfigSpace == null) { globalConfigSpace = getGlobalConfigSpaceFromEnvironment(); } return globalConfigSpace; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public String getGlobalConfigSpace() { if (globalConfigSpace == null) { globalConfigSpace = getGlobalConfigSpaceFromEnvironment(); } return globalConfigSpace; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensi...
ApplicationConfiguration { public String getGlobalConfigSpace() { if (globalConfigSpace == null) { globalConfigSpace = getGlobalConfigSpaceFromEnvironment(); } return globalConfigSpace; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensi...
@Test void testGetHealthCheckConfigurationFromEnvironment() { String healthCheckSpaceId = "healthCheckSpaceId"; String healthCheckMtaId = "healthCheckMtaId"; String healthCheckUserName = "healthCheckUserId"; int healthCheckTimeRange = 10; Mockito.when(environment.getString(ApplicationConfiguration.CFG_HEALTH_CHECK_SPAC...
private HealthCheckConfiguration getHealthCheckConfigurationFromEnvironment() { HealthCheckConfiguration healthCheckConfigurationFromEnvironment = ImmutableHealthCheckConfiguration.builder() .spaceId(getHealthCheckSpaceGuidFromEnvironment()) .mtaId(getHealthCheckMtaIdFromEnvironment()) .userName(getHealthCheckUserFromE...
ApplicationConfiguration { private HealthCheckConfiguration getHealthCheckConfigurationFromEnvironment() { HealthCheckConfiguration healthCheckConfigurationFromEnvironment = ImmutableHealthCheckConfiguration.builder() .spaceId(getHealthCheckSpaceGuidFromEnvironment()) .mtaId(getHealthCheckMtaIdFromEnvironment()) .userN...
ApplicationConfiguration { private HealthCheckConfiguration getHealthCheckConfigurationFromEnvironment() { HealthCheckConfiguration healthCheckConfigurationFromEnvironment = ImmutableHealthCheckConfiguration.builder() .spaceId(getHealthCheckSpaceGuidFromEnvironment()) .mtaId(getHealthCheckMtaIdFromEnvironment()) .userN...
ApplicationConfiguration { private HealthCheckConfiguration getHealthCheckConfigurationFromEnvironment() { HealthCheckConfiguration healthCheckConfigurationFromEnvironment = ImmutableHealthCheckConfiguration.builder() .spaceId(getHealthCheckSpaceGuidFromEnvironment()) .mtaId(getHealthCheckMtaIdFromEnvironment()) .userN...
ApplicationConfiguration { private HealthCheckConfiguration getHealthCheckConfigurationFromEnvironment() { HealthCheckConfiguration healthCheckConfigurationFromEnvironment = ImmutableHealthCheckConfiguration.builder() .spaceId(getHealthCheckSpaceGuidFromEnvironment()) .mtaId(getHealthCheckMtaIdFromEnvironment()) .userN...
@Test void testAdd() { progressMessageService.add(PROGRESS_MESSAGE_1); assertEquals(1, progressMessageService.createQuery() .list() .size()); assertEquals(PROGRESS_MESSAGE_1.getId(), progressMessageService.createQuery() .id(PROGRESS_MESSAGE_1.getId()) .singleResult() .getId()); }
public ProgressMessageQuery createQuery() { return new ProgressMessageQueryImpl(createEntityManager(), progressMessageMapper); }
ProgressMessageService extends PersistenceService<ProgressMessage, ProgressMessageDto, Long> { public ProgressMessageQuery createQuery() { return new ProgressMessageQueryImpl(createEntityManager(), progressMessageMapper); } }
ProgressMessageService extends PersistenceService<ProgressMessage, ProgressMessageDto, Long> { public ProgressMessageQuery createQuery() { return new ProgressMessageQueryImpl(createEntityManager(), progressMessageMapper); } @Inject ProgressMessageService(EntityManagerFactory entityManagerFactory); }
ProgressMessageService extends PersistenceService<ProgressMessage, ProgressMessageDto, Long> { public ProgressMessageQuery createQuery() { return new ProgressMessageQueryImpl(createEntityManager(), progressMessageMapper); } @Inject ProgressMessageService(EntityManagerFactory entityManagerFactory); ProgressMessageQuery...
ProgressMessageService extends PersistenceService<ProgressMessage, ProgressMessageDto, Long> { public ProgressMessageQuery createQuery() { return new ProgressMessageQueryImpl(createEntityManager(), progressMessageMapper); } @Inject ProgressMessageService(EntityManagerFactory entityManagerFactory); ProgressMessageQuery...
@Test void testGetApplicationGuid() { Map<String, Object> vcapApplication = injectFileInEnvironment(VCAP_APPLICATION, ApplicationConfiguration.CFG_VCAP_APPLICATION); Assertions.assertEquals(vcapApplication.get("application_id"), configuration.getApplicationGuid()); }
public String getApplicationGuid() { if (applicationGuid == null) { applicationGuid = getApplicationGuidFromEnvironment(); } return applicationGuid; }
ApplicationConfiguration { public String getApplicationGuid() { if (applicationGuid == null) { applicationGuid = getApplicationGuidFromEnvironment(); } return applicationGuid; } }
ApplicationConfiguration { public String getApplicationGuid() { if (applicationGuid == null) { applicationGuid = getApplicationGuidFromEnvironment(); } return applicationGuid; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public String getApplicationGuid() { if (applicationGuid == null) { applicationGuid = getApplicationGuidFromEnvironment(); } return applicationGuid; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariab...
ApplicationConfiguration { public String getApplicationGuid() { if (applicationGuid == null) { applicationGuid = getApplicationGuidFromEnvironment(); } return applicationGuid; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariab...
@Test void testGetApplicationInstanceIndex() { Integer instanceIndex = 1; Mockito.when(environment.getInteger(ApplicationConfiguration.CFG_CF_INSTANCE_INDEX)) .thenReturn(instanceIndex); Assertions.assertEquals(instanceIndex, configuration.getApplicationInstanceIndex()); }
public Integer getApplicationInstanceIndex() { if (applicationInstanceIndex == null) { applicationInstanceIndex = getApplicationInstanceIndexFromEnvironment(); } return applicationInstanceIndex; }
ApplicationConfiguration { public Integer getApplicationInstanceIndex() { if (applicationInstanceIndex == null) { applicationInstanceIndex = getApplicationInstanceIndexFromEnvironment(); } return applicationInstanceIndex; } }
ApplicationConfiguration { public Integer getApplicationInstanceIndex() { if (applicationInstanceIndex == null) { applicationInstanceIndex = getApplicationInstanceIndexFromEnvironment(); } return applicationInstanceIndex; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Integer getApplicationInstanceIndex() { if (applicationInstanceIndex == null) { applicationInstanceIndex = getApplicationInstanceIndexFromEnvironment(); } return applicationInstanceIndex; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void loa...
ApplicationConfiguration { public Integer getApplicationInstanceIndex() { if (applicationInstanceIndex == null) { applicationInstanceIndex = getApplicationInstanceIndexFromEnvironment(); } return applicationInstanceIndex; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void loa...
@Test void testGetAuditLogClientCoreThreads() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_AUDIT_LOG_CLIENT_CORE_THREADS, ApplicationConfiguration.DEFAULT_AUDIT_LOG_CLIENT_CORE_THREADS)) .thenReturn(ApplicationConfiguration.DEFAULT_AUDIT_LOG_CLIENT_CORE_THREADS); Assertions.assertEquals(Ap...
public Integer getAuditLogClientCoreThreads() { if (auditLogClientCoreThreads == null) { auditLogClientCoreThreads = getAuditLogClientCoreThreadsFromEnvironment(); } return auditLogClientCoreThreads; }
ApplicationConfiguration { public Integer getAuditLogClientCoreThreads() { if (auditLogClientCoreThreads == null) { auditLogClientCoreThreads = getAuditLogClientCoreThreadsFromEnvironment(); } return auditLogClientCoreThreads; } }
ApplicationConfiguration { public Integer getAuditLogClientCoreThreads() { if (auditLogClientCoreThreads == null) { auditLogClientCoreThreads = getAuditLogClientCoreThreadsFromEnvironment(); } return auditLogClientCoreThreads; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Integer getAuditLogClientCoreThreads() { if (auditLogClientCoreThreads == null) { auditLogClientCoreThreads = getAuditLogClientCoreThreadsFromEnvironment(); } return auditLogClientCoreThreads; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); voi...
ApplicationConfiguration { public Integer getAuditLogClientCoreThreads() { if (auditLogClientCoreThreads == null) { auditLogClientCoreThreads = getAuditLogClientCoreThreadsFromEnvironment(); } return auditLogClientCoreThreads; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); voi...
@Test void testGetAuditLogClientMaxThreads() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_AUDIT_LOG_CLIENT_MAX_THREADS, ApplicationConfiguration.DEFAULT_AUDIT_LOG_CLIENT_MAX_THREADS)) .thenReturn(ApplicationConfiguration.DEFAULT_AUDIT_LOG_CLIENT_MAX_THREADS); Assertions.assertEquals(Applic...
public Integer getAuditLogClientMaxThreads() { if (auditLogClientMaxThreads == null) { auditLogClientMaxThreads = getAuditLogClientMaxThreadsFromEnvironment(); } return auditLogClientMaxThreads; }
ApplicationConfiguration { public Integer getAuditLogClientMaxThreads() { if (auditLogClientMaxThreads == null) { auditLogClientMaxThreads = getAuditLogClientMaxThreadsFromEnvironment(); } return auditLogClientMaxThreads; } }
ApplicationConfiguration { public Integer getAuditLogClientMaxThreads() { if (auditLogClientMaxThreads == null) { auditLogClientMaxThreads = getAuditLogClientMaxThreadsFromEnvironment(); } return auditLogClientMaxThreads; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Integer getAuditLogClientMaxThreads() { if (auditLogClientMaxThreads == null) { auditLogClientMaxThreads = getAuditLogClientMaxThreadsFromEnvironment(); } return auditLogClientMaxThreads; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void loa...
ApplicationConfiguration { public Integer getAuditLogClientMaxThreads() { if (auditLogClientMaxThreads == null) { auditLogClientMaxThreads = getAuditLogClientMaxThreadsFromEnvironment(); } return auditLogClientMaxThreads; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void loa...
@Test void testGetAuditLogClientQueueCapacity() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_AUDIT_LOG_CLIENT_QUEUE_CAPACITY, ApplicationConfiguration.DEFAULT_AUDIT_LOG_CLIENT_QUEUE_CAPACITY)) .thenReturn(ApplicationConfiguration.DEFAULT_AUDIT_LOG_CLIENT_QUEUE_CAPACITY); Assertions.assertE...
public Integer getAuditLogClientQueueCapacity() { if (auditLogClientQueueCapacity == null) { auditLogClientQueueCapacity = getAuditLogClientQueueCapacityFromEnvironment(); } return auditLogClientQueueCapacity; }
ApplicationConfiguration { public Integer getAuditLogClientQueueCapacity() { if (auditLogClientQueueCapacity == null) { auditLogClientQueueCapacity = getAuditLogClientQueueCapacityFromEnvironment(); } return auditLogClientQueueCapacity; } }
ApplicationConfiguration { public Integer getAuditLogClientQueueCapacity() { if (auditLogClientQueueCapacity == null) { auditLogClientQueueCapacity = getAuditLogClientQueueCapacityFromEnvironment(); } return auditLogClientQueueCapacity; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environ...
ApplicationConfiguration { public Integer getAuditLogClientQueueCapacity() { if (auditLogClientQueueCapacity == null) { auditLogClientQueueCapacity = getAuditLogClientQueueCapacityFromEnvironment(); } return auditLogClientQueueCapacity; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environ...
ApplicationConfiguration { public Integer getAuditLogClientQueueCapacity() { if (auditLogClientQueueCapacity == null) { auditLogClientQueueCapacity = getAuditLogClientQueueCapacityFromEnvironment(); } return auditLogClientQueueCapacity; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environ...
@Test void testGetAuditLogClientKeepAlive() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_AUDIT_LOG_CLIENT_KEEP_ALIVE, ApplicationConfiguration.DEFAULT_AUDIT_LOG_CLIENT_KEEP_ALIVE)) .thenReturn(ApplicationConfiguration.DEFAULT_AUDIT_LOG_CLIENT_KEEP_ALIVE); Assertions.assertEquals(Applicatio...
public Integer getAuditLogClientKeepAlive() { if (auditLogClientKeepAlive == null) { auditLogClientKeepAlive = getAuditLogClientKeepAliveFromEnvironment(); } return auditLogClientKeepAlive; }
ApplicationConfiguration { public Integer getAuditLogClientKeepAlive() { if (auditLogClientKeepAlive == null) { auditLogClientKeepAlive = getAuditLogClientKeepAliveFromEnvironment(); } return auditLogClientKeepAlive; } }
ApplicationConfiguration { public Integer getAuditLogClientKeepAlive() { if (auditLogClientKeepAlive == null) { auditLogClientKeepAlive = getAuditLogClientKeepAliveFromEnvironment(); } return auditLogClientKeepAlive; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Integer getAuditLogClientKeepAlive() { if (auditLogClientKeepAlive == null) { auditLogClientKeepAlive = getAuditLogClientKeepAliveFromEnvironment(); } return auditLogClientKeepAlive; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); ...
ApplicationConfiguration { public Integer getAuditLogClientKeepAlive() { if (auditLogClientKeepAlive == null) { auditLogClientKeepAlive = getAuditLogClientKeepAliveFromEnvironment(); } return auditLogClientKeepAlive; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); ...
@Test void testGetFlowableJobExecutorCoreThreads() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_FLOWABLE_JOB_EXECUTOR_CORE_THREADS, ApplicationConfiguration.DEFAULT_FLOWABLE_JOB_EXECUTOR_CORE_THREADS)) .thenReturn(ApplicationConfiguration.DEFAULT_FLOWABLE_JOB_EXECUTOR_CORE_THREADS); Assert...
public Integer getFlowableJobExecutorCoreThreads() { if (flowableJobExecutorCoreThreads == null) { flowableJobExecutorCoreThreads = getFlowableJobExecutorCoreThreadsFromEnvironment(); } return flowableJobExecutorCoreThreads; }
ApplicationConfiguration { public Integer getFlowableJobExecutorCoreThreads() { if (flowableJobExecutorCoreThreads == null) { flowableJobExecutorCoreThreads = getFlowableJobExecutorCoreThreadsFromEnvironment(); } return flowableJobExecutorCoreThreads; } }
ApplicationConfiguration { public Integer getFlowableJobExecutorCoreThreads() { if (flowableJobExecutorCoreThreads == null) { flowableJobExecutorCoreThreads = getFlowableJobExecutorCoreThreadsFromEnvironment(); } return flowableJobExecutorCoreThreads; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Envi...
ApplicationConfiguration { public Integer getFlowableJobExecutorCoreThreads() { if (flowableJobExecutorCoreThreads == null) { flowableJobExecutorCoreThreads = getFlowableJobExecutorCoreThreadsFromEnvironment(); } return flowableJobExecutorCoreThreads; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Envi...
ApplicationConfiguration { public Integer getFlowableJobExecutorCoreThreads() { if (flowableJobExecutorCoreThreads == null) { flowableJobExecutorCoreThreads = getFlowableJobExecutorCoreThreadsFromEnvironment(); } return flowableJobExecutorCoreThreads; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Envi...
@Test void testGetFlowableJobExecutorMaxThreads() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_FLOWABLE_JOB_EXECUTOR_MAX_THREADS, ApplicationConfiguration.DEFAULT_FLOWABLE_JOB_EXECUTOR_MAX_THREADS)) .thenReturn(ApplicationConfiguration.DEFAULT_FLOWABLE_JOB_EXECUTOR_MAX_THREADS); Assertions...
public Integer getFlowableJobExecutorMaxThreads() { if (flowableJobExecutorMaxThreads == null) { flowableJobExecutorMaxThreads = getFlowableJobExecutorMaxThreadsFromEnvironment(); } return flowableJobExecutorMaxThreads; }
ApplicationConfiguration { public Integer getFlowableJobExecutorMaxThreads() { if (flowableJobExecutorMaxThreads == null) { flowableJobExecutorMaxThreads = getFlowableJobExecutorMaxThreadsFromEnvironment(); } return flowableJobExecutorMaxThreads; } }
ApplicationConfiguration { public Integer getFlowableJobExecutorMaxThreads() { if (flowableJobExecutorMaxThreads == null) { flowableJobExecutorMaxThreads = getFlowableJobExecutorMaxThreadsFromEnvironment(); } return flowableJobExecutorMaxThreads; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environme...
ApplicationConfiguration { public Integer getFlowableJobExecutorMaxThreads() { if (flowableJobExecutorMaxThreads == null) { flowableJobExecutorMaxThreads = getFlowableJobExecutorMaxThreadsFromEnvironment(); } return flowableJobExecutorMaxThreads; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environme...
ApplicationConfiguration { public Integer getFlowableJobExecutorMaxThreads() { if (flowableJobExecutorMaxThreads == null) { flowableJobExecutorMaxThreads = getFlowableJobExecutorMaxThreadsFromEnvironment(); } return flowableJobExecutorMaxThreads; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environme...
@Test void testGetFlowableJobExecutorQueueCapacity() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_FLOWABLE_JOB_EXECUTOR_QUEUE_CAPACITY, ApplicationConfiguration.DEFAULT_FLOWABLE_JOB_EXECUTOR_QUEUE_CAPACITY)) .thenReturn(ApplicationConfiguration.DEFAULT_FLOWABLE_JOB_EXECUTOR_QUEUE_CAPACITY)...
public Integer getFlowableJobExecutorQueueCapacity() { if (flowableJobExecutorQueueCapacity == null) { flowableJobExecutorQueueCapacity = getFlowableJobExecutorQueueCapacityFromEnvironment(); } return flowableJobExecutorQueueCapacity; }
ApplicationConfiguration { public Integer getFlowableJobExecutorQueueCapacity() { if (flowableJobExecutorQueueCapacity == null) { flowableJobExecutorQueueCapacity = getFlowableJobExecutorQueueCapacityFromEnvironment(); } return flowableJobExecutorQueueCapacity; } }
ApplicationConfiguration { public Integer getFlowableJobExecutorQueueCapacity() { if (flowableJobExecutorQueueCapacity == null) { flowableJobExecutorQueueCapacity = getFlowableJobExecutorQueueCapacityFromEnvironment(); } return flowableJobExecutorQueueCapacity; } ApplicationConfiguration(); @Inject ApplicationConfigur...
ApplicationConfiguration { public Integer getFlowableJobExecutorQueueCapacity() { if (flowableJobExecutorQueueCapacity == null) { flowableJobExecutorQueueCapacity = getFlowableJobExecutorQueueCapacityFromEnvironment(); } return flowableJobExecutorQueueCapacity; } ApplicationConfiguration(); @Inject ApplicationConfigur...
ApplicationConfiguration { public Integer getFlowableJobExecutorQueueCapacity() { if (flowableJobExecutorQueueCapacity == null) { flowableJobExecutorQueueCapacity = getFlowableJobExecutorQueueCapacityFromEnvironment(); } return flowableJobExecutorQueueCapacity; } ApplicationConfiguration(); @Inject ApplicationConfigur...
@Test void testGetFssCacheUpdateTimeoutMinutes() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_FSS_CACHE_UPDATE_TIMEOUT_MINUTES, ApplicationConfiguration.DEFAULT_FSS_CACHE_UPDATE_TIMEOUT_MINUTES)) .thenReturn(ApplicationConfiguration.DEFAULT_FSS_CACHE_UPDATE_TIMEOUT_MINUTES); Assertions.ass...
public Integer getFssCacheUpdateTimeoutMinutes() { if (fssCacheUpdateTimeoutMinutes == null) { fssCacheUpdateTimeoutMinutes = getFssCacheUpdateTimeoutMinutesFromEnvironment(); } return fssCacheUpdateTimeoutMinutes; }
ApplicationConfiguration { public Integer getFssCacheUpdateTimeoutMinutes() { if (fssCacheUpdateTimeoutMinutes == null) { fssCacheUpdateTimeoutMinutes = getFssCacheUpdateTimeoutMinutesFromEnvironment(); } return fssCacheUpdateTimeoutMinutes; } }
ApplicationConfiguration { public Integer getFssCacheUpdateTimeoutMinutes() { if (fssCacheUpdateTimeoutMinutes == null) { fssCacheUpdateTimeoutMinutes = getFssCacheUpdateTimeoutMinutesFromEnvironment(); } return fssCacheUpdateTimeoutMinutes; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment en...
ApplicationConfiguration { public Integer getFssCacheUpdateTimeoutMinutes() { if (fssCacheUpdateTimeoutMinutes == null) { fssCacheUpdateTimeoutMinutes = getFssCacheUpdateTimeoutMinutesFromEnvironment(); } return fssCacheUpdateTimeoutMinutes; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment en...
ApplicationConfiguration { public Integer getFssCacheUpdateTimeoutMinutes() { if (fssCacheUpdateTimeoutMinutes == null) { fssCacheUpdateTimeoutMinutes = getFssCacheUpdateTimeoutMinutesFromEnvironment(); } return fssCacheUpdateTimeoutMinutes; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment en...
@Test void testAddWithNonEmptyDatabase() { addProgressMessages(List.of(PROGRESS_MESSAGE_1, PROGRESS_MESSAGE_2)); assertProgressMessageExists(PROGRESS_MESSAGE_1.getId()); assertProgressMessageExists(PROGRESS_MESSAGE_2.getId()); assertEquals(2, progressMessageService.createQuery() .list() .size()); }
public ProgressMessageQuery createQuery() { return new ProgressMessageQueryImpl(createEntityManager(), progressMessageMapper); }
ProgressMessageService extends PersistenceService<ProgressMessage, ProgressMessageDto, Long> { public ProgressMessageQuery createQuery() { return new ProgressMessageQueryImpl(createEntityManager(), progressMessageMapper); } }
ProgressMessageService extends PersistenceService<ProgressMessage, ProgressMessageDto, Long> { public ProgressMessageQuery createQuery() { return new ProgressMessageQueryImpl(createEntityManager(), progressMessageMapper); } @Inject ProgressMessageService(EntityManagerFactory entityManagerFactory); }
ProgressMessageService extends PersistenceService<ProgressMessage, ProgressMessageDto, Long> { public ProgressMessageQuery createQuery() { return new ProgressMessageQueryImpl(createEntityManager(), progressMessageMapper); } @Inject ProgressMessageService(EntityManagerFactory entityManagerFactory); ProgressMessageQuery...
ProgressMessageService extends PersistenceService<ProgressMessage, ProgressMessageDto, Long> { public ProgressMessageQuery createQuery() { return new ProgressMessageQueryImpl(createEntityManager(), progressMessageMapper); } @Inject ProgressMessageService(EntityManagerFactory entityManagerFactory); ProgressMessageQuery...
@Test void testGetSpaceDeveloperCacheExpirationInSeconds() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_SPACE_DEVELOPER_CACHE_TIME_IN_SECONDS, ApplicationConfiguration.DEFAULT_SPACE_DEVELOPER_CACHE_TIME_IN_SECONDS)) .thenReturn(ApplicationConfiguration.DEFAULT_SPACE_DEVELOPER_CACHE_TIME_IN...
public Integer getSpaceDeveloperCacheExpirationInSeconds() { if (spaceDeveloperCacheTimeInSeconds == null) { spaceDeveloperCacheTimeInSeconds = getSpaceDeveloperCacheTimeInSecondsFromEnvironment(); } return spaceDeveloperCacheTimeInSeconds; }
ApplicationConfiguration { public Integer getSpaceDeveloperCacheExpirationInSeconds() { if (spaceDeveloperCacheTimeInSeconds == null) { spaceDeveloperCacheTimeInSeconds = getSpaceDeveloperCacheTimeInSecondsFromEnvironment(); } return spaceDeveloperCacheTimeInSeconds; } }
ApplicationConfiguration { public Integer getSpaceDeveloperCacheExpirationInSeconds() { if (spaceDeveloperCacheTimeInSeconds == null) { spaceDeveloperCacheTimeInSeconds = getSpaceDeveloperCacheTimeInSecondsFromEnvironment(); } return spaceDeveloperCacheTimeInSeconds; } ApplicationConfiguration(); @Inject ApplicationCo...
ApplicationConfiguration { public Integer getSpaceDeveloperCacheExpirationInSeconds() { if (spaceDeveloperCacheTimeInSeconds == null) { spaceDeveloperCacheTimeInSeconds = getSpaceDeveloperCacheTimeInSecondsFromEnvironment(); } return spaceDeveloperCacheTimeInSeconds; } ApplicationConfiguration(); @Inject ApplicationCo...
ApplicationConfiguration { public Integer getSpaceDeveloperCacheExpirationInSeconds() { if (spaceDeveloperCacheTimeInSeconds == null) { spaceDeveloperCacheTimeInSeconds = getSpaceDeveloperCacheTimeInSecondsFromEnvironment(); } return spaceDeveloperCacheTimeInSeconds; } ApplicationConfiguration(); @Inject ApplicationCo...
@Test void testGetControllerClientConnectionPoolSize() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_CONTROLLER_CLIENT_CONNECTION_POOL_SIZE, ApplicationConfiguration.DEFAULT_CONTROLLER_CLIENT_CONNECTION_POOL_SIZE)) .thenReturn(ApplicationConfiguration.DEFAULT_CONTROLLER_CLIENT_CONNECTION_PO...
public Integer getControllerClientConnectionPoolSize() { if (controllerClientConnectionPoolSize == null) { controllerClientConnectionPoolSize = getControllerClientConnectionPoolSizeFromEnvironment(); } return controllerClientConnectionPoolSize; }
ApplicationConfiguration { public Integer getControllerClientConnectionPoolSize() { if (controllerClientConnectionPoolSize == null) { controllerClientConnectionPoolSize = getControllerClientConnectionPoolSizeFromEnvironment(); } return controllerClientConnectionPoolSize; } }
ApplicationConfiguration { public Integer getControllerClientConnectionPoolSize() { if (controllerClientConnectionPoolSize == null) { controllerClientConnectionPoolSize = getControllerClientConnectionPoolSizeFromEnvironment(); } return controllerClientConnectionPoolSize; } ApplicationConfiguration(); @Inject Applicati...
ApplicationConfiguration { public Integer getControllerClientConnectionPoolSize() { if (controllerClientConnectionPoolSize == null) { controllerClientConnectionPoolSize = getControllerClientConnectionPoolSizeFromEnvironment(); } return controllerClientConnectionPoolSize; } ApplicationConfiguration(); @Inject Applicati...
ApplicationConfiguration { public Integer getControllerClientConnectionPoolSize() { if (controllerClientConnectionPoolSize == null) { controllerClientConnectionPoolSize = getControllerClientConnectionPoolSizeFromEnvironment(); } return controllerClientConnectionPoolSize; } ApplicationConfiguration(); @Inject Applicati...
@Test void testGetControllerClientThreadPoolSize() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_CONTROLLER_CLIENT_THREAD_POOL_SIZE, ApplicationConfiguration.DEFAULT_CONTROLLER_CLIENT_THREAD_POOL_SIZE)) .thenReturn(ApplicationConfiguration.DEFAULT_CONTROLLER_CLIENT_THREAD_POOL_SIZE); Assert...
public Integer getControllerClientThreadPoolSize() { if (controllerClientThreadPoolSize == null) { controllerClientThreadPoolSize = getControllerClientThreadPoolSizeFromEnvironment(); } return controllerClientThreadPoolSize; }
ApplicationConfiguration { public Integer getControllerClientThreadPoolSize() { if (controllerClientThreadPoolSize == null) { controllerClientThreadPoolSize = getControllerClientThreadPoolSizeFromEnvironment(); } return controllerClientThreadPoolSize; } }
ApplicationConfiguration { public Integer getControllerClientThreadPoolSize() { if (controllerClientThreadPoolSize == null) { controllerClientThreadPoolSize = getControllerClientThreadPoolSizeFromEnvironment(); } return controllerClientThreadPoolSize; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Envi...
ApplicationConfiguration { public Integer getControllerClientThreadPoolSize() { if (controllerClientThreadPoolSize == null) { controllerClientThreadPoolSize = getControllerClientThreadPoolSizeFromEnvironment(); } return controllerClientThreadPoolSize; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Envi...
ApplicationConfiguration { public Integer getControllerClientThreadPoolSize() { if (controllerClientThreadPoolSize == null) { controllerClientThreadPoolSize = getControllerClientThreadPoolSizeFromEnvironment(); } return controllerClientThreadPoolSize; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Envi...
@Test void testGetSnakeyamlMaxAliasesForCollections() { Mockito.when(environment.getPositiveInteger(ApplicationConfiguration.CFG_SNAKEYAML_MAX_ALIASES_FOR_COLLECTIONS, ApplicationConfiguration.DEFAULT_SNAKEYAML_MAX_ALIASES_FOR_COLLECTIONS)) .thenReturn(ApplicationConfiguration.DEFAULT_SNAKEYAML_MAX_ALIASES_FOR_COLLECTI...
public Integer getSnakeyamlMaxAliasesForCollections() { if (snakeyamlMaxAliasesForCollections == null) { snakeyamlMaxAliasesForCollections = getSnakeyamlMaxAliasesForCollectionsFromEnvironment(); } return snakeyamlMaxAliasesForCollections; }
ApplicationConfiguration { public Integer getSnakeyamlMaxAliasesForCollections() { if (snakeyamlMaxAliasesForCollections == null) { snakeyamlMaxAliasesForCollections = getSnakeyamlMaxAliasesForCollectionsFromEnvironment(); } return snakeyamlMaxAliasesForCollections; } }
ApplicationConfiguration { public Integer getSnakeyamlMaxAliasesForCollections() { if (snakeyamlMaxAliasesForCollections == null) { snakeyamlMaxAliasesForCollections = getSnakeyamlMaxAliasesForCollectionsFromEnvironment(); } return snakeyamlMaxAliasesForCollections; } ApplicationConfiguration(); @Inject ApplicationCon...
ApplicationConfiguration { public Integer getSnakeyamlMaxAliasesForCollections() { if (snakeyamlMaxAliasesForCollections == null) { snakeyamlMaxAliasesForCollections = getSnakeyamlMaxAliasesForCollectionsFromEnvironment(); } return snakeyamlMaxAliasesForCollections; } ApplicationConfiguration(); @Inject ApplicationCon...
ApplicationConfiguration { public Integer getSnakeyamlMaxAliasesForCollections() { if (snakeyamlMaxAliasesForCollections == null) { snakeyamlMaxAliasesForCollections = getSnakeyamlMaxAliasesForCollectionsFromEnvironment(); } return snakeyamlMaxAliasesForCollections; } ApplicationConfiguration(); @Inject ApplicationCon...
@Test void testIsInternalEnvironment() { Mockito.when(environment.getBoolean(ApplicationConfiguration.SAP_INTERNAL_DELIVERY, ApplicationConfiguration.DEFAULT_SAP_INTERNAL_DELIVERY)) .thenReturn(true); Assertions.assertTrue(configuration.isInternalEnvironment()); }
public Boolean isInternalEnvironment() { return environment.getBoolean(SAP_INTERNAL_DELIVERY, DEFAULT_SAP_INTERNAL_DELIVERY); }
ApplicationConfiguration { public Boolean isInternalEnvironment() { return environment.getBoolean(SAP_INTERNAL_DELIVERY, DEFAULT_SAP_INTERNAL_DELIVERY); } }
ApplicationConfiguration { public Boolean isInternalEnvironment() { return environment.getBoolean(SAP_INTERNAL_DELIVERY, DEFAULT_SAP_INTERNAL_DELIVERY); } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public Boolean isInternalEnvironment() { return environment.getBoolean(SAP_INTERNAL_DELIVERY, DEFAULT_SAP_INTERNAL_DELIVERY); } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Configuration ge...
ApplicationConfiguration { public Boolean isInternalEnvironment() { return environment.getBoolean(SAP_INTERNAL_DELIVERY, DEFAULT_SAP_INTERNAL_DELIVERY); } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Configuration ge...
@Test void testGetCloudComponentsInvalidJson() { Mockito.when(environment.getString(ApplicationConfiguration.SUPPORT_COMPONENTS)) .thenReturn("Invalid json"); Map<String, Object> cloudComponents = configuration.getCloudComponents(); Assertions.assertEquals(0, cloudComponents.size()); }
public Map<String, Object> getCloudComponents() { String value = environment.getString(SUPPORT_COMPONENTS); try { return JsonUtil.convertJsonToMap(value); } catch (ParsingException e) { LOGGER.warn(format(Messages.INVALID_SUPPORT_COMPONENTS, value), e); return Collections.emptyMap(); } }
ApplicationConfiguration { public Map<String, Object> getCloudComponents() { String value = environment.getString(SUPPORT_COMPONENTS); try { return JsonUtil.convertJsonToMap(value); } catch (ParsingException e) { LOGGER.warn(format(Messages.INVALID_SUPPORT_COMPONENTS, value), e); return Collections.emptyMap(); } } }
ApplicationConfiguration { public Map<String, Object> getCloudComponents() { String value = environment.getString(SUPPORT_COMPONENTS); try { return JsonUtil.convertJsonToMap(value); } catch (ParsingException e) { LOGGER.warn(format(Messages.INVALID_SUPPORT_COMPONENTS, value), e); return Collections.emptyMap(); } } Appl...
ApplicationConfiguration { public Map<String, Object> getCloudComponents() { String value = environment.getString(SUPPORT_COMPONENTS); try { return JsonUtil.convertJsonToMap(value); } catch (ParsingException e) { LOGGER.warn(format(Messages.INVALID_SUPPORT_COMPONENTS, value), e); return Collections.emptyMap(); } } Appl...
ApplicationConfiguration { public Map<String, Object> getCloudComponents() { String value = environment.getString(SUPPORT_COMPONENTS); try { return JsonUtil.convertJsonToMap(value); } catch (ParsingException e) { LOGGER.warn(format(Messages.INVALID_SUPPORT_COMPONENTS, value), e); return Collections.emptyMap(); } } Appl...
@Test void testGetCloudComponentsValidJson() { Map<String, Object> cloudComponentsMap = injectFileInEnvironment(CLOUD_COMPONENTS, ApplicationConfiguration.SUPPORT_COMPONENTS); Map<String, Object> cloudComponents = configuration.getCloudComponents(); Assertions.assertTrue(Maps.difference(cloudComponentsMap, cloudCompone...
public Map<String, Object> getCloudComponents() { String value = environment.getString(SUPPORT_COMPONENTS); try { return JsonUtil.convertJsonToMap(value); } catch (ParsingException e) { LOGGER.warn(format(Messages.INVALID_SUPPORT_COMPONENTS, value), e); return Collections.emptyMap(); } }
ApplicationConfiguration { public Map<String, Object> getCloudComponents() { String value = environment.getString(SUPPORT_COMPONENTS); try { return JsonUtil.convertJsonToMap(value); } catch (ParsingException e) { LOGGER.warn(format(Messages.INVALID_SUPPORT_COMPONENTS, value), e); return Collections.emptyMap(); } } }
ApplicationConfiguration { public Map<String, Object> getCloudComponents() { String value = environment.getString(SUPPORT_COMPONENTS); try { return JsonUtil.convertJsonToMap(value); } catch (ParsingException e) { LOGGER.warn(format(Messages.INVALID_SUPPORT_COMPONENTS, value), e); return Collections.emptyMap(); } } Appl...
ApplicationConfiguration { public Map<String, Object> getCloudComponents() { String value = environment.getString(SUPPORT_COMPONENTS); try { return JsonUtil.convertJsonToMap(value); } catch (ParsingException e) { LOGGER.warn(format(Messages.INVALID_SUPPORT_COMPONENTS, value), e); return Collections.emptyMap(); } } Appl...
ApplicationConfiguration { public Map<String, Object> getCloudComponents() { String value = environment.getString(SUPPORT_COMPONENTS); try { return JsonUtil.convertJsonToMap(value); } catch (ParsingException e) { LOGGER.warn(format(Messages.INVALID_SUPPORT_COMPONENTS, value), e); return Collections.emptyMap(); } } Appl...
@Test void testGetInternalSupportChannel() { String internalSupportChannel = "internal-support-channel"; Mockito.when(environment.getString(ApplicationConfiguration.INTERNAL_SUPPORT_CHANNEL)) .thenReturn(internalSupportChannel); Assertions.assertEquals(internalSupportChannel, configuration.getInternalSupportChannel());...
public String getInternalSupportChannel() { return environment.getString(INTERNAL_SUPPORT_CHANNEL); }
ApplicationConfiguration { public String getInternalSupportChannel() { return environment.getString(INTERNAL_SUPPORT_CHANNEL); } }
ApplicationConfiguration { public String getInternalSupportChannel() { return environment.getString(INTERNAL_SUPPORT_CHANNEL); } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public String getInternalSupportChannel() { return environment.getString(INTERNAL_SUPPORT_CHANNEL); } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Configuration getFileConfiguration(); URL ...
ApplicationConfiguration { public String getInternalSupportChannel() { return environment.getString(INTERNAL_SUPPORT_CHANNEL); } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Configuration getFileConfiguration(); URL ...
@Test void testGetCertificateCN() { String certificateCN = "cert-cn"; Mockito.when(environment.getString(ApplicationConfiguration.CFG_CERTIFICATE_CN)) .thenReturn(certificateCN); Assertions.assertEquals(certificateCN, configuration.getCertificateCN()); }
public String getCertificateCN() { if (certificateCN == null) { certificateCN = getCertificateCNFromEnvironment(); } return certificateCN; }
ApplicationConfiguration { public String getCertificateCN() { if (certificateCN == null) { certificateCN = getCertificateCNFromEnvironment(); } return certificateCN; } }
ApplicationConfiguration { public String getCertificateCN() { if (certificateCN == null) { certificateCN = getCertificateCNFromEnvironment(); } return certificateCN; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); }
ApplicationConfiguration { public String getCertificateCN() { if (certificateCN == null) { certificateCN = getCertificateCNFromEnvironment(); } return certificateCN; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Con...
ApplicationConfiguration { public String getCertificateCN() { if (certificateCN == null) { certificateCN = getCertificateCNFromEnvironment(); } return certificateCN; } ApplicationConfiguration(); @Inject ApplicationConfiguration(Environment environment); void load(); Map<String, String> getNotSensitiveVariables(); Con...
@Test void testGetFilteredEnv() { Map<String, String> filteredEnvironment = new HashMap<>(); filteredEnvironment.put(ApplicationConfiguration.CFG_MAX_MTA_DESCRIPTOR_SIZE, "1024"); Mockito.when(environment.getAllVariables()) .thenReturn(filteredEnvironment); Map<String, String> filteredEnv = configuration.getNotSensitiv...
public Map<String, String> getNotSensitiveVariables() { Set<String> notSensitiveConfigVariables = getNotSensitiveConfigVariables(); Map<String, String> env = environment.getAllVariables(); return env.entrySet() .stream() .filter(envVariable -> notSensitiveConfigVariables.contains(envVariable.getKey())) .collect(Collect...
ApplicationConfiguration { public Map<String, String> getNotSensitiveVariables() { Set<String> notSensitiveConfigVariables = getNotSensitiveConfigVariables(); Map<String, String> env = environment.getAllVariables(); return env.entrySet() .stream() .filter(envVariable -> notSensitiveConfigVariables.contains(envVariable....
ApplicationConfiguration { public Map<String, String> getNotSensitiveVariables() { Set<String> notSensitiveConfigVariables = getNotSensitiveConfigVariables(); Map<String, String> env = environment.getAllVariables(); return env.entrySet() .stream() .filter(envVariable -> notSensitiveConfigVariables.contains(envVariable....
ApplicationConfiguration { public Map<String, String> getNotSensitiveVariables() { Set<String> notSensitiveConfigVariables = getNotSensitiveConfigVariables(); Map<String, String> env = environment.getAllVariables(); return env.entrySet() .stream() .filter(envVariable -> notSensitiveConfigVariables.contains(envVariable....
ApplicationConfiguration { public Map<String, String> getNotSensitiveVariables() { Set<String> notSensitiveConfigVariables = getNotSensitiveConfigVariables(); Map<String, String> env = environment.getAllVariables(); return env.entrySet() .stream() .filter(envVariable -> notSensitiveConfigVariables.contains(envVariable....
@Test void addFileTest() throws Exception { FileEntry fileEntry = addFile(TEST_FILE_LOCATION); assertFileExists(true, fileEntry); }
@Override public void addFile(FileEntry fileEntry, File file) throws FileStorageException { String entryName = fileEntry.getId(); long fileSize = fileEntry.getSize() .longValue(); Blob blob = blobStore.blobBuilder(entryName) .payload(file) .contentDisposition(fileEntry.getName()) .contentType(MediaType.OCTET_STREAM.toS...
ObjectStoreFileStorage implements FileStorage { @Override public void addFile(FileEntry fileEntry, File file) throws FileStorageException { String entryName = fileEntry.getId(); long fileSize = fileEntry.getSize() .longValue(); Blob blob = blobStore.blobBuilder(entryName) .payload(file) .contentDisposition(fileEntry.ge...
ObjectStoreFileStorage implements FileStorage { @Override public void addFile(FileEntry fileEntry, File file) throws FileStorageException { String entryName = fileEntry.getId(); long fileSize = fileEntry.getSize() .longValue(); Blob blob = blobStore.blobBuilder(entryName) .payload(file) .contentDisposition(fileEntry.ge...
ObjectStoreFileStorage implements FileStorage { @Override public void addFile(FileEntry fileEntry, File file) throws FileStorageException { String entryName = fileEntry.getId(); long fileSize = fileEntry.getSize() .longValue(); Blob blob = blobStore.blobBuilder(entryName) .payload(file) .contentDisposition(fileEntry.ge...
ObjectStoreFileStorage implements FileStorage { @Override public void addFile(FileEntry fileEntry, File file) throws FileStorageException { String entryName = fileEntry.getId(); long fileSize = fileEntry.getSize() .longValue(); Blob blob = blobStore.blobBuilder(entryName) .payload(file) .contentDisposition(fileEntry.ge...
@Test void testLoad() { Map<String, Object> vcapApplication = injectFileInEnvironment(VCAP_APPLICATION, ApplicationConfiguration.CFG_VCAP_APPLICATION); configuration.load(); Assertions.assertEquals(vcapApplication.get("cf_api"), configuration.getControllerUrl() .toString()); }
public void load() { getControllerUrl(); getMaxUploadSize(); getMaxMtaDescriptorSize(); getMaxManifestSize(); getMaxResourceFileSize(); shouldUseXSAuditLogging(); getSpaceGuid(); getOrgName(); getDeployServiceUrl(); isBasicAuthEnabled(); getGlobalAuditorUser(); getGlobalAuditorPassword(); getDbConnectionThreads(); getS...
ApplicationConfiguration { public void load() { getControllerUrl(); getMaxUploadSize(); getMaxMtaDescriptorSize(); getMaxManifestSize(); getMaxResourceFileSize(); shouldUseXSAuditLogging(); getSpaceGuid(); getOrgName(); getDeployServiceUrl(); isBasicAuthEnabled(); getGlobalAuditorUser(); getGlobalAuditorPassword(); get...
ApplicationConfiguration { public void load() { getControllerUrl(); getMaxUploadSize(); getMaxMtaDescriptorSize(); getMaxManifestSize(); getMaxResourceFileSize(); shouldUseXSAuditLogging(); getSpaceGuid(); getOrgName(); getDeployServiceUrl(); isBasicAuthEnabled(); getGlobalAuditorUser(); getGlobalAuditorPassword(); get...
ApplicationConfiguration { public void load() { getControllerUrl(); getMaxUploadSize(); getMaxMtaDescriptorSize(); getMaxManifestSize(); getMaxResourceFileSize(); shouldUseXSAuditLogging(); getSpaceGuid(); getOrgName(); getDeployServiceUrl(); isBasicAuthEnabled(); getGlobalAuditorUser(); getGlobalAuditorPassword(); get...
ApplicationConfiguration { public void load() { getControllerUrl(); getMaxUploadSize(); getMaxMtaDescriptorSize(); getMaxManifestSize(); getMaxResourceFileSize(); shouldUseXSAuditLogging(); getSpaceGuid(); getOrgName(); getDeployServiceUrl(); isBasicAuthEnabled(); getGlobalAuditorUser(); getGlobalAuditorPassword(); get...
@Test void testGetParameterName() { assertEquals("restart-on-env-change", validator.getParameterName()); }
@Override public String getParameterName() { return SupportedParameters.RESTART_ON_ENV_CHANGE; }
RestartOnEnvChangeValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.RESTART_ON_ENV_CHANGE; } }
RestartOnEnvChangeValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.RESTART_ON_ENV_CHANGE; } }
RestartOnEnvChangeValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.RESTART_ON_ENV_CHANGE; } @Override boolean isValid(Object restartParameters, final Map<String, Object> context); @Override Class<?> getContainerType(); @Override String getParameterName()...
RestartOnEnvChangeValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.RESTART_ON_ENV_CHANGE; } @Override boolean isValid(Object restartParameters, final Map<String, Object> context); @Override Class<?> getContainerType(); @Override String getParameterName()...
@Test void testGetContainerType() { assertTrue(validator.getContainerType() .isAssignableFrom(Module.class)); }
@Override public Class<?> getContainerType() { return Module.class; }
RestartOnEnvChangeValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } }
RestartOnEnvChangeValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } }
RestartOnEnvChangeValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } @Override boolean isValid(Object restartParameters, final Map<String, Object> context); @Override Class<?> getContainerType(); @Override String getParameterName(); }
RestartOnEnvChangeValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } @Override boolean isValid(Object restartParameters, final Map<String, Object> context); @Override Class<?> getContainerType(); @Override String getParameterName(); }
@Test void testGetParameterName() { assertEquals("host", validator.getParameterName()); }
@Override public String getParameterName() { return SupportedParameters.HOST; }
HostValidator extends RoutePartValidator { @Override public String getParameterName() { return SupportedParameters.HOST; } }
HostValidator extends RoutePartValidator { @Override public String getParameterName() { return SupportedParameters.HOST; } }
HostValidator extends RoutePartValidator { @Override public String getParameterName() { return SupportedParameters.HOST; } @Override String getParameterName(); }
HostValidator extends RoutePartValidator { @Override public String getParameterName() { return SupportedParameters.HOST; } @Override String getParameterName(); }
@Test void testGetContainerType() { assertTrue(new TasksValidator().getContainerType() .isAssignableFrom(Module.class)); }
@Override public Class<?> getContainerType() { return Module.class; }
TasksValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } }
TasksValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } }
TasksValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } @SuppressWarnings("unchecked") @Override boolean isValid(Object tasks, final Map<String, Object> context); @Override Class<?> getContainerType(); @Override String getParameterName(); }
TasksValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } @SuppressWarnings("unchecked") @Override boolean isValid(Object tasks, final Map<String, Object> context); @Override Class<?> getContainerType(); @Override String getParameterName(); static final String...
@Test void testCanCorrect() { assertTrue(validator.canCorrect()); }
@Override public boolean canCorrect() { return validators.stream() .map(ParameterValidator::canCorrect) .reduce(false, Boolean::logicalOr); }
RouteValidator implements ParameterValidator { @Override public boolean canCorrect() { return validators.stream() .map(ParameterValidator::canCorrect) .reduce(false, Boolean::logicalOr); } }
RouteValidator implements ParameterValidator { @Override public boolean canCorrect() { return validators.stream() .map(ParameterValidator::canCorrect) .reduce(false, Boolean::logicalOr); } RouteValidator(); }
RouteValidator implements ParameterValidator { @Override public boolean canCorrect() { return validators.stream() .map(ParameterValidator::canCorrect) .reduce(false, Boolean::logicalOr); } RouteValidator(); @Override String attemptToCorrect(Object route, final Map<String, Object> context); @Override boolean isValid(Obj...
RouteValidator implements ParameterValidator { @Override public boolean canCorrect() { return validators.stream() .map(ParameterValidator::canCorrect) .reduce(false, Boolean::logicalOr); } RouteValidator(); @Override String attemptToCorrect(Object route, final Map<String, Object> context); @Override boolean isValid(Obj...
@Test void testGetParameterName() { assertEquals("route", validator.getParameterName()); }
@Override public String getParameterName() { return SupportedParameters.ROUTE; }
RouteValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.ROUTE; } }
RouteValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.ROUTE; } RouteValidator(); }
RouteValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.ROUTE; } RouteValidator(); @Override String attemptToCorrect(Object route, final Map<String, Object> context); @Override boolean isValid(Object route, final Map<String, Object> context); @Override Stri...
RouteValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.ROUTE; } RouteValidator(); @Override String attemptToCorrect(Object route, final Map<String, Object> context); @Override boolean isValid(Object route, final Map<String, Object> context); @Override Stri...
@Test void testGetContainerType() { assertTrue(validator.getContainerType() .isAssignableFrom(Module.class)); }
@Override public Class<?> getContainerType() { return Module.class; }
RouteValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } }
RouteValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } RouteValidator(); }
RouteValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } RouteValidator(); @Override String attemptToCorrect(Object route, final Map<String, Object> context); @Override boolean isValid(Object route, final Map<String, Object> context); @Override String getParam...
RouteValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } RouteValidator(); @Override String attemptToCorrect(Object route, final Map<String, Object> context); @Override boolean isValid(Object route, final Map<String, Object> context); @Override String getParam...
@Test void testGetParameterName() { assertEquals("domain", validator.getParameterName()); }
@Override public String getParameterName() { return SupportedParameters.DOMAIN; }
DomainValidator extends RoutePartValidator { @Override public String getParameterName() { return SupportedParameters.DOMAIN; } }
DomainValidator extends RoutePartValidator { @Override public String getParameterName() { return SupportedParameters.DOMAIN; } }
DomainValidator extends RoutePartValidator { @Override public String getParameterName() { return SupportedParameters.DOMAIN; } @Override String getParameterName(); }
DomainValidator extends RoutePartValidator { @Override public String getParameterName() { return SupportedParameters.DOMAIN; } @Override String getParameterName(); }
@Test void testGetParameterName() { assertEquals("visibility", validator.getParameterName()); }
@Override public String getParameterName() { return SupportedParameters.VISIBILITY; }
VisibilityValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.VISIBILITY; } }
VisibilityValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.VISIBILITY; } }
VisibilityValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.VISIBILITY; } @Override boolean isValid(Object visibleTargets, final Map<String, Object> context); @Override Class<?> getContainerType(); @Override String getParameterName(); }
VisibilityValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.VISIBILITY; } @Override boolean isValid(Object visibleTargets, final Map<String, Object> context); @Override Class<?> getContainerType(); @Override String getParameterName(); }
@Test void getFileEntriesWithoutContent() throws Exception { List<FileEntry> fileEntries = new ArrayList<>(); FileEntry existingFile = addFile(TEST_FILE_LOCATION); fileEntries.add(existingFile); FileEntry existingFile2 = addFile(SECOND_FILE_TEST_LOCATION); fileEntries.add(existingFile2); FileEntry nonExistingFile = cre...
@Override public List<FileEntry> getFileEntriesWithoutContent(List<FileEntry> fileEntries) { Set<String> existingFiles = blobStore.list(container) .stream() .map(StorageMetadata::getName) .collect(Collectors.toSet()); return fileEntries.stream() .filter(fileEntry -> { String id = fileEntry.getId(); return !existingFile...
ObjectStoreFileStorage implements FileStorage { @Override public List<FileEntry> getFileEntriesWithoutContent(List<FileEntry> fileEntries) { Set<String> existingFiles = blobStore.list(container) .stream() .map(StorageMetadata::getName) .collect(Collectors.toSet()); return fileEntries.stream() .filter(fileEntry -> { Str...
ObjectStoreFileStorage implements FileStorage { @Override public List<FileEntry> getFileEntriesWithoutContent(List<FileEntry> fileEntries) { Set<String> existingFiles = blobStore.list(container) .stream() .map(StorageMetadata::getName) .collect(Collectors.toSet()); return fileEntries.stream() .filter(fileEntry -> { Str...
ObjectStoreFileStorage implements FileStorage { @Override public List<FileEntry> getFileEntriesWithoutContent(List<FileEntry> fileEntries) { Set<String> existingFiles = blobStore.list(container) .stream() .map(StorageMetadata::getName) .collect(Collectors.toSet()); return fileEntries.stream() .filter(fileEntry -> { Str...
ObjectStoreFileStorage implements FileStorage { @Override public List<FileEntry> getFileEntriesWithoutContent(List<FileEntry> fileEntries) { Set<String> existingFiles = blobStore.list(container) .stream() .map(StorageMetadata::getName) .collect(Collectors.toSet()); return fileEntries.stream() .filter(fileEntry -> { Str...
@Test void testGetContainerType() { assertTrue(validator.getContainerType() .isAssignableFrom(ProvidedDependency.class)); }
@Override public Class<?> getContainerType() { return ProvidedDependency.class; }
VisibilityValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return ProvidedDependency.class; } }
VisibilityValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return ProvidedDependency.class; } }
VisibilityValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return ProvidedDependency.class; } @Override boolean isValid(Object visibleTargets, final Map<String, Object> context); @Override Class<?> getContainerType(); @Override String getParameterName(); }
VisibilityValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return ProvidedDependency.class; } @Override boolean isValid(Object visibleTargets, final Map<String, Object> context); @Override Class<?> getContainerType(); @Override String getParameterName(); }
@Test void testDescriptorValidator() { Module module = buildModule(); DeploymentDescriptor descriptor = buildDeploymentDescriptor(module); prepareModuleParametersCompatabilityValidator(module); DescriptorParametersCompatabilityValidator descriptorValidator = new DescriptorParametersCompatabilityValidator(descriptor, us...
@Override public DeploymentDescriptor validate() { DeploymentDescriptor castedDescriptor = this.descriptor; validate(castedDescriptor); return castedDescriptor; }
DescriptorParametersCompatabilityValidator extends CompatabilityParametersValidator<DeploymentDescriptor> { @Override public DeploymentDescriptor validate() { DeploymentDescriptor castedDescriptor = this.descriptor; validate(castedDescriptor); return castedDescriptor; } }
DescriptorParametersCompatabilityValidator extends CompatabilityParametersValidator<DeploymentDescriptor> { @Override public DeploymentDescriptor validate() { DeploymentDescriptor castedDescriptor = this.descriptor; validate(castedDescriptor); return castedDescriptor; } DescriptorParametersCompatabilityValidator(Deploy...
DescriptorParametersCompatabilityValidator extends CompatabilityParametersValidator<DeploymentDescriptor> { @Override public DeploymentDescriptor validate() { DeploymentDescriptor castedDescriptor = this.descriptor; validate(castedDescriptor); return castedDescriptor; } DescriptorParametersCompatabilityValidator(Deploy...
DescriptorParametersCompatabilityValidator extends CompatabilityParametersValidator<DeploymentDescriptor> { @Override public DeploymentDescriptor validate() { DeploymentDescriptor castedDescriptor = this.descriptor; validate(castedDescriptor); return castedDescriptor; } DescriptorParametersCompatabilityValidator(Deploy...
@Test void testCorrectionWithNoNamespaces() { ApplicationNameValidator applicationNameValidator = new ApplicationNameValidator(null, false); String result = (String) applicationNameValidator.attemptToCorrect(APPLICATION_NAME, CONTEXT_DO_NOT_APPLY_NAMESPACE); assertEquals(APPLICATION_NAME, result); }
@Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boolean applyNamespaceLocal = MapUtil.parseBooleanFlag(relat...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
@Test void testCorrectionWithNamespaces() { ApplicationNameValidator applicationNameValidator = new ApplicationNameValidator(NAMESPACE, true); String result = (String) applicationNameValidator.attemptToCorrect(APPLICATION_NAME, CONTEXT_APPLY_NAMESPACE); assertEquals(String.format("%s" + Constants.NAMESPACE_SEPARATOR + ...
@Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boolean applyNamespaceLocal = MapUtil.parseBooleanFlag(relat...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
@Test void testCorrectionWithExplicitApplyNamespaceFalse() { ApplicationNameValidator applicationNameValidator = new ApplicationNameValidator(NAMESPACE, true); String result = (String) applicationNameValidator.attemptToCorrect(APPLICATION_NAME, CONTEXT_DO_NOT_APPLY_NAMESPACE); assertEquals(APPLICATION_NAME, result); }
@Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boolean applyNamespaceLocal = MapUtil.parseBooleanFlag(relat...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
@Test void testCorrectionWithInvalidApplicationName() { ApplicationNameValidator applicationNameValidator = new ApplicationNameValidator(NAMESPACE, false); assertThrows(ContentException.class, () -> applicationNameValidator.attemptToCorrect(Collections.emptyList(), CONTEXT_DO_NOT_APPLY_NAMESPACE)); }
@Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boolean applyNamespaceLocal = MapUtil.parseBooleanFlag(relat...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
ApplicationNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object applicationName, final Map<String, Object> relatedParameters) { if (!(applicationName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_APPLICATION_NAME_FROM_0, applicationName); } boo...
@Test void testValidation() { ApplicationNameValidator applicationNameValidator = new ApplicationNameValidator(NAMESPACE, false); assertFalse(applicationNameValidator.isValid(APPLICATION_NAME, CONTEXT_DO_NOT_APPLY_NAMESPACE)); }
@Override public boolean isValid(Object applicationName, final Map<String, Object> context) { return false; }
ApplicationNameValidator implements ParameterValidator { @Override public boolean isValid(Object applicationName, final Map<String, Object> context) { return false; } }
ApplicationNameValidator implements ParameterValidator { @Override public boolean isValid(Object applicationName, final Map<String, Object> context) { return false; } ApplicationNameValidator(String namespace, boolean applyNamespace); }
ApplicationNameValidator implements ParameterValidator { @Override public boolean isValid(Object applicationName, final Map<String, Object> context) { return false; } ApplicationNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override...
ApplicationNameValidator implements ParameterValidator { @Override public boolean isValid(Object applicationName, final Map<String, Object> context) { return false; } ApplicationNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override...
@Test void testGetContainerType() { ApplicationNameValidator applicationNameValidator = new ApplicationNameValidator(NAMESPACE, false); assertEquals(Module.class, applicationNameValidator.getContainerType()); }
@Override public Class<?> getContainerType() { return Module.class; }
ApplicationNameValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } }
ApplicationNameValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } ApplicationNameValidator(String namespace, boolean applyNamespace); }
ApplicationNameValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } ApplicationNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isValid(Object applicationName,...
ApplicationNameValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Module.class; } ApplicationNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isValid(Object applicationName,...
@Test void testGetParameterName() { ApplicationNameValidator applicationNameValidator = new ApplicationNameValidator(NAMESPACE, false); assertEquals(SupportedParameters.APP_NAME, applicationNameValidator.getParameterName()); }
@Override public String getParameterName() { return SupportedParameters.APP_NAME; }
ApplicationNameValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.APP_NAME; } }
ApplicationNameValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.APP_NAME; } ApplicationNameValidator(String namespace, boolean applyNamespace); }
ApplicationNameValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.APP_NAME; } ApplicationNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isValid(Object ap...
ApplicationNameValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.APP_NAME; } ApplicationNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isValid(Object ap...
@Test void testCanCorrect() { ApplicationNameValidator applicationNameValidator = new ApplicationNameValidator(NAMESPACE, false); assertTrue(applicationNameValidator.canCorrect()); }
@Override public boolean canCorrect() { return true; }
ApplicationNameValidator implements ParameterValidator { @Override public boolean canCorrect() { return true; } }
ApplicationNameValidator implements ParameterValidator { @Override public boolean canCorrect() { return true; } ApplicationNameValidator(String namespace, boolean applyNamespace); }
ApplicationNameValidator implements ParameterValidator { @Override public boolean canCorrect() { return true; } ApplicationNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isValid(Object applicationName, final Map<Stri...
ApplicationNameValidator implements ParameterValidator { @Override public boolean canCorrect() { return true; } ApplicationNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isValid(Object applicationName, final Map<Stri...
@Test void deleteFile() throws Exception { FileEntry fileThatWillBeDeleted = addFile(TEST_FILE_LOCATION); FileEntry fileThatStays = addFile(SECOND_FILE_TEST_LOCATION); fileStorage.deleteFile(fileThatWillBeDeleted.getId(), fileThatWillBeDeleted.getSpace()); assertFileExists(false, fileThatWillBeDeleted); assertFileExist...
@Override public void deleteFile(String id, String space) { blobStore.removeBlob(container, id); }
ObjectStoreFileStorage implements FileStorage { @Override public void deleteFile(String id, String space) { blobStore.removeBlob(container, id); } }
ObjectStoreFileStorage implements FileStorage { @Override public void deleteFile(String id, String space) { blobStore.removeBlob(container, id); } ObjectStoreFileStorage(BlobStore blobStore, String container); }
ObjectStoreFileStorage implements FileStorage { @Override public void deleteFile(String id, String space) { blobStore.removeBlob(container, id); } ObjectStoreFileStorage(BlobStore blobStore, String container); @Override void addFile(FileEntry fileEntry, File file); @Override List<FileEntry> getFileEntriesWithoutContent...
ObjectStoreFileStorage implements FileStorage { @Override public void deleteFile(String id, String space) { blobStore.removeBlob(container, id); } ObjectStoreFileStorage(BlobStore blobStore, String container); @Override void addFile(FileEntry fileEntry, File file); @Override List<FileEntry> getFileEntriesWithoutContent...
@Test void testCorrectionWithNoNamespaces() { ServiceNameValidator serviceNameValidator = new ServiceNameValidator(null, false); String result = (String) serviceNameValidator.attemptToCorrect(SERVICE_NAME, CONTEXT_DO_NOT_APPLY_NAMESPACE); assertEquals(SERVICE_NAME, result); }
@Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceLocal = MapUtil.parseBooleanFlag(relatedParameters, Su...
ServiceNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceL...
ServiceNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceL...
ServiceNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceL...
ServiceNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceL...
@Test void testCorrectionWithNamespaces() { ServiceNameValidator serviceNameValidator = new ServiceNameValidator(NAMESPACE, true); String result = (String) serviceNameValidator.attemptToCorrect(SERVICE_NAME, CONTEXT_APPLY_NAMESPACE); assertEquals(String.format("%s" + Constants.NAMESPACE_SEPARATOR + "%s", NAMESPACE, SER...
@Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceLocal = MapUtil.parseBooleanFlag(relatedParameters, Su...
ServiceNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceL...
ServiceNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceL...
ServiceNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceL...
ServiceNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceL...
@Test void testCorrectionWithInvalidServiceName() { ServiceNameValidator serviceNameValidator = new ServiceNameValidator(NAMESPACE, false); assertThrows(ContentException.class, () -> serviceNameValidator.attemptToCorrect(Collections.emptyList(), CONTEXT_DO_NOT_APPLY_NAMESPACE)); }
@Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceLocal = MapUtil.parseBooleanFlag(relatedParameters, Su...
ServiceNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceL...
ServiceNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceL...
ServiceNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceL...
ServiceNameValidator implements ParameterValidator { @Override public Object attemptToCorrect(Object serviceName, final Map<String, Object> relatedParameters) { if (!(serviceName instanceof String)) { throw new ContentException(Messages.COULD_NOT_CREATE_VALID_SERVICE_NAME_FROM_0, serviceName); } boolean applyNamespaceL...
@Test void testValidation() { ServiceNameValidator serviceNameValidator = new ServiceNameValidator(NAMESPACE, false); assertFalse(serviceNameValidator.isValid(SERVICE_NAME, null)); }
@Override public boolean isValid(Object serviceName, final Map<String, Object> context) { return false; }
ServiceNameValidator implements ParameterValidator { @Override public boolean isValid(Object serviceName, final Map<String, Object> context) { return false; } }
ServiceNameValidator implements ParameterValidator { @Override public boolean isValid(Object serviceName, final Map<String, Object> context) { return false; } ServiceNameValidator(String namespace, boolean applyNamespace); }
ServiceNameValidator implements ParameterValidator { @Override public boolean isValid(Object serviceName, final Map<String, Object> context) { return false; } ServiceNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isV...
ServiceNameValidator implements ParameterValidator { @Override public boolean isValid(Object serviceName, final Map<String, Object> context) { return false; } ServiceNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isV...
@Test void testGetContainerType() { ServiceNameValidator serviceNameValidator = new ServiceNameValidator(NAMESPACE, false); assertEquals(Resource.class, serviceNameValidator.getContainerType()); }
@Override public Class<?> getContainerType() { return Resource.class; }
ServiceNameValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Resource.class; } }
ServiceNameValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Resource.class; } ServiceNameValidator(String namespace, boolean applyNamespace); }
ServiceNameValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Resource.class; } ServiceNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isValid(Object serviceName, final Map...
ServiceNameValidator implements ParameterValidator { @Override public Class<?> getContainerType() { return Resource.class; } ServiceNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isValid(Object serviceName, final Map...
@Test void testGetParameterName() { ServiceNameValidator serviceNameValidator = new ServiceNameValidator(NAMESPACE, false); assertEquals(SupportedParameters.SERVICE_NAME, serviceNameValidator.getParameterName()); }
@Override public String getParameterName() { return SupportedParameters.SERVICE_NAME; }
ServiceNameValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.SERVICE_NAME; } }
ServiceNameValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.SERVICE_NAME; } ServiceNameValidator(String namespace, boolean applyNamespace); }
ServiceNameValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.SERVICE_NAME; } ServiceNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isValid(Object servic...
ServiceNameValidator implements ParameterValidator { @Override public String getParameterName() { return SupportedParameters.SERVICE_NAME; } ServiceNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isValid(Object servic...
@Test void testCanCorrect() { ServiceNameValidator serviceNameValidator = new ServiceNameValidator(NAMESPACE, false); assertTrue(serviceNameValidator.canCorrect()); }
@Override public boolean canCorrect() { return true; }
ServiceNameValidator implements ParameterValidator { @Override public boolean canCorrect() { return true; } }
ServiceNameValidator implements ParameterValidator { @Override public boolean canCorrect() { return true; } ServiceNameValidator(String namespace, boolean applyNamespace); }
ServiceNameValidator implements ParameterValidator { @Override public boolean canCorrect() { return true; } ServiceNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isValid(Object serviceName, final Map<String, Object> ...
ServiceNameValidator implements ParameterValidator { @Override public boolean canCorrect() { return true; } ServiceNameValidator(String namespace, boolean applyNamespace); @Override Class<?> getContainerType(); @Override String getParameterName(); @Override boolean isValid(Object serviceName, final Map<String, Object> ...
@SuppressWarnings("unchecked") @Test void testGet() { LongSupplier currentTimeSupplier = Mockito.mock(LongSupplier.class); Mockito.when(currentTimeSupplier.getAsLong()) .thenReturn(0L, toMillis(5), toMillis(15), toMillis(25), toMillis(30)); Supplier<String> refreshFunction = Mockito.mock(Supplier.class); Mockito.when(r...
public synchronized T get(Supplier<T> refreshFunction) { long currentTime = currentTimeSupplier.getAsLong(); long millisecondsSinceLastRefresh = currentTime - lastRefreshTime; long secondsSinceLastRefresh = TimeUnit.MILLISECONDS.toSeconds(millisecondsSinceLastRefresh); if (object == null || secondsSinceLastRefresh > ex...
CachedObject { public synchronized T get(Supplier<T> refreshFunction) { long currentTime = currentTimeSupplier.getAsLong(); long millisecondsSinceLastRefresh = currentTime - lastRefreshTime; long secondsSinceLastRefresh = TimeUnit.MILLISECONDS.toSeconds(millisecondsSinceLastRefresh); if (object == null || secondsSinceL...
CachedObject { public synchronized T get(Supplier<T> refreshFunction) { long currentTime = currentTimeSupplier.getAsLong(); long millisecondsSinceLastRefresh = currentTime - lastRefreshTime; long secondsSinceLastRefresh = TimeUnit.MILLISECONDS.toSeconds(millisecondsSinceLastRefresh); if (object == null || secondsSinceL...
CachedObject { public synchronized T get(Supplier<T> refreshFunction) { long currentTime = currentTimeSupplier.getAsLong(); long millisecondsSinceLastRefresh = currentTime - lastRefreshTime; long secondsSinceLastRefresh = TimeUnit.MILLISECONDS.toSeconds(millisecondsSinceLastRefresh); if (object == null || secondsSinceL...
CachedObject { public synchronized T get(Supplier<T> refreshFunction) { long currentTime = currentTimeSupplier.getAsLong(); long millisecondsSinceLastRefresh = currentTime - lastRefreshTime; long secondsSinceLastRefresh = TimeUnit.MILLISECONDS.toSeconds(millisecondsSinceLastRefresh); if (object == null || secondsSinceL...
@SuppressWarnings("unchecked") @Test void testForceRefresh() { LongSupplier currentTimeSupplier = Mockito.mock(LongSupplier.class); Mockito.when(currentTimeSupplier.getAsLong()) .thenReturn(0L, toMillis(5), toMillis(10), toMillis(15), toMillis(25)); Supplier<String> refreshFunction = Mockito.mock(Supplier.class); Mocki...
public synchronized T forceRefresh(Supplier<T> refreshFunction) { object = refreshFunction.get(); lastRefreshTime = currentTimeSupplier.getAsLong(); return object; }
CachedObject { public synchronized T forceRefresh(Supplier<T> refreshFunction) { object = refreshFunction.get(); lastRefreshTime = currentTimeSupplier.getAsLong(); return object; } }
CachedObject { public synchronized T forceRefresh(Supplier<T> refreshFunction) { object = refreshFunction.get(); lastRefreshTime = currentTimeSupplier.getAsLong(); return object; } CachedObject(long expirationTimeInSeconds); CachedObject(long expirationTimeInSeconds, LongSupplier currentTimeSupplier); }
CachedObject { public synchronized T forceRefresh(Supplier<T> refreshFunction) { object = refreshFunction.get(); lastRefreshTime = currentTimeSupplier.getAsLong(); return object; } CachedObject(long expirationTimeInSeconds); CachedObject(long expirationTimeInSeconds, LongSupplier currentTimeSupplier); synchronized T g...
CachedObject { public synchronized T forceRefresh(Supplier<T> refreshFunction) { object = refreshFunction.get(); lastRefreshTime = currentTimeSupplier.getAsLong(); return object; } CachedObject(long expirationTimeInSeconds); CachedObject(long expirationTimeInSeconds, LongSupplier currentTimeSupplier); synchronized T g...
@Test void testGetHealth() { prepareConfiguration(ImmutableHealthCheckConfiguration.builder() .mtaId(MTA_ID) .spaceId(SPACE_ID) .userName(USER_NAME) .timeRangeInSeconds(TIME_RANGE_IN_SECONDS) .build()); Health health = healthRetriever.getHealth(); assertTrue(health.isHealthy()); assertEquals(1, health.getHealthCheckOpe...
public Health getHealth() { HealthCheckConfiguration healthCheckConfiguration = configuration.getHealthCheckConfiguration(); ZonedDateTime currentTime = currentTimeSupplier.get(); ZonedDateTime xSecondsAgo = currentTime.minusSeconds(healthCheckConfiguration.getTimeRangeInSeconds()); List<Operation> healthCheckOperation...
HealthRetriever { public Health getHealth() { HealthCheckConfiguration healthCheckConfiguration = configuration.getHealthCheckConfiguration(); ZonedDateTime currentTime = currentTimeSupplier.get(); ZonedDateTime xSecondsAgo = currentTime.minusSeconds(healthCheckConfiguration.getTimeRangeInSeconds()); List<Operation> he...
HealthRetriever { public Health getHealth() { HealthCheckConfiguration healthCheckConfiguration = configuration.getHealthCheckConfiguration(); ZonedDateTime currentTime = currentTimeSupplier.get(); ZonedDateTime xSecondsAgo = currentTime.minusSeconds(healthCheckConfiguration.getTimeRangeInSeconds()); List<Operation> he...
HealthRetriever { public Health getHealth() { HealthCheckConfiguration healthCheckConfiguration = configuration.getHealthCheckConfiguration(); ZonedDateTime currentTime = currentTimeSupplier.get(); ZonedDateTime xSecondsAgo = currentTime.minusSeconds(healthCheckConfiguration.getTimeRangeInSeconds()); List<Operation> he...
HealthRetriever { public Health getHealth() { HealthCheckConfiguration healthCheckConfiguration = configuration.getHealthCheckConfiguration(); ZonedDateTime currentTime = currentTimeSupplier.get(); ZonedDateTime xSecondsAgo = currentTime.minusSeconds(healthCheckConfiguration.getTimeRangeInSeconds()); List<Operation> he...
@Test void deleteFilesBySpace() throws Exception { FileEntry firstFile = addFile(TEST_FILE_LOCATION); FileEntry secondFile = addFile(SECOND_FILE_TEST_LOCATION); FileEntry fileInOtherSpace = addFile(TEST_FILE_LOCATION, "otherspace", namespace); fileStorage.deleteFilesBySpace(spaceId); assertFileExists(false, firstFile);...
@Override public void deleteFilesBySpace(String space) { removeBlobsByFilter(blob -> filterBySpace(blob, space)); }
ObjectStoreFileStorage implements FileStorage { @Override public void deleteFilesBySpace(String space) { removeBlobsByFilter(blob -> filterBySpace(blob, space)); } }
ObjectStoreFileStorage implements FileStorage { @Override public void deleteFilesBySpace(String space) { removeBlobsByFilter(blob -> filterBySpace(blob, space)); } ObjectStoreFileStorage(BlobStore blobStore, String container); }
ObjectStoreFileStorage implements FileStorage { @Override public void deleteFilesBySpace(String space) { removeBlobsByFilter(blob -> filterBySpace(blob, space)); } ObjectStoreFileStorage(BlobStore blobStore, String container); @Override void addFile(FileEntry fileEntry, File file); @Override List<FileEntry> getFileEntr...
ObjectStoreFileStorage implements FileStorage { @Override public void deleteFilesBySpace(String space) { removeBlobsByFilter(blob -> filterBySpace(blob, space)); } ObjectStoreFileStorage(BlobStore blobStore, String container); @Override void addFile(FileEntry fileEntry, File file); @Override List<FileEntry> getFileEntr...
@Test void testMissingAuditorCredentials() { Exception exception = assertThrows(IllegalStateException.class, () -> dataTerminationService.deleteOrphanUserData()); assertEquals(Messages.MISSING_GLOBAL_AUDITOR_CREDENTIALS, exception.getMessage()); }
public void deleteOrphanUserData() { assertGlobalAuditorCredentialsExist(); List<String> deleteSpaceEventsToBeDeleted = getDeleteSpaceEvents(); for (String spaceId : deleteSpaceEventsToBeDeleted) { deleteConfigurationSubscriptionOrphanData(spaceId); deleteConfigurationEntryOrphanData(spaceId); deleteUserOperationsOrpha...
DataTerminationService { public void deleteOrphanUserData() { assertGlobalAuditorCredentialsExist(); List<String> deleteSpaceEventsToBeDeleted = getDeleteSpaceEvents(); for (String spaceId : deleteSpaceEventsToBeDeleted) { deleteConfigurationSubscriptionOrphanData(spaceId); deleteConfigurationEntryOrphanData(spaceId); ...
DataTerminationService { public void deleteOrphanUserData() { assertGlobalAuditorCredentialsExist(); List<String> deleteSpaceEventsToBeDeleted = getDeleteSpaceEvents(); for (String spaceId : deleteSpaceEventsToBeDeleted) { deleteConfigurationSubscriptionOrphanData(spaceId); deleteConfigurationEntryOrphanData(spaceId); ...
DataTerminationService { public void deleteOrphanUserData() { assertGlobalAuditorCredentialsExist(); List<String> deleteSpaceEventsToBeDeleted = getDeleteSpaceEvents(); for (String spaceId : deleteSpaceEventsToBeDeleted) { deleteConfigurationSubscriptionOrphanData(spaceId); deleteConfigurationEntryOrphanData(spaceId); ...
DataTerminationService { public void deleteOrphanUserData() { assertGlobalAuditorCredentialsExist(); List<String> deleteSpaceEventsToBeDeleted = getDeleteSpaceEvents(); for (String spaceId : deleteSpaceEventsToBeDeleted) { deleteConfigurationSubscriptionOrphanData(spaceId); deleteConfigurationEntryOrphanData(spaceId); ...
@Test void testFailToDeleteSpace() throws FileStorageException { prepareGlobalAuditorCredentials(); prepareCfOptimizedEventsGetter(generateDeletedSpaces(1)); when(configurationEntryService.createQuery()).thenReturn(configurationEntryQuery); when(configurationSubscriptionService.createQuery()).thenReturn(configurationSu...
public void deleteOrphanUserData() { assertGlobalAuditorCredentialsExist(); List<String> deleteSpaceEventsToBeDeleted = getDeleteSpaceEvents(); for (String spaceId : deleteSpaceEventsToBeDeleted) { deleteConfigurationSubscriptionOrphanData(spaceId); deleteConfigurationEntryOrphanData(spaceId); deleteUserOperationsOrpha...
DataTerminationService { public void deleteOrphanUserData() { assertGlobalAuditorCredentialsExist(); List<String> deleteSpaceEventsToBeDeleted = getDeleteSpaceEvents(); for (String spaceId : deleteSpaceEventsToBeDeleted) { deleteConfigurationSubscriptionOrphanData(spaceId); deleteConfigurationEntryOrphanData(spaceId); ...
DataTerminationService { public void deleteOrphanUserData() { assertGlobalAuditorCredentialsExist(); List<String> deleteSpaceEventsToBeDeleted = getDeleteSpaceEvents(); for (String spaceId : deleteSpaceEventsToBeDeleted) { deleteConfigurationSubscriptionOrphanData(spaceId); deleteConfigurationEntryOrphanData(spaceId); ...
DataTerminationService { public void deleteOrphanUserData() { assertGlobalAuditorCredentialsExist(); List<String> deleteSpaceEventsToBeDeleted = getDeleteSpaceEvents(); for (String spaceId : deleteSpaceEventsToBeDeleted) { deleteConfigurationSubscriptionOrphanData(spaceId); deleteConfigurationEntryOrphanData(spaceId); ...
DataTerminationService { public void deleteOrphanUserData() { assertGlobalAuditorCredentialsExist(); List<String> deleteSpaceEventsToBeDeleted = getDeleteSpaceEvents(); for (String spaceId : deleteSpaceEventsToBeDeleted) { deleteConfigurationSubscriptionOrphanData(spaceId); deleteConfigurationEntryOrphanData(spaceId); ...
@Test void testGenerate() throws NoSuchAlgorithmException, NoSuchProviderException { SecureRandom randomGenerator = SecureRandom.getInstance("SHA1PRNG", "SUN"); randomGenerator.setSeed(69); CredentialsGenerator credentialsGenerator = new CredentialsGenerator(randomGenerator); assertEquals("r&k37&tl2*D[MK7C", credential...
public String next(int length) { StringBuilder credential = new StringBuilder(length); for (int i = 0; i < length; i++) { int randomIndex = randomGenerator.nextInt(LEGAL_CHARACTERS.length); credential.append(LEGAL_CHARACTERS[randomIndex]); } return credential.toString(); }
CredentialsGenerator { public String next(int length) { StringBuilder credential = new StringBuilder(length); for (int i = 0; i < length; i++) { int randomIndex = randomGenerator.nextInt(LEGAL_CHARACTERS.length); credential.append(LEGAL_CHARACTERS[randomIndex]); } return credential.toString(); } }
CredentialsGenerator { public String next(int length) { StringBuilder credential = new StringBuilder(length); for (int i = 0; i < length; i++) { int randomIndex = randomGenerator.nextInt(LEGAL_CHARACTERS.length); credential.append(LEGAL_CHARACTERS[randomIndex]); } return credential.toString(); } CredentialsGenerator();...
CredentialsGenerator { public String next(int length) { StringBuilder credential = new StringBuilder(length); for (int i = 0; i < length; i++) { int randomIndex = randomGenerator.nextInt(LEGAL_CHARACTERS.length); credential.append(LEGAL_CHARACTERS[randomIndex]); } return credential.toString(); } CredentialsGenerator();...
CredentialsGenerator { public String next(int length) { StringBuilder credential = new StringBuilder(length); for (int i = 0; i < length; i++) { int randomIndex = randomGenerator.nextInt(LEGAL_CHARACTERS.length); credential.append(LEGAL_CHARACTERS[randomIndex]); } return credential.toString(); } CredentialsGenerator();...
@Test void testPurge() { MtaConfigurationPurger purger = new MtaConfigurationPurger(client, configurationEntryService, configurationSubscriptionService, new MtaMetadataParser(new MtaMetadataValidator())); purger.purge("org", "space"); verifyConfigurationEntriesDeleted(); verifyConfigurationEntriesNotDeleted(); Mockito....
public void purge(String org, String space) { CloudTarget targetSpace = new CloudTarget(org, space); String targetId = new ClientHelper(client).computeSpaceId(org, space); List<CloudApplication> existingApps = getExistingApps(); purgeConfigurationSubscriptions(targetId, existingApps); purgeConfigurationEntries(targetSp...
MtaConfigurationPurger { public void purge(String org, String space) { CloudTarget targetSpace = new CloudTarget(org, space); String targetId = new ClientHelper(client).computeSpaceId(org, space); List<CloudApplication> existingApps = getExistingApps(); purgeConfigurationSubscriptions(targetId, existingApps); purgeConf...
MtaConfigurationPurger { public void purge(String org, String space) { CloudTarget targetSpace = new CloudTarget(org, space); String targetId = new ClientHelper(client).computeSpaceId(org, space); List<CloudApplication> existingApps = getExistingApps(); purgeConfigurationSubscriptions(targetId, existingApps); purgeConf...
MtaConfigurationPurger { public void purge(String org, String space) { CloudTarget targetSpace = new CloudTarget(org, space); String targetId = new ClientHelper(client).computeSpaceId(org, space); List<CloudApplication> existingApps = getExistingApps(); purgeConfigurationSubscriptions(targetId, existingApps); purgeConf...
MtaConfigurationPurger { public void purge(String org, String space) { CloudTarget targetSpace = new CloudTarget(org, space); String targetId = new ClientHelper(client).computeSpaceId(org, space); List<CloudApplication> existingApps = getExistingApps(); purgeConfigurationSubscriptions(targetId, existingApps); purgeConf...
@Test void testGetInstance() { final int maxAliases = 5; ApplicationConfiguration applicationConfiguration = Mockito.mock(ApplicationConfiguration.class); Mockito.when(applicationConfiguration.getSnakeyamlMaxAliasesForCollections()) .thenReturn(maxAliases); DescriptorParserFacadeFactory descriptorParserFacadeFactory = ...
public DescriptorParserFacade getInstance() { LoaderOptions loaderOptions = new LoaderOptions(); loaderOptions.setMaxAliasesForCollections(applicationConfiguration.getSnakeyamlMaxAliasesForCollections()); YamlParser yamlParser = new YamlParser(loaderOptions); return new DescriptorParserFacade(yamlParser); }
DescriptorParserFacadeFactory { public DescriptorParserFacade getInstance() { LoaderOptions loaderOptions = new LoaderOptions(); loaderOptions.setMaxAliasesForCollections(applicationConfiguration.getSnakeyamlMaxAliasesForCollections()); YamlParser yamlParser = new YamlParser(loaderOptions); return new DescriptorParserF...
DescriptorParserFacadeFactory { public DescriptorParserFacade getInstance() { LoaderOptions loaderOptions = new LoaderOptions(); loaderOptions.setMaxAliasesForCollections(applicationConfiguration.getSnakeyamlMaxAliasesForCollections()); YamlParser yamlParser = new YamlParser(loaderOptions); return new DescriptorParserF...
DescriptorParserFacadeFactory { public DescriptorParserFacade getInstance() { LoaderOptions loaderOptions = new LoaderOptions(); loaderOptions.setMaxAliasesForCollections(applicationConfiguration.getSnakeyamlMaxAliasesForCollections()); YamlParser yamlParser = new YamlParser(loaderOptions); return new DescriptorParserF...
DescriptorParserFacadeFactory { public DescriptorParserFacade getInstance() { LoaderOptions loaderOptions = new LoaderOptions(); loaderOptions.setMaxAliasesForCollections(applicationConfiguration.getSnakeyamlMaxAliasesForCollections()); YamlParser yamlParser = new YamlParser(loaderOptions); return new DescriptorParserF...
@Test void testDeleteRoute() { String uri = "https: clientHelper.deleteRoute(uri); ApplicationURI route = new ApplicationURI(uri); Mockito.verify(client) .deleteRoute(route.getHost(), route.getDomain(), route.getPath()); }
public void deleteRoute(String uri) { ApplicationURI route = new ApplicationURI(uri); client.deleteRoute(route.getHost(), route.getDomain(), route.getPath()); }
ClientHelper { public void deleteRoute(String uri) { ApplicationURI route = new ApplicationURI(uri); client.deleteRoute(route.getHost(), route.getDomain(), route.getPath()); } }
ClientHelper { public void deleteRoute(String uri) { ApplicationURI route = new ApplicationURI(uri); client.deleteRoute(route.getHost(), route.getDomain(), route.getPath()); } ClientHelper(CloudControllerClient client); }
ClientHelper { public void deleteRoute(String uri) { ApplicationURI route = new ApplicationURI(uri); client.deleteRoute(route.getHost(), route.getDomain(), route.getPath()); } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String computeSpaceId(String orgName, String spaceName); CloudTarget c...
ClientHelper { public void deleteRoute(String uri) { ApplicationURI route = new ApplicationURI(uri); client.deleteRoute(route.getHost(), route.getDomain(), route.getPath()); } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String computeSpaceId(String orgName, String spaceName); CloudTarget c...
@Test void testComputeSpaceId() { Mockito.when(client.getSpace(ORG_NAME, SPACE_NAME, false)) .thenReturn(createCloudSpace(GUID, SPACE_NAME, ORG_NAME)); String spaceId = clientHelper.computeSpaceId(ORG_NAME, SPACE_NAME); Assertions.assertEquals(GUID.toString(), spaceId); }
public String computeSpaceId(String orgName, String spaceName) { CloudSpace space = client.getSpace(orgName, spaceName, false); if (space != null) { return space.getMetadata() .getGuid() .toString(); } return null; }
ClientHelper { public String computeSpaceId(String orgName, String spaceName) { CloudSpace space = client.getSpace(orgName, spaceName, false); if (space != null) { return space.getMetadata() .getGuid() .toString(); } return null; } }
ClientHelper { public String computeSpaceId(String orgName, String spaceName) { CloudSpace space = client.getSpace(orgName, spaceName, false); if (space != null) { return space.getMetadata() .getGuid() .toString(); } return null; } ClientHelper(CloudControllerClient client); }
ClientHelper { public String computeSpaceId(String orgName, String spaceName) { CloudSpace space = client.getSpace(orgName, spaceName, false); if (space != null) { return space.getMetadata() .getGuid() .toString(); } return null; } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String compute...
ClientHelper { public String computeSpaceId(String orgName, String spaceName) { CloudSpace space = client.getSpace(orgName, spaceName, false); if (space != null) { return space.getMetadata() .getGuid() .toString(); } return null; } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String compute...
@Test void testComputeSpaceIdIfSpaceIsNull() { Assertions.assertNull(clientHelper.computeSpaceId(ORG_NAME, SPACE_NAME)); }
public String computeSpaceId(String orgName, String spaceName) { CloudSpace space = client.getSpace(orgName, spaceName, false); if (space != null) { return space.getMetadata() .getGuid() .toString(); } return null; }
ClientHelper { public String computeSpaceId(String orgName, String spaceName) { CloudSpace space = client.getSpace(orgName, spaceName, false); if (space != null) { return space.getMetadata() .getGuid() .toString(); } return null; } }
ClientHelper { public String computeSpaceId(String orgName, String spaceName) { CloudSpace space = client.getSpace(orgName, spaceName, false); if (space != null) { return space.getMetadata() .getGuid() .toString(); } return null; } ClientHelper(CloudControllerClient client); }
ClientHelper { public String computeSpaceId(String orgName, String spaceName) { CloudSpace space = client.getSpace(orgName, spaceName, false); if (space != null) { return space.getMetadata() .getGuid() .toString(); } return null; } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String compute...
ClientHelper { public String computeSpaceId(String orgName, String spaceName) { CloudSpace space = client.getSpace(orgName, spaceName, false); if (space != null) { return space.getMetadata() .getGuid() .toString(); } return null; } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String compute...
@Test void testComputeTarget() { Mockito.when(client.getSpace(Matchers.any(UUID.class))) .thenReturn(createCloudSpace(GUID, SPACE_NAME, ORG_NAME)); CloudTarget target = clientHelper.computeTarget(SPACE_ID); Assertions.assertEquals(ORG_NAME, target.getOrganizationName()); Assertions.assertEquals(SPACE_NAME, target.getSp...
public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; }
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } }
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } ClientHelper(CloudControllerClient client); }
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String computeSpa...
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String computeSpa...
@Test void testComputeTargetCloudOperationExceptionForbiddenThrown() { Mockito.when(client.getSpace(Matchers.any(UUID.class))) .thenThrow(new CloudOperationException(HttpStatus.FORBIDDEN)); Assertions.assertNull(clientHelper.computeTarget(SPACE_ID)); }
public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; }
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } }
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } ClientHelper(CloudControllerClient client); }
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String computeSpa...
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String computeSpa...
@Test void deleteFilesBySpaceAndNamespace() throws Exception { FileEntry firstFile = addFile(TEST_FILE_LOCATION); FileEntry secondFile = addFile(SECOND_FILE_TEST_LOCATION); FileEntry fileInOtherSpace = addFile(TEST_FILE_LOCATION, "otherspace", namespace); FileEntry fileInOtherNamespace = addFile(TEST_FILE_LOCATION, spa...
@Override public void deleteFilesBySpaceAndNamespace(String space, String namespace) { removeBlobsByFilter(blob -> filterBySpaceAndNamespace(blob, space, namespace)); }
ObjectStoreFileStorage implements FileStorage { @Override public void deleteFilesBySpaceAndNamespace(String space, String namespace) { removeBlobsByFilter(blob -> filterBySpaceAndNamespace(blob, space, namespace)); } }
ObjectStoreFileStorage implements FileStorage { @Override public void deleteFilesBySpaceAndNamespace(String space, String namespace) { removeBlobsByFilter(blob -> filterBySpaceAndNamespace(blob, space, namespace)); } ObjectStoreFileStorage(BlobStore blobStore, String container); }
ObjectStoreFileStorage implements FileStorage { @Override public void deleteFilesBySpaceAndNamespace(String space, String namespace) { removeBlobsByFilter(blob -> filterBySpaceAndNamespace(blob, space, namespace)); } ObjectStoreFileStorage(BlobStore blobStore, String container); @Override void addFile(FileEntry fileEnt...
ObjectStoreFileStorage implements FileStorage { @Override public void deleteFilesBySpaceAndNamespace(String space, String namespace) { removeBlobsByFilter(blob -> filterBySpaceAndNamespace(blob, space, namespace)); } ObjectStoreFileStorage(BlobStore blobStore, String container); @Override void addFile(FileEntry fileEnt...
@Test void testComputeTargetCloudOperationExceptionNotFoundThrown() { Mockito.when(client.getSpace(Matchers.any(UUID.class))) .thenThrow(new CloudOperationException(HttpStatus.NOT_FOUND)); Assertions.assertNull(clientHelper.computeTarget(SPACE_ID)); }
public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; }
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } }
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } ClientHelper(CloudControllerClient client); }
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String computeSpa...
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String computeSpa...
@Test void testComputeTargetCloudOperationExceptionBadRequestThrown() { Mockito.when(client.getSpace(Matchers.any(UUID.class))) .thenThrow(new CloudOperationException(HttpStatus.BAD_REQUEST)); CloudOperationException cloudOperationException = Assertions.assertThrows(CloudOperationException.class, () -> clientHelper.com...
public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; }
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } }
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } ClientHelper(CloudControllerClient client); }
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String computeSpa...
ClientHelper { public CloudTarget computeTarget(String spaceId) { CloudSpace space = attemptToFindSpace(spaceId); if (space != null) { return new CloudTarget(space.getOrganization() .getName(), space.getName()); } return null; } ClientHelper(CloudControllerClient client); void deleteRoute(String uri); String computeSpa...
@Test void testDescriptorOverridesDefaults() throws Exception { SystemParameters testedClass = createSystemParameters(false); List<String> descriptorParameterFields = List.of(SupportedParameters.ORGANIZATION_NAME, SupportedParameters.SPACE_NAME, SupportedParameters.USER, SupportedParameters.DEFAULT_DOMAIN, SupportedPar...
public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descriptor.getResources()) {...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
@Test void testModuleParametersOverrideSystemParameters() throws Exception { SystemParameters testedClass = createSystemParameters(false); List<String> fields = List.of(SupportedParameters.PROTOCOL, SupportedParameters.TIMESTAMP, SupportedParameters.INSTANCES, SupportedParameters.APP_NAME, SupportedParameters.IDLE_DOMA...
public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descriptor.getResources()) {...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
@Test void testResourceParameters() throws Exception { SystemParameters testedClass = createSystemParameters(false); Resource resourceOne = Resource.createV3() .setName("first"); Resource resourceTwo = Resource.createV3() .setName("second"); DeploymentDescriptor descriptor = DeploymentDescriptor.createV3() .setResource...
public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descriptor.getResources()) {...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
@Test void testResourceParametersOverrideSystemParameters() throws Exception { SystemParameters testedClass = createSystemParameters(false); List<String> fields = List.of(SupportedParameters.SERVICE_NAME, SupportedParameters.DEFAULT_CONTAINER_NAME, SupportedParameters.DEFAULT_XS_APP_NAME); Resource resourceWithParamete...
public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descriptor.getResources()) {...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
SystemParameters { public void injectInto(DeploymentDescriptor descriptor) { for (Module module : descriptor.getModules()) { Map<String, Object> moduleSystemParameters = getModuleParameters(module); module.setParameters(MapUtil.merge(moduleSystemParameters, module.getParameters())); } for (Resource resource : descripto...
@Test void testWithValidImageWithoutUserCredentials() { List<Map<String, Object>> parameters = new ArrayList<>(); Map<String, Object> moduleParameters = new HashMap<>(); Map<String, String> dockerParameters = new HashMap<>(); String sampleImage = "cloudfoundry/test-app"; dockerParameters.put("image", sampleImage); modu...
@Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); }
DockerInfoParser implements ParametersParser<DockerInfo> { @Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); } }
DockerInfoParser implements ParametersParser<DockerInfo> { @Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); } }
DockerInfoParser implements ParametersParser<DockerInfo> { @Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); } @Override DockerInfo parse(List<Map<String, Object>> parametersList); }
DockerInfoParser implements ParametersParser<DockerInfo> { @Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); } @Override DockerInfo parse(List<Map<String, Object>> parametersList); }
@Test void testWithValidImageAndCredentials() { List<Map<String, Object>> parameters = new ArrayList<>(); Map<String, Object> moduleParameters = new HashMap<>(); Map<String, String> dockerParameters = new HashMap<>(); String sampleImage = "cloudfoundry/test-app"; String username = "someUsername"; String password = "som...
@Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); }
DockerInfoParser implements ParametersParser<DockerInfo> { @Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); } }
DockerInfoParser implements ParametersParser<DockerInfo> { @Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); } }
DockerInfoParser implements ParametersParser<DockerInfo> { @Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); } @Override DockerInfo parse(List<Map<String, Object>> parametersList); }
DockerInfoParser implements ParametersParser<DockerInfo> { @Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); } @Override DockerInfo parse(List<Map<String, Object>> parametersList); }