Ejemplo n.º 1
0
  @Override
  public void initialize() {
    log(":: initialize");
    Node asNode = new EPUtilities().startApplicationServer();

    OutputOperator oot = new OutputOperator();
    timeout = JemmyProperties.getCurrentTimeout(TIMEOUT_NAME);
    JemmyProperties.setCurrentTimeout(TIMEOUT_NAME, 300000);

    OutputTabOperator asot = oot.getOutputTab(asNode.getText()); // NOI18N
    asot.waitText("Application server startup complete"); // NOI18N

    //        new CloseAllDocumentsAction().performAPI();
  }
Ejemplo n.º 2
0
  /** @see junit.framework.TestCase#setUp() */
  protected void setUp() throws Exception {
    // JemmyProperties.setCurrentDispatchingModel(
    //    JemmyProperties.ROBOT_MODEL_MASK);

    JemmyProperties.setCurrentOutput(TestOut.getNullOutput());

    String prefsFile = FileUtil.createTempFilename() + "-toolbox.xml";
    workspace_ = new PluginWorkspace(prefsFile);
    window_ = new JFrameOperator(workspace_);
  }
  /** @see junit.framework.TestCase#setUp() */
  protected void setUp() throws Exception {
    super.setUp();

    // JemmyProperties.setCurrentDispatchingModel(
    //    JemmyProperties.ROBOT_MODEL_MASK);

    JemmyProperties.setCurrentOutput(TestOut.getNullOutput());

    final JFontChooserDialog fsd = new JFontChooserDialog(new JFrame(), "Select font", false);

    fsd.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);

    fsd.addFontDialogListener(
        new IFontChooserDialogListener() {
          public void okButtonPressed(JFontChooser fontPanel) {
            logger_.debug("OK button pressed");
            fsd.dispose();
          }

          public void cancelButtonPressed(JFontChooser fontPanel) {
            logger_.debug("Cancel button pressed");
            fsd.dispose();
          }

          public void applyButtonPressed(JFontChooser fontPanel) {
            logger_.debug("Apply button pressed");
          }
        });

    SwingUtil.centerWindow(fsd);
    fsd.setVisible(true);

    dialog_ = new JDialogOperator("Select font");

    applyButton_ = JemmyUtil.findButton(dialog_, JFontChooserDialog.NAME_APPLY_BUTTON);

    cancelButton_ = JemmyUtil.findButton(dialog_, JFontChooserDialog.NAME_CANCEL_BUTTON);

    okButton_ = JemmyUtil.findButton(dialog_, JFontChooserDialog.NAME_OK_BUTTON);

    fontList_ = new JListOperator(dialog_, new NameComponentChooser(JFontChooser.NAME_FONT_LIST));

    styleList_ = new JListOperator(dialog_, new NameComponentChooser(JFontChooser.NAME_STYLE_LIST));

    sizeList_ = new JListOperator(dialog_, new NameComponentChooser(JFontChooser.NAME_SIZE_LIST));
  }
Ejemplo n.º 4
0
 @Override
 protected void shutdown() {
   log("::shutdown");
   JemmyProperties.setCurrentTimeout(TIMEOUT_NAME, timeout);
 }
 public void setsJemmyTimeouts() {
   context.setJemmyTimeouts("3");
   for (String timeoutName : TimeoutKeywords.JEMMY_TIMEOUTS) {
     specify(JemmyProperties.getCurrentTimeout(timeoutName), must.equal(3000));
   }
 }
 public void setsJemmyTimeout() {
   String timeoutName = "DialogWaiter.WaitDialogTimeout";
   context.setJemmyTimeout(timeoutName, "3");
   specify(JemmyProperties.getCurrentTimeout(timeoutName), must.equal(3000));
 }