jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds] JCLOUDS-184: Improving AzureBlob unit tests for AzureBlobBlockUploadStrategyTest (#320)
Date Wed, 19 Mar 2014 17:44:27 GMT
> @@ -47,7 +50,7 @@ public void testExecute() throws Exception {
>        String blobName = "test-blob";
>        long oneMB = 1048576L;
>        AzureBlobClient client = createMock(AzureBlobClient.class);
> -      PayloadSlicer slicer = createMock(PayloadSlicer.class);
> +      PayloadSlicer slicer = createStrictMock(PayloadSlicer.class);

Hm...would it make more sense to make the one we want to _verify_ strict (i.e. the client),
and leave the _other_ one as a regular mock?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/320/files#r10761415
Mime
View raw message