| Summary: | Provide API to run unit test | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | RĂ¼diger Herrmann <ruediger.herrmann> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | ivan, jsetya, rsternberg |
| Version: | 2.0 | ||
| Target Milestone: | 3.0 M4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
RĂ¼diger Herrmann
Hi All, It this bug already covered by org.eclipse.rap.rwt.testfixture ? Regards, Setya (In reply to Setya Mising name from comment #1) > Hi All, > > It this bug already covered by org.eclipse.rap.rwt.testfixture ? > > Regards, > Setya We are working on public test API for 3.0. The first step is TestContext JUnit rule, which is available in master and will replace the old Fixture#setUp and Fixture#tearDown methods. Hi Ivan, It this going to work on 2.0 ? I don't think so. A lot of code has been changed since RAP 2.0. As of RAP 3.0 M4, a public JUnit rule TestContext has been added. Simply add this line to every test class:
@Rule public TestContext context = new TestContext();
This obsoletes Fixture.setUp() and Fixture.tearDown(), and also the need for setting the phase to PROCESS_ACTION in order to test events.
|