use of com.cognifide.cq.cqsm.foundation.actions.MockUser in project APM by Cognifide.
the class AuthorizablesUtils method createMockUser.
public static User createMockUser(Context context, String id) {
User user = new MockUser(id);
context.getAuthorizables().put(id, user);
context.getRemovedAuthorizables().remove(id);
return user;
}