Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to write test for this method?

lpopek May 22, 2019 edited
public static String getBaseURL() {   
return ComponentAccessor.getApplicationProperties().getString("jira.baseurl");
}

or this method? 

public boolean issuesHaveSameProject(Issue firstIssue, Issue secondIssue) {
Long firstId = firstIssue.getProjectId();
Long secondId = secondIssue.getProjectId();
return firstId.equals(secondId);
}



Should I use Mockito?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events