The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to write test for this method?

lpopek
May 22, 2019
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events