@Test public void testMoveFolder() throws Exception { server.setResponseBody(new File("src/test/resources/moveFolder.json")); ContainerDestination containerDestination = new ContainerDestination(); containerDestination.setDestinationType(DestinationType.FOLDER); Folder folder = folderResource.moveFolder(123L, containerDestination); assertTrue(folder.getId() == 4509918431602564L); }
@Test public void testCopyFolder() throws Exception { server.setResponseBody(new File("src/test/resources/copyFolder.json")); ContainerDestination containerDestination = new ContainerDestination(); containerDestination.setDestinationType(DestinationType.FOLDER); Folder folder = folderResource.copyFolder(123L, containerDestination, null, null); assertEquals(folder.getPermalink(), "https://{base_url}?lx=lB0JaOh6AX1wGwqxsQIMaA"); }