org.eclipse.swtbot.swt.finder
Interface ApplicationRunner

All Known Implementing Classes:
SWTBotApplicationLauncherClassRunner

public interface ApplicationRunner

Starts the application under test.

Version:
$Id$
Author:
Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>

Method Summary
 boolean isApplicationRunning()
          Returns true if the application is running, false otherwise.
 void startApplication()
          Starts the application.
 

Method Detail

startApplication

void startApplication()
Starts the application. Note: This will not be called on the same thread as the junit test. So it's safe to call your application's main class directly.


isApplicationRunning

boolean isApplicationRunning()
Returns true if the application is running, false otherwise. A typical implementation would be to wait until SWTUtils.display() returns something.

Returns:
true if the application is running, false otherwise.