Coverage Report - org.eclipse.swtbot.swt.finder.ApplicationRunner
 
Classes in this File Line Coverage Branch Coverage Complexity
ApplicationRunner
N/A
N/A
1
 
 1  
 /*******************************************************************************
 2  
  * Copyright (c) 2009 SWTBot Committers and others.
 3  
  * All rights reserved. This program and the accompanying materials
 4  
  * are made available under the terms of the Eclipse Public License v1.0
 5  
  * which accompanies this distribution, and is available at
 6  
  * http://www.eclipse.org/legal/epl-v10.html
 7  
  * 
 8  
  * Contributors:
 9  
  *     Ketan Padegaonkar - initial API and implementation
 10  
  *******************************************************************************/
 11  
 package org.eclipse.swtbot.swt.finder;
 12  
 
 13  
 import org.eclipse.swtbot.swt.finder.utils.SWTUtils;
 14  
 
 15  
 /**
 16  
  * Starts the application under test.
 17  
  * 
 18  
  * @author Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
 19  
  * @version $Id$
 20  
  */
 21  
 public interface ApplicationRunner {
 22  
 
 23  
         /**
 24  
          * Starts the application. <b>Note:</b> This will <b>not</b> be called on the same thread as the junit test. So it's
 25  
          * safe to call your application's main class directly.
 26  
          */
 27  
         void startApplication();
 28  
 
 29  
         /**
 30  
          * Returns <code>true</code> if the application is running, <code>false</code> otherwise. A typical implementation
 31  
          * would be to wait until {@link SWTUtils#display()} returns something.
 32  
          * 
 33  
          * @return <code>true</code> if the application is running, <code>false</code> otherwise.
 34  
          */
 35  
         boolean isApplicationRunning();
 36  
 
 37  
 }