Permalink
Browse files

Updated mock to meet new interface changes

  • Loading branch information...
brunon committed Nov 29, 2011
1 parent e46d50a commit de3b6239a7c583afaad73164fc37d52fe655e195
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/main/scala/gitjira/mock.scala
@@ -5,14 +5,15 @@ import JiraStatus._
class DummyJira extends JIRA {
private val me = System getProperty "user.name"
- private def newIssue(n: Int, key: String = "TEST") = JiraIssue(key,n,key+"-"+n,null,Open,me,Map())
+ private def newIssue(n: Int, key: String = "TEST") = JiraIssue(key,n,key+"-"+n,None,Open,None,me,Map())
+ def progress(issue: JiraIssue) {}
+ def debug(issue: JiraIssue) {}
def getIssue(id: String) = newIssue(id.split("-")(1) toInt, id.split("-")(0))
def getIssue(key: String, number: Int) = newIssue(number, key)
def assignToMe(i: JiraIssue) { println("assign to me: " + i) }
- def transition(i: JiraIssue, s: JiraStatus) { println("Mock transition %s to %s" format (i.id, s))}
def resolve(i: JiraIssue) { println("resolve "+ i) }
- def getAssignedIssues = Seq(newIssue(123), newIssue(456))
+ def assigned = Seq(newIssue(123), newIssue(456))
def logWorkDone(i: JiraIssue, w: String, c: String) { println("Mock '%s' of work done on issue %s" format (w, i))}
def comment(issue: JiraIssue, comment: String) {}
}

0 comments on commit de3b623

Please sign in to comment.