Examples of Runner


Examples of edu.mit.csail.sdg.alloy4.Runner

        try { throw new Exception(); } catch(Exception ex) { name = ex.getStackTrace()[1].getMethodName(); }
        Method[] methods = getClass().getDeclaredMethods();
        Method m=null;
        for(int i=0; i<methods.length; i++) if (methods[i].getName().equals(name)) { m=methods[i]; break; }
        final Method method=m;
        return new Runner() {
            private static final long serialVersionUID = 0;
            public void run() {
                try {
                    method.setAccessible(true);
                    method.invoke(SimpleGUI.this, new Object[]{});
View Full Code Here

Examples of jp.vmi.selenium.selenese.Runner

        + "Command#4: click(\"id=login\")"
        + "]";

    @Test
    public void registerRollup() throws Exception {
        Runner runner = new Runner();
        runner.setDriver(new HtmlUnitDriver(true));
        RollupRules rollupRules = runner.getRollupRules();
        rollupRules.load(getClass().getResourceAsStream("/rollup/user-extention-rollup.js"));
        IRollupRule rule = rollupRules.get("do_login");
        assertThat(rule, is(instanceOf(RollupRule.class)));
        Map<String, String> rollupArgs = new HashMap<String, String>();
        rollupArgs.put("username", "USERNAME");
View Full Code Here

Examples of net.geco.model.Runner

  }

  @Override
  public String requestMergeUnknownRunner(RunnerRaceData data, String ecard) {
    Course course = detectCourse(data);
    Runner r = detectArchiveRunner(data, ecard, course);
    if( r!=null ){
      // TODO: rethink this part with SIReaderHandler. We return null because detectArchiveRunner
      // already handled the case and announced CardRead (autoprinting).
      // Returning the e-card would led SIReaderHandler to announce an unknown card.
      return null;
View Full Code Here

Examples of net.myrrix.web.Runner

      runnerConfig.setUserName("foo");
      runnerConfig.setPassword("bar");
    }
    runnerConfig.setLocalInputDir(tempDir);

    runner = new Runner(runnerConfig);
    runner.call();

    boolean clientSecure = runnerConfig.getKeystoreFile() != null;
    int clientPort = clientSecure ? runnerConfig.getSecurePort() : runnerConfig.getPort();
    MyrrixClientConfiguration clientConfig = new MyrrixClientConfiguration();
View Full Code Here

Examples of net.sourceforge.jexecsql.core.Runner

   */
  protected void memoKeyReleased(KeyEvent evt) {
    if (evt.getKeyCode() == KeyEvent.VK_F9) {
     
      try {
        Runner runner = new Runner();
       
        runner.run(conexao, memo.getSelectedText() != null ?
            memo .getSelectedText() : memo.getText());
       
        if (runner.getResultType() == ResultType.rtResultSet) {       
          ModeloDeTabela modelo = new TabelaRolanteModelo(runner.getResultSet()); // defino o modelo na tabela
          grid.setModel(modelo);
        } else {
          JOptionPane.showMessageDialog(this, "Ok, " + runner.getCount() + " registros afetados");
        }
      } catch (Exception e) {
        JOptionPane.showMessageDialog(this, e.getMessage());
      }
       
View Full Code Here

Examples of org.apache.james.mpt.Runner

    public void run() throws Exception {
       System.out.println("Running " + file + " against " + host + ":"  + port + "...");
      
       final ExternalHostSystem host = new ExternalHostSystem(this.host, port, monitor, shabang, null);
       final ProtocolSessionBuilder builder = new ProtocolSessionBuilder();
       final Runner runner = new Runner();
      
       builder.addProtocolLines(file.getName(), new FileInputStream(file), runner.getTestElements());
       runner.runSessions(host);
    }
View Full Code Here

Examples of org.apache.niolex.commons.util.Runner

        new SHAUtil(){};
        new CipherUtil(){};
        new RSAHelper(){};
        new RSAUtil(){};
        // --
        new Runner(){};
        new KeyUtil(){};
        new FileUtil(){};
        // --
        new IgnoreException();
        new Synchronized();
View Full Code Here

Examples of org.apache.tomee.webapp.installer.Runner

            EasyMock.expectLastCall().andReturn(Status.REBOOT_REQUIRED);
            installer.getAlerts();
            EasyMock.expectLastCall().andReturn(new Alerts()).anyTimes();


            final Runner runner = new Runner(installer);
            EasyMock.replay(paths, installer);
            Assert.assertEquals("NONE", getValue("status", runner.execute(false)));
            Assert.assertEquals("NONE", getValue("status", runner.execute(false)));
            Assert.assertEquals("REBOOT_REQUIRED", getValue("status", runner.execute(true)));
            Assert.assertEquals("REBOOT_REQUIRED", getValue("status", runner.execute(false)));
            Assert.assertEquals("REBOOT_REQUIRED", getValue("status", runner.execute(true)));
            EasyMock.verify(paths, installer);
        }
        {
            final InstallerInterface installer = EasyMock.createStrictMock(InstallerInterface.class);
            final Runner runner = new Runner(installer);
            EasyMock.replay(installer);
            Assert.assertEquals("REBOOT_REQUIRED", getValue("status", runner.execute(false)));
            Assert.assertEquals("REBOOT_REQUIRED", getValue("status", runner.execute(true)));
            EasyMock.verify(installer);
        }

    }
View Full Code Here

Examples of org.exist.performance.Runner

        if (!(src.canRead() && src.isFile()))
            throw new BuildException("Cannot read input file: " + source);

        File outFile = new File(outputFile);

        Runner runner = null;
        try {
            DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
            factory.setNamespaceAware(true);
            factory.setValidating(false);
            DocumentBuilder builder = factory.newDocumentBuilder();
            Document doc = builder.parse(src);

            TestResultWriter writer = new TestResultWriter(outFile.getAbsolutePath());
            runner = new Runner(doc.getDocumentElement(), writer);
            runner.run(group);
        } catch (Exception e) {
            throw new BuildException("ERROR: " + e.getMessage(), e);
        } finally {
            if (runner != null)
                runner.shutdown();
        }
    }
View Full Code Here

Examples of org.jdesktop.wonderland.runner.Runner

            decname = URLDecoder.decode(runner, "UTF-8");
        } catch (IOException ioe) {
            throw new WebServiceException(ioe);
        }
       
        Runner r = rm.get(decname);
        if (r == null) {
            ResponseBuilder rb = Response.status(Status.NOT_ACCEPTABLE);
            return rb.entity("No such runner: " + runner).type("text/plain").build();
        }
        if (!(r instanceof BaseRemoteRunner)) {
View Full Code Here
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.