Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Impossible to mock PlatformUI ?
Impossible to mock PlatformUI ? [message #560132] Tue, 21 September 2010 09:46 Go to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
I am trying to run some automated UI tests, using a standard JUnit test
launcher.

In particular, I'd like to test my editors but also some custom
FilterItemSelectionDialog's.

I am running into errors like "Workbench not created" etc.

What is the fastest way to launch into an Editor or a view, just so I can
see the layout, and/or launch some (Eclipse based) dialog?
Re: Impossible to mock PlatformUI ? [message #560174 is a reply to message #560132] Tue, 21 September 2010 12:55 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Launch a Junit Plug-in test.

Then you can open views and editors, launch dialogs, etc.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:A good book for eclipse?
Next Topic:Get lazy main menu items
Goto Forum:
  


Current Time: Mon Nov 24 22:45:13 GMT 2014

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

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