> +         checkObject(destApi.get(destinationObject, GetOptions.NONE));
> +
> +         // check the copy operation 
> +         assertTrue(destApi.copy(destinationObject, sourceContainer, 
> sourceObject));
> +         assertNotNull(destApi.head(destinationObject));
> +         
> +         // now get a real SwiftObject
> +         SwiftObject destSwiftObject = destApi.get(destinationObject, 
> GetOptions.NONE);
> +         assertEquals(Strings2.toString(destSwiftObject.payload()), 
> stringPayload);
> +         
> +         // test exception thrown on bad source name
> +         try {
> +            assertFalse(destApi.copy(destinationObject, badSource, 
> sourceObject));
> +            fail("Expected CopyObjectException");
> +         }
> +         catch (CopyObjectException e) {             

[minor] `} catch` on one line?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/73/files#r8710189

Reply via email to