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: 158
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: Thu Apr 18 02:59:00 GMT 2024

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

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

Back to the top