Skip to content

Commit

Permalink
Add test case for moving to path containing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sung-eun committed Apr 7, 2021
1 parent 3074b78 commit 3cdb28f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,18 @@ public void testMove() throws Exception {
assertTrue(sardine.exists(destination));
}

@Test
public void testMoveToFolderIncludeBlank() throws Exception {
final String source = WEBDAV_URL + "/" + testFolder + "/" + UUID.randomUUID().toString();
final String destination = WEBDAV_URL + "/" + testFolder + "/" + UUID.randomUUID().toString() + " blank test";
sardine.put(source, "Test".getBytes());

sardine.move(source, destination);

assertFalse(sardine.exists(source));
assertTrue(sardine.exists(destination));
}

@Test
public void testMoveOverwriting() throws Exception {
final String source = WEBDAV_URL + "/" + testFolder + "/" + UUID.randomUUID().toString();
Expand Down

0 comments on commit 3cdb28f

Please sign in to comment.