ValidateCloudOverridesFileSize implements InstallServiceValidator , InstallApplicationValidator { @Override public void validate(final InstallServiceValidationContext validationContext) throws RestErrorException { validateCloudOverridesFileSize(validationContext.getCloudOverridesFile()); }  @Override void validate(final InstallServiceValidationContext validationContext); @Override void validate(final InstallApplicationValidationContext validationContext); long getCloudOverridesFileSizeLimit(); void setCloudOverridesFileSizeLimit(final long cloudOverridesFileSizeLimit);  }
@Test public void testSizeLimitExeededInInstallService() { InstallServiceValidationContext context = new InstallServiceValidationContext(); context.setCloudOverridesFile(cloudOverridesFile); ValidatorsTestsUtils.validate(validator, context, ERR_MSG); }
@Test public void testSizeLimitExeededInInstallApplication() { InstallApplicationValidationContext context = new InstallApplicationValidationContext(); context.setCloudOverridesFile(cloudOverridesFile); ValidatorsTestsUtils.validate(validator, context, ERR_MSG); }