|
9 | 9 | import ch.cyberduck.core.PathAttributes; |
10 | 10 | import ch.cyberduck.core.exception.NotfoundException; |
11 | 11 | import ch.cyberduck.core.features.Delete; |
| 12 | +import ch.cyberduck.core.io.MD5ChecksumCompute; |
12 | 13 | import ch.cyberduck.core.transfer.TransferStatus; |
13 | 14 | import ch.cyberduck.test.IntegrationTest; |
14 | 15 |
|
@@ -42,10 +43,12 @@ public void testNotFound() throws Exception { |
42 | 43 | public void testFind() throws Exception { |
43 | 44 | final Path container = new Path("cyberduck", EnumSet.of(Path.Type.directory, Path.Type.volume)); |
44 | 45 | final Path test = new Path(container, new AlphanumericRandomStringService().random(), EnumSet.of(Path.Type.file)); |
45 | | - new AzureTouchFeature(session).touch(new AzureWriteFeature(session), test, new TransferStatus()); |
| 46 | + new AzureTouchFeature(session).touch(new AzureWriteFeature(session), test, new TransferStatus() |
| 47 | + .setChecksum(new MD5ChecksumCompute().compute(""))); |
46 | 48 | final AzureAttributesFinderFeature f = new AzureAttributesFinderFeature(session); |
47 | 49 | final PathAttributes attributes = f.find(test); |
48 | 50 | assertEquals(0L, attributes.getSize()); |
| 51 | + assertEquals("d41d8cd98f00b204e9800998ecf8427e", attributes.getChecksum().hash); |
49 | 52 | assertNotNull(attributes.getETag()); |
50 | 53 | new AzureDeleteFeature(session).delete(Collections.singletonList(test), new DisabledLoginCallback(), new Delete.DisabledCallback()); |
51 | 54 | } |
|
0 commit comments