Package at.bestsolution.efxclipse.testcases.e4.jemmy

Source Code of at.bestsolution.efxclipse.testcases.e4.jemmy.MenuTestCase

/*******************************************************************************
* Copyright (c) 2012 BestSolution.at and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*     Tom Schindl<tom.schindl@bestsolution.at> - initial API and implementation
*******************************************************************************/
package at.bestsolution.efxclipse.testcases.e4.jemmy;

import org.jemmy.fx.SceneDock;
import org.jemmy.fx.control.MenuBarDock;
import org.junit.BeforeClass;
import org.junit.Test;

public class MenuTestCase {
  protected static SceneDock scene;
  private static MenuBarDock menuBar;
 
  @BeforeClass
  public static void startApp() throws InterruptedException {
    try {
      scene = new SceneDock();
      menuBar = new MenuBarDock(scene.asParent());
    } catch(Throwable t ) {
      t.printStackTrace();
    }
   
  }
 
  @Test
  public void menu() {
    menuBar.asMenuOwner().push("M1","Check - HI 1");
  }
}
TOP

Related Classes of at.bestsolution.efxclipse.testcases.e4.jemmy.MenuTestCase

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.