mirror of https://github.com/apache/jclouds.git
fix fs container validator test
previoisly it was testing blob key validator instead of container name validator
This commit is contained in:
parent
6b350fb6b7
commit
692691bcdc
|
@ -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("");
|
||||
|
|
Loading…
Reference in New Issue