fixed regression

This commit is contained in:
Adrian Cole 2010-05-24 00:44:54 -07:00
parent 7c4307ba56
commit d45dfff1ec
2 changed files with 5 additions and 3 deletions

View File

@ -142,7 +142,7 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
UnsupportedEncodingException {
String containerName = getContainerName();
try {
String prefix = "apps";
String prefix = "rootdelimeter";
addTenObjectsUnderPrefix(containerName, prefix);
add15UnderRoot(containerName);
PageSet<? extends StorageMetadata> container = context.getBlobStore().list(containerName);
@ -158,7 +158,7 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
public void testDirectory() throws InterruptedException, UnsupportedEncodingException {
String containerName = getContainerName();
try {
String directory = "apps";
String directory = "directory";
assert !context.getBlobStore().directoryExists(containerName, directory);
@ -229,7 +229,7 @@ public class BaseContainerIntegrationTest extends BaseBlobStoreIntegrationTest {
public void testListContainerPrefix() throws InterruptedException, UnsupportedEncodingException {
String containerName = getContainerName();
try {
String prefix = "apps";
String prefix = "containerprefix";
addTenObjectsUnderPrefix(containerName, prefix);
add15UnderRoot(containerName);

View File

@ -57,6 +57,8 @@ public class ParseObjectInfoFromHeadersTest {
public void testEtagCaseIssue() {
ParseObjectInfoFromHeaders parser = i.getInstance(ParseObjectInfoFromHeaders.class);
GeneratedHttpRequest<?> request = createMock(GeneratedHttpRequest.class);
expect(request.getArgs()).andReturn(new String[] { "container", "key" }).atLeastOnce();
expect(request.getEndpoint()).andReturn(URI.create("http://localhost/test")).atLeastOnce();
replay(request);
parser.setContext(request);