Package ratpack.test.embed.internal

Examples of ratpack.test.embed.internal.LaunchConfigEmbeddedApp


   *
   * @param function a function that builds a launch config from a launch config builder
   * @return a newly created embedded application
   */
  static EmbeddedApp fromLaunchConfigBuilder(Function<? super LaunchConfigBuilder, ? extends LaunchConfig> function) {
    return new LaunchConfigEmbeddedApp() {
      @Override
      protected LaunchConfig createLaunchConfig() {
        return uncheck(() -> function.apply(LaunchConfigBuilder.noBaseDir().development(true).port(0)));
      }
    };
View Full Code Here


   * @param baseDir the base dir for the embedded app
   * @param function a function that builds a launch config from a launch config builder
   * @return a newly created embedded application
   */
  static EmbeddedApp fromLaunchConfigBuilder(Path baseDir, Function<? super LaunchConfigBuilder, ? extends LaunchConfig> function) {
    return new LaunchConfigEmbeddedApp() {
      @Override
      protected LaunchConfig createLaunchConfig() {
        return uncheck(() -> function.apply(LaunchConfigBuilder.baseDir(baseDir).development(true).port(0)));
      }
    };
View Full Code Here

  }

  public static EmbeddedApp build(@DelegatesTo(value = Spec.class, strategy = Closure.DELEGATE_FIRST) Closure<?> closure) {


    return new LaunchConfigEmbeddedApp() {
      @Override
      protected LaunchConfig createLaunchConfig() {
        final SpecWrapper spec = new SpecWrapper();
        configureDelegateFirst(spec.getSpec(), closure);
        LaunchConfigBuilder launchConfigBuilder;
View Full Code Here

TOP

Related Classes of ratpack.test.embed.internal.LaunchConfigEmbeddedApp

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.