Continued implementation of extended attributes.

* Changed the `Issue` constructor to use an attribute map instead of an
  increasingly long parameter list. Of course we lose some control over required
  parameters.
* Added the Joda Time and SLF4J logging libraries.
* Implemented the `FileIssue` constructor for the new `Issue` refactor.
This commit is contained in:
Jonathan Bernard
2011-11-05 08:44:47 -05:00
parent 5ff4665a07
commit f86316c68f
9 changed files with 85 additions and 24 deletions

View File

@ -2,7 +2,7 @@ package com.jdbernard.pit
public class MockIssue extends Issue {
public MockIssue(String id, Category c, Status s, int p) {
super (id, c, s, p)
super ([id: id, category: c, status: s, priority: p])
}
public boolean delete() { return true }
}

View File

@ -171,9 +171,7 @@ class FileIssueTest {
assertEquals issue.status , Status.NEW
assertEquals issue.priority , 1
assertEquals issue.title , "Add the killer feature to the killer app."
assertEquals issue.text , "Add the killer feature to the killer app.\n" +
"=========================================\n\n" +
"Make our killer app shine!."
assertEquals issue.text , "Make our killer app shine!."
assertEquals issue.source , issueFile
}