validator.validate("all.img");
}
@Test
public void testInvalidNames() {
FilesystemBlobKeyValidator validator = new FilesystemBlobKeyValidatorImpl();
try {
validator.validate("");
fail("Container name value incorrect, but was not recognized");
} catch (IllegalArgumentException e) {}
try {
validator.validate(null);
fail("Container name value incorrect, but was not recognized");
} catch (IllegalArgumentException e) {}
try {
validator.validate(File.separator + "is" + File.separator + "" + "ok");
fail("Container name value incorrect, but was not recognized");
} catch (IllegalArgumentException e) {}
try {
validator.validate("all" + File.separator + "is" + File.separator);
fail("Container name value incorrect, but was not recognized");
} catch (IllegalArgumentException e) {}
}