Examples of run()


Examples of org.speakright.itest.SRAutoTester.run()

    for(int i = 1; i <= numTests; i++) {
      logger.log("=============== TEST #" + i + " ===========================");
      if (! failed) {
        String cmds = tests[i - 1];
        SRAutoTester tester = new SRAutoTester(i, cmds);
        if (!tester.run(InteractiveTester.createTester())) {
          failed = true;
        }
      }
    }
    logger.log("TESTS FINISHED. ");
View Full Code Here

Examples of org.speakright.itest.SRInteractiveTester.run()

   * @param args
   */
  public static void main(String[] args) {
    System.out.println("simpsons demo..");
    SRInteractiveTester tester = createTester();
    tester.run();
    System.out.println("Done.");
  }

  /**
   * Creates and initializes the app and tester.
View Full Code Here

Examples of org.spoutcraft.client.packet.SpoutPacket.run()

      Iterator<CompressablePacket> i = instance.decompressed.iterator();
      while (i.hasNext()) {
        SpoutPacket packet = i.next();
        try {
          SpoutClient.getHandle().mcProfiler.startSection(packet.getPacketType().name());
          packet.run(SpoutClient.getHandle().thePlayer.entityId);
          i.remove();
        } catch (Exception e) {
          System.out.println("------------------------");
          System.out.println("Unexpected Exception: " + packet.getPacketType());
          e.printStackTrace();
View Full Code Here

Examples of org.spoutcraft.client.sound.QueuedSound.run()

      return;
    }
    File song = FileUtil.findFile(plugin, fileName);
    if (song != null && song.exists()) {
      QueuedSound action = new QueuedSound(song, x, y, z, volume, distance, soundEffect);
      action.run();
      return;
    } else {
      song = new File(directory, fileName);
    }
View Full Code Here

Examples of org.spoutcraft.launcher.async.Download.run()

        } else {
          url = SPLASH_URL;
        }

        Download download = new Download(url, backgroundImage.getPath());
        download.run();

      }
    } catch (Exception e) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.spoutcraft.launcher.util.Download.run()

      }

      ProgressSplashScreen splash = new ProgressSplashScreen();
      Download download = new Download(RestAPI.getLauncherDownloadURL(Settings.getLauncherChannel(), !codeSource.getName().endsWith(".exe")), temp.getPath());
      download.setListener(new LauncherDownloadListener(splash));
      download.run();

      ProcessBuilder processBuilder = new ProcessBuilder();
      ArrayList<String> commands = new ArrayList<String>();
      if (!codeSource.getName().endsWith(".exe")) {
        if (OperatingSystem.getOS().isWindows()) {
View Full Code Here

Examples of org.springframework.batch.core.launch.JobLauncher.run()

    List<JobExecution> executions = new ArrayList<JobExecution>(jobs.size());
    for (Map.Entry<String, Job> entry : jobs.entrySet()) {
      RuntimeException e = null;
      try {
        JobExecution jobExec = launcher.run(entry.getValue(), params);
        executions.add(jobExec);
        if (jobExec.getStatus().equals(BatchStatus.FAILED)) {
          e = new BeanInitializationException("Failed executing job " + entry.getKey());
        }
      } catch (Exception ex) {
View Full Code Here

Examples of org.springframework.batch.core.launch.support.SimpleJobLauncher.run()

        SimpleJobLauncher launcher = new SimpleJobLauncher();
        launcher.setJobRepository(new TestDummyJobRepository());
        launcher.afterPropertiesSet();

        Job job = new TestDummyJob("testRunJob");
        JobExecution execution = launcher.run(job, new JobParameters());
        assertNotNull("No job exectuion instance", execution);

        String jobName = job.getName();
        Operation op = assertOperationDetails(getFirstEntered(), "run", job.getName());
        assertOperationPath(op, jobName, null);
View Full Code Here

Examples of org.springframework.boot.SpringApplication.run()

  @Test
  public void testProjectionDataProperties() {
    SpringApplication app = new SpringApplication(TestConfiguration.class);
    app.setWebEnvironment(false);
    ConfigurableApplicationContext context = app.run(new String[] {
        "--spring.yarn.internal.ContainerClusterApplication.projectionDataAny=1",
        "--spring.yarn.internal.ContainerClusterApplication.projectionDataHosts.host1=1",
        "--spring.yarn.internal.ContainerClusterApplication.projectionDataRacks.rack1=1",
        "--spring.yarn.internal.ContainerClusterApplication.projectionDataHosts.host2=2",
        "--spring.yarn.internal.ContainerClusterApplication.projectionDataRacks.rack2=2" });
View Full Code Here

Examples of org.springframework.boot.builder.SpringApplicationBuilder.run()

    application.initializers(new ServletContextApplicationContextInitializer(servletContext));
    application.contextClass(AnnotationConfigEmbeddedWebApplicationContext.class);
    application = configure(application);
    // Ensure error pages are registered
    application.sources(ErrorFilter.class);
    return (WebApplicationContext) application.run();
  }

  protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
    // entry point (WAR)
    printLogo();
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.