Package org.freeplane.uispec4j.framework

Examples of org.freeplane.uispec4j.framework.FreeplaneWindow



public class FreeplaneFirstTest extends FreeplaneTestCase {
  @Test
  public void testFileOpen() throws Exception {
    final FreeplaneWindow mainWindow = getFreeMindWindow();
    MenuItem openMenu = mainWindow.getMenuBar().getMenu("File").getSubMenu("Open...");
    WindowInterceptor
       .init(openMenu.triggerClick())
       .process(FileChooserHandler.init()
                .titleEquals(null)
                .assertAcceptsFilesOnly()
                .select(openMap))
       .run();
    assertFalse(mainWindow.getToolbar("/main_toolbar").getButton("Undo").isEnabled());
  }
View Full Code Here


       .run();
    assertFalse(mainWindow.getToolbar("/main_toolbar").getButton("Undo").isEnabled());
  }
  @Test
  public void testUp() throws Exception {
    final FreeplaneWindow mainWindow = getFreeMindWindow();
    mainWindow.getAwtComponent();
    final Node node = mainWindow.getNode("22");
    node.selectAsTheOnlyOneSelected();
    node.pressKey(Key.UP);
    assertEquals("11", node.getSelected().getText());
    }
View Full Code Here

    node.pressKey(Key.UP);
    assertEquals("11", node.getSelected().getText());
    }
  @Test
  public void testCtrlUp() throws Exception {
    final FreeplaneWindow mainWindow = getFreeMindWindow();
    mainWindow.getAwtComponent();
    final Node node = mainWindow.getNode("22");
    node.selectAsTheOnlyOneSelected();
    node.pressKey(Key.control(Key.UP));
    node.pressKey(Key.DOWN);
    assertEquals("11", node.getSelected().getText());
    mainWindow.getToolbar("/main_toolbar").getButton("Undo").click();
    }
View Full Code Here

TOP

Related Classes of org.freeplane.uispec4j.framework.FreeplaneWindow

Copyright © 2018 www.massapicom. 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.