setClient(TestConstants.ADMIN_USERNAME, TestConstants.ADMIN_PASSWORD);
}
protected void setClient(String username, String password) {
final JiraRestClientFactory clientFactory = new AsynchronousJiraRestClientFactory();
client = clientFactory.create(jiraUri, new BasicHttpAuthenticationHandler(username, password));
}
protected void setAnonymousMode() {
final JiraRestClientFactory clientFactory = new AsynchronousJiraRestClientFactory();
client = clientFactory.create(jiraUri, new AnonymousAuthenticationHandler());