PageRenderTime 49ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/MockUser.groovy

http://github.com/plytro/jira-campfire
Groovy | 13 lines | 10 code | 2 blank | 1 comment | 0 complexity | 492ab78ebe1b8106c181e898bcddd1a7 MD5 | raw file
  1. import com.atlassian.crowd.embedded.api.User
  2. class MockUser implements User {
  3. String displayName
  4. //Junk not needed for the tests but needed to satisfy the interface
  5. boolean isActive(){}
  6. int compareTo(com.atlassian.crowd.embedded.api.User u){}
  7. int compareTo(java.lang.Object o){}
  8. java.lang.String getEmailAddress(){}
  9. java.lang.String getName(){}
  10. long getDirectoryId(){}
  11. }