Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » JUnit tests(display, shell)
JUnit tests [message #1052658] Tue, 30 April 2013 11:13 Go to next message
Markus Meier is currently offline Markus MeierFriend
Messages: 1
Registered: April 2013
Junior Member
Hi,
I haven't found much information about this topic - I want to create unit tests for my RAP application also for classes which use the display.
I found the class Fixture but as it's not officially supported I dont know if I can use it.
So my first question is if you know more about the support of this class for future RAP versions.
My second question: Is there is some (other) way to fake the display?

Thanks in advance.
Re: JUnit tests [message #1053050 is a reply to message #1052658] Thu, 02 May 2013 08:18 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Markus,

it's true that the RAP Fixture is not officially supported yet. We plan
to provide test support in the future, probably by JUnit rules.

For the moment, if you reduce your usage of the fixture to the methods
three methods descibed in [1], you should be on the safe side. Once we
provide a JUnit rule, changing your tests should be relatively simple.

I don't think that there's an alternative to the fixture at the moment.
As soon as you start using widgets they need some internals to be set
up, and that's what the fixture does.

HTH, Ralf

[1] http://eclipsesource.com/blogs/2013/02/22/unit-testing-rap-applications/

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:[TableViewer] Busy ColumnViewer
Next Topic:Tycho build with RAP 1.4.2
Goto Forum:
  


Current Time: Wed May 08 04:25:06 GMT 2024

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

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

Back to the top