Ejemplo n.º 1
0
  @Before
  public void setUp() throws PatrimonioException, SQLException {
    robot = BasicRobot.robotWithNewAwtHierarchy();
    robot.settings().delayBetweenEvents(5);

    window = new FrameFixture(robot, new Main2());
    window.show(new Dimension(900, 500)); // shows the frame to test

    sala = new Sala("code", "Sala para testes de aceitacao", "123");
    SalaDAO.getInstance().incluir(sala);

    index = SalaDAO.getInstance().buscarTodos().size() - 1;

    window.button("Sala").click();
    dialog = window.dialog("SalaView");
  }
Ejemplo n.º 2
0
 @Test
 public void testDownloadCancelButton() {
   System.out.println("testopenDownloadDialog");
   mFrame.button("btnDownloadData").click().requireEnabled();
   mFrame.dialog("dsDialog").button("canceliButton").click().requireEnabled();
 }
 public void focusDialog(String name) {
   DialogFixture dialogFixture = focusedWindow.dialog(name);
 }