Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions src/org/labkey/test/util/APIUserHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.labkey.remoteapi.SimplePostCommand;
import org.labkey.remoteapi.security.CreateUserCommand;
import org.labkey.remoteapi.security.CreateUserResponse;
import org.labkey.remoteapi.security.DeleteUserCommand;
import org.labkey.remoteapi.security.GetUsersCommand;
import org.labkey.remoteapi.security.GetUsersResponse;
import org.labkey.remoteapi.security.GetUsersResponse.UserInfo;
Expand All @@ -58,6 +57,7 @@
public class APIUserHelper extends AbstractUserHelper
{
private final Supplier<Connection> connectionSupplier;

public APIUserHelper(Supplier<Connection> connectionSupplier)
{
super(null);
Expand Down Expand Up @@ -223,19 +223,6 @@ protected void _deleteUser(String userEmail)
deleteUsers(false, userEmail);
}

private void deleteUser(@NotNull Integer userId)
{
DeleteUserCommand command = new DeleteUserCommand(userId);
try
{
command.execute(connectionSupplier.get(), "/");
}
catch (IOException|CommandException e)
{
throw new RuntimeException(e);
}
}

@Override
protected void _deleteUsers(boolean failIfNotFound, String... userEmails)
{
Expand Down