Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 #592184] Thu, 19 February 2009 17:54
Mikael Petterson is currently offline Mikael PettersonFriend
Messages: 157
Registered: July 2009
Senior Member
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:To test my plugin I need to remove the singleton
Next Topic:pde build problem with exported package in another plugin
Goto Forum:
  


Current Time: Sat Jun 19 05:37:08 GMT 2021

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

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

Back to the top