Package org.bladerunnerjs.testing.specutility.engine

Examples of org.bladerunnerjs.testing.specutility.engine.Command


    super(specTest, app);
    this.app = app;
  }
 
  public CommanderChainer populate(final String requirePrefix) {
    call(new Command() {
      public void call() throws Exception {
        app.populate(requirePrefix);
      }
    });
   
View Full Code Here


   
    return commanderChainer;
  }
 
  public CommanderChainer deployApp() {
    call(new Command() {
      public void call() throws Exception {
        app.deploy();
      }
    });
   
View Full Code Here

    return commander;
  }

  public CommanderChainer fileCreated(final String filePath)
  {
    call(new Command() {
      public void call() throws Exception {
        app.file(filePath).createNewFile();
      }
    });
   
View Full Code Here

   
    return commanderChainer;
  }
 
  public CommanderChainer requestReceived(final String requestPath, final StringBuffer response) throws MalformedRequestException, ResourceNotFoundException, ContentProcessingException, UnsupportedEncodingException {
    call(new Command() {
      public void call() throws Exception {
        ResponseContent contentOutput = app.handleLogicalRequest(requestPath, new StaticContentAccessor(app));
        ByteArrayOutputStream pluginContent = new ByteArrayOutputStream();
        contentOutput.write(pluginContent);
        response.append( pluginContent );
View Full Code Here

    return commanderChainer;
  }

  public CommanderChainer fileDeleted(final String filePath)
  {
    call(new Command() {
      public void call() throws Exception {
        File deleteFile = app.file(filePath);
        FileUtils.forceDelete( deleteFile );
        assertFalse( "failed to delete " + deleteFile.getAbsolutePath(), deleteFile.exists() );
      }
View Full Code Here

    return commanderChainer;
  }

  public CommanderChainer fileContentsChangeTo(final String filePath, final String fileContents)
  {
    call(new Command() {
      public void call() throws Exception {
        fileUtil.write(app.file(filePath), fileContents);
      }
    });
   
View Full Code Here

    return commanderChainer;
  }

  public CommanderChainer aspectsListed()
  {
    call(new Command() {
      public void call() throws Exception {
        app.aspects();
      }
    });
   
View Full Code Here

    return commanderChainer;
  }
 
  public CommanderChainer bladesetsListed()
  {
    call(new Command() {
      public void call() throws Exception {
        app.bladesets();
      }
    });
   
View Full Code Here

    super(modelTest, brjs);
    this.brjs = brjs;
  }
 
  public CommanderChainer populate() throws Exception {
    call(new Command() {
      public void call() throws Exception {
        brjs.populate();
      }
    });
   
View Full Code Here

   
    return commander;
  }
 
  public CommanderChainer runCommand(final String... args) throws Exception {
    call(new Command() {
      public void call() throws Exception {
        brjs.runCommand(args);
      }
    });
   
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.testing.specutility.engine.Command

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.