Package org.bladerunnerjs.testing.specutility.engine

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


   
    return commanderChainer;
  }
 
  public CommanderChainer runUserCommand(final String... args) {
    call(new Command() {
      public void call() throws Exception {
        brjs.runUserCommand(new MockLogLevelAccessor(), args);
      }
    });
   
View Full Code Here


    return commanderChainer;
  }
 
  public CommanderChainer discoverApps()
  {
    call(new Command() {
      public void call() throws Exception {
        brjs.userApps();
      }
    });
   
View Full Code Here

   
    return commanderChainer;
  }

  public CommanderChainer discoverAllChildren() {
    call(new Command() {
      public void call() throws Exception {
        brjs.discoverAllChildren();
      }
    });
   
View Full Code Here

   
    return commanderChainer;
  }
 
  public CommanderChainer hasBeenCreated() {
    call(new Command() {
      public void call() throws Exception {
        specTest.brjs = specTest.createModel();
      }
    });
   
View Full Code Here

    super(modelTest);
    this.appConf = appConf;
  }
 
  public AppConfCommander setAppNamespace(final String requirePrefix) throws Exception {
    call(new Command() {
      public void call() throws Exception {
        appConf.setRequirePrefix(requirePrefix);
        appConf.write();
      }
    });
View Full Code Here

   
    return this;
  }
 
  public AppConfCommander setLocales(final String locales) throws Exception {
    call(new Command() {
      public void call() throws Exception {
        List<Locale> createdLocales = new ArrayList<Locale>();
        for (String locale : locales.split(",")) {
          createdLocales.add( new Locale(locale) );
        }
View Full Code Here

  public BundleInfoCommander getBundleInfo() throws Exception {
    return new BundleInfoCommander((aspect.getBundleSet()));
  }
 
  public CommanderChainer indexPageLoadedInDev(final StringBuffer pageResponse, final String locale) throws ConfigException, IOException, ModelOperationException, NoTagHandlerFoundException {
    call(new Command() {
      public void call() throws Exception {
        pageLoaded(pageResponse, new Locale(locale), RequestMode.Dev);
      }
    });
   
View Full Code Here

   
    return commanderChainer;
  }

  public CommanderChainer indexPageLoadedInProd(final StringBuffer pageResponse, final String locale) throws ConfigException, IOException, ModelOperationException, NoTagHandlerFoundException {
    call(new Command() {
      public void call() throws Exception {
        pageLoaded(pageResponse, new Locale(locale), RequestMode.Prod);
      }
    });
   
View Full Code Here

   
    return commanderChainer;
  }
 
  public CommanderChainer retrievesAlias(final String aliasName) throws Exception {
    call(new Command() {
      public void call() throws Exception {
        aspect.aliasesFile().getAlias(aliasName);
      }
    });
   
View Full Code Here

    super(modelTest, jsLib);
    this.jsLib = jsLib;
  }
 
  public CommanderChainer populate(final String libraryNamespace) {
    call(new Command() {
      public void call() throws Exception {
        jsLib.populate(libraryNamespace);
      }
    });
   
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.