Package org.simpleframework.http

Examples of org.simpleframework.http.Response


   
    @Test public void
    indicatesResourcesThatAreNotFound() throws IOException {
        final Resource resource = engine.resolve(new AddressParser("http://ci-eye/sausage"));
        final Request request = context.mock(Request.class);
        final Response response = context.mock(Response.class);
       
        context.checking(new Expectations() {{
            oneOf(response).setCode(404);
            allowing(response).getOutputStream(); will(returnValue(new ByteArrayOutputStream()));
            ignoring(response);
View Full Code Here


    @Test public void
    redirectsLandscapeResourcesWithoutTrailingSlash() throws IOException {
        final Resource resource = engine.resolve(new AddressParser("http://ci-eye/landscapes/myLandscape"));
        final Request request = context.mock(Request.class);
        final Response response = context.mock(Response.class);
       
        context.checking(new Expectations() {{
            oneOf(response).setCode(301);
            allowing(response).getOutputStream(); will(returnValue(new ByteArrayOutputStream()));
            ignoring(response);
View Full Code Here

TOP

Related Classes of org.simpleframework.http.Response

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.