> +
> +   private static final DescriptionValidator VALIDATOR = new 
> DescriptionValidator();
> +
> +   public void testValidate() throws IOException {
> +      VALIDATOR.validate("This is a valid description");
> +      VALIDATOR.validate("This_is*A#valid@Description");
> +      VALIDATOR.validate("This~Is~A~Valid~Description");
> +      VALIDATOR.validate("&Valid$Description");
> +      VALIDATOR.validate("");
> +      VALIDATOR.validate(buildData(1024).asCharSource(UTF_8).read());
> +   }
> +
> +   @Test(expectedExceptions = IllegalArgumentException.class)
> +   public void testIllegalCharacters() {
> +      VALIDATOR.validate(Character.toString((char) 31));
> +      VALIDATOR.validate(Character.toString((char) 127));

Does this test both calls to `validate` or only the first?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/13/files#r13891739

Reply via email to