Improve use of File constructor

This commit is contained in:
Andrew Gaul 2012-05-15 11:00:38 -07:00
parent e4c03396db
commit 02e1a54220
1 changed files with 1 additions and 1 deletions

View File

@ -650,7 +650,7 @@ public class FilesystemAsyncBlobStoreTest {
assertNotNull(metadata.getUserMetadata(), "No blob UserMetadata");
assertEquals(metadata.getUserMetadata().size(), 0, "Wrong blob UserMetadata");
// metadata.getLastModified()
File file = new File(TARGET_CONTAINER_NAME + File.separator + BLOB_KEY);
File file = new File(TARGET_CONTAINER_NAME, BLOB_KEY);
assertEquals(metadata.getContentMetadata().getContentLength(), Long.valueOf(file.length()), "Wrong blob size");
}