ValidateCloudConfigurationFileSize implements InstallServiceValidator, InstallApplicationValidator { @Override public void validate(final InstallApplicationValidationContext validationContext) throws RestErrorException { validateCloudConfigurationFileSize(validationContext.getCloudConfigurationFile()); }  @Override void validate(final InstallApplicationValidationContext validationContext); @Override void validate(final InstallServiceValidationContext validationContext); long getCloudConfigurationFileSizeLimit(); void setCloudConfigurationFileSizeLimit(final long cloudConfigurationFileSizeLimit);  }
@Test public void testSizeLimitExeededInInstallService() { InstallServiceValidationContext context = new InstallServiceValidationContext(); context.setCloudConfigurationFile(cloudConfigurationFile); ValidatorsTestsUtils.validate(validator, context, ERR_MSG); }
@Test public void testSizeLimitExeededInInstallApplication() { InstallApplicationValidationContext context = new InstallApplicationValidationContext(); context.setCloudConfigurationFile(cloudConfigurationFile); ValidatorsTestsUtils.validate(validator, context, ERR_MSG); }