Skip to content

Commit e6d6c37

Browse files
author
Lowell Vaughn
committed
cleaning up a couple of missed methods
1 parent bf5076b commit e6d6c37

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/java/com/rackspacecloud/client/cloudfiles/FilesClientTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ public void testRequestEntitySaving() {
10491049
ByteArrayEntity entity = new ByteArrayEntity(randomData);
10501050
entity.setContentType("test/content_type");
10511051

1052-
assertTrue(client.storeObjectAs(containerName, filename, entity, new HashMap<String,String>(), FilesClient.md5Sum(randomData)));
1052+
assertNotNull(client.storeObjectAs(containerName, filename, entity, new HashMap<String,String>(), FilesClient.md5Sum(randomData)));
10531053

10541054
// Make sure it's there
10551055
List<FilesObject> objects = client.listObjects(containerName);
@@ -1287,7 +1287,7 @@ public void testStreamedSaving() {
12871287
client.createContainer(containerName);
12881288

12891289
// Store it
1290-
assertTrue(client.storeStreamedObject(containerName, new ByteArrayInputStream(randomData), "application/octet-stream", filename, new HashMap<String,String>()));
1290+
assertNotNull(client.storeStreamedObject(containerName, new ByteArrayInputStream(randomData), "application/octet-stream", filename, new HashMap<String,String>()));
12911291

12921292
// Make sure it's there
12931293
List<FilesObject> objects = client.listObjects(containerName);

src/test/java/com/rackspacecloud/client/cloudfiles/SnetFilesClientTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ public void testStreamedSaving() {
11281128
client.createContainer(containerName);
11291129

11301130
// Store it
1131-
assertTrue(client.storeStreamedObject(containerName, new ByteArrayInputStream(randomData), "application/octet-stream", filename, new HashMap<String,String>()));
1131+
assertNotNull(client.storeStreamedObject(containerName, new ByteArrayInputStream(randomData), "application/octet-stream", filename, new HashMap<String,String>()));
11321132

11331133
// Make sure it's there
11341134
List<FilesObject> objects = client.listObjects(containerName);

0 commit comments

Comments
 (0)