mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Refactor emptying trashcan test API.
This commit is contained in:
@@ -26,6 +26,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.alfresco.rest.v0;
|
package org.alfresco.rest.v0;
|
||||||
|
|
||||||
|
import static org.testng.AssertJUnit.assertNotNull;
|
||||||
|
|
||||||
import org.alfresco.rest.core.v0.BaseAPI;
|
import org.alfresco.rest.core.v0.BaseAPI;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@@ -45,12 +47,12 @@ public class UserTrashcanAPI extends BaseAPI
|
|||||||
*
|
*
|
||||||
* @param username the username
|
* @param username the username
|
||||||
* @param password the password
|
* @param password the password
|
||||||
*
|
* @throws AssertionError if emptying the trashcan fails.
|
||||||
* @return true if the request succeeded, false if not
|
|
||||||
*/
|
*/
|
||||||
public boolean emptyTrashcan(String username, String password)
|
public void emptyTrashcan(String username, String password)
|
||||||
{
|
{
|
||||||
return doDeleteRequest(username, password, EMPTY_TRASHCAN) != null;
|
assertNotNull("Emptying trashcan failed for user " + username,
|
||||||
|
doDeleteRequest(username, password, EMPTY_TRASHCAN));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user