Usage of the Singleton pattern

Asked by Archimedes Trajano

I was curious why the singleton pattern was used in a few of the classes. Wouldn't it be better if they were not so you can implement mock classes for unit testing?

Question information

Language:
English Edit question
Status:
Answered
For:
Java library for Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Craig Hewetson (craighewetson-deactivatedaccount) said :
#1

I totally agree ... maybe you could create a branch to do this. I think if you create mock classes with tests then it will be seen as a valuable contribution and it will justify the changes being merged into trunk.

Revision history for this message
Archimedes Trajano (trajano) said :
#2

Ok, I'll see what I can do, for now I can't get the tests passing 100% on my development environment (Mac + Eclipse)

Can you help with this problem?

Provide an answer of your own, or ask Archimedes Trajano for more information if necessary.

To post a message you must log in.