Package ratpack.groovy.test.handling

Examples of ratpack.groovy.test.handling.GroovyRequestFixture


   * @throws Exception any thrown by {@code closure}
   */
  @SuppressWarnings("overloads")
  public static HandlingResult handle(Handler handler, @DelegatesTo(GroovyRequestFixture.class) final Closure<?> closure) throws Exception {
    return UnitTest.handle(handler, builder -> {
      GroovyRequestFixture groovyBuilder = new DefaultGroovyRequestFixture(builder);
      ClosureUtil.configureDelegateFirst(groovyBuilder, closure);
    });
  }
View Full Code Here


   * @throws Exception any thrown by {@code closure}
   */
  @SuppressWarnings("overloads")
  public static HandlingResult handle(Action<? super Chain> handlers, @DelegatesTo(GroovyRequestFixture.class) final Closure<?> closure) throws Exception {
    return UnitTest.handle(handlers, builder -> {
      GroovyRequestFixture groovyBuilder = new DefaultGroovyRequestFixture(builder);
      ClosureUtil.configureDelegateFirst(groovyBuilder, closure);
    });
  }
View Full Code Here

TOP

Related Classes of ratpack.groovy.test.handling.GroovyRequestFixture

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.