fix fs container validator test

previoisly it was testing blob key validator instead of container
name validator
This commit is contained in:
Ka-Hing Cheung 2015-01-07 11:36:47 -08:00
parent 6b350fb6b7
commit 692691bcdc
1 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ import static org.testng.Assert.fail;
import java.io.File;
import org.jclouds.filesystem.predicates.validators.FilesystemBlobKeyValidator;
import org.jclouds.filesystem.predicates.validators.FilesystemContainerNameValidator;
import org.testng.annotations.Test;
@ -32,14 +32,14 @@ public class FilesystemContainerNameValidatorTest {
@Test
public void testNamesValidity() {
FilesystemBlobKeyValidator validator = new FilesystemBlobKeyValidatorImpl();
FilesystemContainerNameValidator validator = new FilesystemContainerNameValidatorImpl();
validator.validate("all.img");
}
@Test
public void testInvalidNames() {
FilesystemBlobKeyValidator validator = new FilesystemBlobKeyValidatorImpl();
FilesystemContainerNameValidator validator = new FilesystemContainerNameValidatorImpl();
try {
validator.validate("");