@Test(expected = IllegalArgumentException.class) public void noLimitIsInvalid() { when(attributesMap.get(eq(LIMIT_KEY), eq(Number.class))).thenReturn(null); quota.validateConfig(config); }
@Override public void validateConfig(final BlobStoreConfiguration config) { if (getLimit(config) <= 0) { throw new ValidationErrorsException(DISPLAY_NAME + " quotas must have a Quota Limit greater than 0"); } }
SpaceRemainingQuota extends BlobStoreQuotaSupport { @Override public void validateConfig(final BlobStoreConfiguration config) { if (getLimit(config) <= 0) { throw new ValidationErrorsException(DISPLAY_NAME + " quotas must have a Quota Limit greater than 0"); } } }
SpaceRemainingQuota extends BlobStoreQuotaSupport { @Override public void validateConfig(final BlobStoreConfiguration config) { if (getLimit(config) <= 0) { throw new ValidationErrorsException(DISPLAY_NAME + " quotas must have a Quota Limit greater than 0"); } }  }
SpaceRemainingQuota extends BlobStoreQuotaSupport { @Override public void validateConfig(final BlobStoreConfiguration config) { if (getLimit(config) <= 0) { throw new ValidationErrorsException(DISPLAY_NAME + " quotas must have a Quota Limit greater than 0"); } }  @Override void validateConfig(final BlobStoreConfiguration config); @Override BlobStoreQuotaResult check(final BlobStore blobStore); @Override String getDisplayName(); @Override String getId(); }
SpaceRemainingQuota extends BlobStoreQuotaSupport { @Override public void validateConfig(final BlobStoreConfiguration config) { if (getLimit(config) <= 0) { throw new ValidationErrorsException(DISPLAY_NAME + " quotas must have a Quota Limit greater than 0"); } }  @Override void validateConfig(final BlobStoreConfiguration config); @Override BlobStoreQuotaResult check(final BlobStore blobStore); @Override String getDisplayName(); @Override String getId(); static final String ID; }