git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/Common/storagehub-client@179529 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
1cade193a4
commit
77e7075e29
|
@ -803,8 +803,7 @@ public class DefaultItemManager implements ItemManagerClient {
|
|||
queryParam.put("force", new Object[] {force});
|
||||
|
||||
GXWebTargetAdapterRequest myManager = manager.path(id);
|
||||
myManager.queryParams(queryParam);
|
||||
GXInboundResponse response = myManager.delete();
|
||||
GXInboundResponse response = myManager.queryParams(queryParam).delete();
|
||||
|
||||
if (response.isErrorResponse()) {
|
||||
if (response.hasException())
|
||||
|
|
|
@ -46,12 +46,13 @@ public class Items {
|
|||
System.out.println(shc.openTrash().get().getId());
|
||||
}
|
||||
|
||||
@Test(expected=UserNotAuthorizedException.class)
|
||||
public void gxRestExceptionTest() throws Exception{
|
||||
@Test
|
||||
public void forceDelete() throws Exception{
|
||||
|
||||
StorageHubClient shc = new StorageHubClient();
|
||||
|
||||
shc.open("3bc977be-37f0-4518-888f-a7cb96c9be8e").asFolder().newFolder("testFails", "");
|
||||
|
||||
shc.open("c58e9fc0-7ef8-40d5-9f46-20e823cc8890").asFile().forceDelete();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue