private Issue getIssue( Long remainingEstimate, Long orginalEstimate, Long timeSpent, final boolean isSubTask) { MockIssue mockIssue = new MockIssue() { public boolean isSubTask() { return isSubTask; } }; mockIssue.setEstimate(remainingEstimate); mockIssue.setOriginalEstimate(orginalEstimate); mockIssue.setTimeSpent(timeSpent); return mockIssue; }
private Issue getIssue( Long remainingEstimate, Long orginalEstimate, Long timeSpent, Collection subTaskIssues) { MockIssue mockIssue = (MockIssue) getIssue(remainingEstimate, orginalEstimate, timeSpent); mockIssue.setSubTaskObjects(subTaskIssues); return mockIssue; }