Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Ready-made mock of IEclipsePreferences
Ready-made mock of IEclipsePreferences [message #1387104] Tue, 24 June 2014 07:25
Andreas Sewe is currently offline Andreas SeweFriend
Messages: 43
Registered: June 2013
Member
E4's use of dependency injection makes unit testing much easier. Alas, mocking the IEclipsePreferences injected through @Preference is still cumbersome.

I thus wonder whether there exists a ready-made mock of said interface which, unlike EclipsePreferences and subclasses, never persists things to disk (and into a space shared among tests, no less).

It's certainly not hard to write such a mock (essentially a collection of nested Maps), but it's still time-consuming as the interface has ton of methods. I am thus wondering whether such a thing already exists somewhere.

Any pointers are much appreciated.
Previous Topic:e4.ui.progress final version?
Next Topic:Provide a way to clear the workspace
Goto Forum:
  


Current Time: Mon Mar 30 23:11:38 GMT 2015

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

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