Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » UILifeCycle.APP_STARTUP_COMPLETE not called when running as JUnit Plug-in Test (Luna)
UILifeCycle.APP_STARTUP_COMPLETE not called when running as JUnit Plug-in Test (Luna) [message #1666331] Wed, 11 March 2015 16:45
Frank Schuerer is currently offline Frank SchuererFriend
Messages: 1
Registered: April 2014
Junior Member
I'am running a JUnit plug-in test with a product and a lifecycle handler.

@PostContextCreate
void postContextCreate(IEventBroker eventBroker, final IEclipseContext context) {
    eventBroker.subscribe(UIEvents.UILifeCycle.APP_STARTUP_COMPLETE, new EventHandler() {
      @Override
      public void handleEvent(Event event) {
        createMockServices(context);
      }
    });
  }


if I execute the code as 'Eclipse Application' with RCP 4.4 as target platform: createMockServices is called
if I execute the code as 'JUnit Plug-in Test' with RCP 4.3 as target platform: createMockServices is called
if I execute the code as 'JUnit Plug-in Test' with RCP 4.4 as target platform: createMockServices is not called. The tests are executed before createMockServices is called.
Previous Topic:EHandlerService not available in e4 with Eclipse 3.x views
Next Topic:Eclipse(e4)RCP
Goto Forum:
  


Current Time: Fri Apr 26 01:05:57 GMT 2024

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

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

Back to the top