Examples of perform()


Examples of org.iosgi.outpost.Client.perform()

    Client c = new Client("localhost");
    c.connect(5, TimeUnit.SECONDS);
    File dir = new File(new File("."), "test");
    Assert.assertFalse(dir.exists());
    MkDir mkdir = new MkDir(dir);
    c.perform(mkdir);
    Assert.assertTrue(dir.exists());
    Assert.assertTrue(dir.isDirectory());
    dir.delete();
  }
 
View Full Code Here

Examples of org.japura.controller.messages.ScreenShotMessage.perform()

  @Override
  public void subscribe(Message message, Object publisher) {
  if (message instanceof ScreenShotMessage) {
    ScreenShotMessage ssm = (ScreenShotMessage) message;
    if (isComponentInstancied()) {
    ssm.perform(getComponent());
    }
  }
  }

}
View Full Code Here

Examples of org.jbehave.core.steps.Step.perform()

    @Test
    public void shouldRunStepsBeforeAndAfterStories() throws Throwable {
        // Given
        Step beforeStep = mock(Step.class, "beforeStep");
        StepResult beforeResult = mock(StepResult.class);
        when(beforeStep.perform(null)).thenReturn(beforeResult);
        Step afterStep = mock(Step.class, "afterStep");
        StepResult afterResult = mock(StepResult.class);
        when(afterStep.perform(null)).thenReturn(afterResult);
        StepCollector collector = mock(StepCollector.class);
        CandidateSteps mySteps = new Steps();
View Full Code Here

Examples of org.jboss.arquillian.warp.impl.shared.command.Command.perform()

            Manager manager = (Manager)request.getAttribute(ARQUILLIAN_MANAGER_ATTRIBUTE);
            // execute remote Event
            try{
                manager.fire(new ActivateManager(manager));
                manager.inject(operation);
                operation.perform();
                manager.fire(new PassivateManager(manager));
            } catch (Throwable e) {
                payload.setThrowable(e);
            }
            response.setStatus(HttpServletResponse.SC_OK);
View Full Code Here

Examples of org.jboss.forge.addon.manager.InstallRequest.perform()

         for (AddonId addon : addons)
         {
            logger.info("Installing " + addon);
            InstallRequest request = addonManager.install(addon);
            logger.info(request.toString());
            request.perform();
         }
      }
      catch (Exception e)
      {
         e.printStackTrace();
View Full Code Here

Examples of org.jboss.forge.addon.resource.visit.ResourceVisit.perform()

   public void visitWebResources(ResourceVisitor visitor)
   {
      for (DirectoryResource root : getWebRootDirectories())
      {
         ResourceVisit visit = new ResourceVisit(root);
         visit.perform(visitor, new ResourceFilter()
         {
            @Override
            public boolean accept(Resource<?> resource)
            {
               return resource instanceof DirectoryResource;
View Full Code Here

Examples of org.jboss.forge.furnace.manager.request.AddonActionRequest.perform()

         }

         // FIXME: May prompt for confirmation
         AddonActionRequest request = addonManager.install(addon);
         System.out.println(request);
         request.perform();
      }
      catch (Exception e)
      {
         e.printStackTrace();
         System.out.println("> Forge version [" + AddonRepositoryImpl.getRuntimeAPIVersion() + "]");
View Full Code Here

Examples of org.jboss.forge.furnace.manager.request.InstallRequest.perform()

         AddonId id = AddonId.from(coordinate.getGroupId() + ":" + coordinate.getArtifactId(), coordinate.getVersion());
         RemoveRequest removeRequest = addonManager.remove(id);
         removeRequest.perform();
         Addons.waitUntilStopped(registry.getAddon(id));
         InstallRequest installRequest = addonManager.install(id);
         installRequest.perform();
         return Results.success("Addon " + coordinate.toString() + " was installed succesfully.");
      }
      catch (Throwable t)
      {
         return Results.fail("Addon " + coordinate.toString() + " could not be installed.", t);
View Full Code Here

Examples of org.jboss.forge.furnace.manager.request.RemoveRequest.perform()

      try
      {
         AddonId id = AddonId.from(coordinate.getGroupId() + ":" + coordinate.getArtifactId(), coordinate.getVersion());
         RemoveRequest removeRequest = addonManager.remove(id);
         removeRequest.perform();
         Addons.waitUntilStopped(registry.getAddon(id));
         InstallRequest installRequest = addonManager.install(id);
         installRequest.perform();
         return Results.success("Addon " + coordinate.toString() + " was installed succesfully.");
      }
View Full Code Here

Examples of org.jboss.forge.shell.command.Execution.perform()

            }

            String pipeIn = forwardPipe != null ? forwardPipe.getBuffer() : null;
            Execution execution = executionParser.parse(outQueue, pipeIn, pipeOut);
            execution.verifyConstraints(shell);
            execution.perform(forwardPipe);
         }
      }
      while ((n = n.next) != null);
   }
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.