Package com.github.kevwil.aspen.domain

Examples of com.github.kevwil.aspen.domain.Request


    {
        _app = createMock( IRubyObject.class );
        _rack = new JRubyRackProxy( _app );
        ctx = RackUtil.buildDummyChannelHandlerContext( "localhost", "80" );
        hr = new DefaultHttpRequest( HttpVersion.HTTP_1_1, HttpMethod.GET, "http://localhost/" );
        r = new Request( ctx, hr, _runtime );
    }
View Full Code Here


        Channel channel = new DefaultLocalServerChannelFactory().newChannel( pipeline );
        HttpRequest hr = new DefaultHttpRequest( HttpVersion.HTTP_1_1, HttpMethod.GET, "http://localhost/" );
        MessageEvent e = new UpstreamMessageEvent(
                channel, hr, new InetSocketAddress( 54321 ) );
        ChannelHandlerContext ctx = RackUtil.buildDummyChannelHandlerContext( "localhost", "80" );
        Request request = createMockBuilder( Request.class ).withConstructor( ctx, hr, Ruby.getGlobalRuntime() ).createMock();
        Response response = new Response( request );

        expect( rack.getRuntime() ).andReturn( Ruby.getGlobalRuntime() );
        expect( rack.process( anyObject( Request.class ) ) ).andReturn( response );
        replay( request );
View Full Code Here

TOP

Related Classes of com.github.kevwil.aspen.domain.Request

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.