Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » To test my plugin I need to remove the singleton
To test my plugin I need to remove the singleton [message #47566] Thu, 19 February 2009 12:54
Eclipse UserFriend
Hi,

I have inherited a plugin project. I want to make sure that when I make a
release of the plugin I will have a good quality. I have used Junit and
jmock for sometime. Those are great tools!

So I added some code and started to add a junit test. Soon I realized that
I needed to mock some object. But I bounced into the problem that I had
calls like:

StateCacheFactory.getInstance()

Yes the singleton pattern is used a lot in the code.

Has anyone dealt with removing singleton pattern:s in their plugins?

All advice is welcome.

cheers,

//mike
Previous Topic:IAE in Completion Proposal ("Signature.appendTypeSignature()"
Next Topic:To test my plugin I need to remove the singleton
Goto Forum:
  


Current Time: Wed May 07 11:24:14 EDT 2025

Powered by FUDForum. Page generated in 0.03854 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top