Package org.uispec4j

Examples of org.uispec4j.Trigger


    public Window getMainWindow() {
        return window;
    }

    public void reset() {
        window = WindowInterceptor.run(new Trigger() {
            public void run() {
                NoughtsAndCrosses.main(new String[0]);
            }
        });
    }
View Full Code Here


        UISpec4J.init();
    }

    @Before
    public void setUp() {
        window = WindowInterceptor.run(new Trigger() {
            public void run() {
                modelJUnitGUI = new ModelJUnitGUI(false);
            }
        });
        assertTrue(window.titleEquals("ModelJUnit - Untitled*"));
 
View Full Code Here

                                                "Transition coverage = 5/16\n"
                                ));

                // no action can be performed after the results window is shown,
                // so return a new trigger with empty run() implementation.
                return new Trigger() {
                    @Override
                    public void run() throws Exception {}
                };
            }
        })
View Full Code Here

            public Trigger process(Window configurationDialog) {
                assertTrue(configurationDialog.titleEquals("Coverage - ModelJUnit"));

                // no action can be performed after the coverage graphs window is shown,
                // so return a new trigger with empty run() implementation.
                return new Trigger() {
                    @Override
                    public void run() throws Exception {}
                };
            }
        })
View Full Code Here

    Mouse.doClickInRectangle(this, rect, false, Key.Modifier.NONE);
    Mouse.doDoubleClickInRectangle(getAwtComponent(), rect);
  }

  public Trigger triggerClick(final int row, final int column, final Key.Modifier modifier) {
    return new Trigger() {
      public void run() throws Exception {
        click(row, column, modifier);
      }
    };
  }
View Full Code Here

      }
    };
  }

  public Trigger triggerRightClick(final int row, final int column) {
    return new Trigger() {
      public void run() throws Exception {
        rightClick(row, column);
      }
    };
  }
View Full Code Here

      }
    };
  }

  public Trigger triggerDoubleClick(final int row, final int column) {
    return new Trigger() {
      public void run() throws Exception {
        doubleClick(row, column);
      }
    };
  }
View Full Code Here

    return resourceString.replaceFirst("&", "");
  }

  private Window intercept() {
    final WindowInterceptor interceptor = WindowInterceptor
        .init(new Trigger() {
          public void run() throws Exception {
            Bundle[] bundles = Activator.getBundleContext().getBundles();
            for(Bundle b:bundles){
              if(b.getSymbolicName().equals("org.freeplane.core")){
                b.start();
View Full Code Here

              return handler.process(window);
            }
          }, this);
        }
        else {
          Trigger trigger = handler.process(window);
          TriggerRunner.runInCurrentThread(trigger);
        }
      }
      catch (WindowNotClosedError e) {
        storeException(e, computeMessagePrefix(handler.getName()));
View Full Code Here

      for (FileChooserInternalHandler handler : fileChooserHandlers) {
        handler.process(fileChooser);
      }
      checkTitle(window);
      lastHandler.process(fileChooser);
      return new Trigger() {
        public void run() throws Exception {
          ComponentUtils.close(window);
        }
      };
    }
View Full Code Here

TOP

Related Classes of org.uispec4j.Trigger

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.