Package org.sentinel.servers.http.protocol

Examples of org.sentinel.servers.http.protocol.HTTPResponseHeaders


{

    @Test
    public void testToString()
    {
        HTTPResponseHeaders headers = new HTTPResponseHeaders("HTTP/1.1 200");
        assertEquals("HTTP/1.1 200 OK\n", headers.toString());
    }
View Full Code Here


    }

    @Test
    public void testToStringWithBadStatusCode()
    {
        HTTPResponseHeaders headers = new HTTPResponseHeaders("HTTP/1.1 999");
        assertEquals("HTTP/1.1 999\n", headers.toString());
    }
View Full Code Here

    }
   
    @Test
    public void testVersion()
    {
        HTTPResponseHeaders headers = new HTTPResponseHeaders();
        headers.setVersion("HTTP/1.1");
        assertEquals("HTTP/1.1", headers.getVersion());
    }
View Full Code Here

    }
   
    @Test
    public void testStatus()
    {
        HTTPResponseHeaders headers = new HTTPResponseHeaders();
        headers.setStatus(304);
        assertEquals(304, headers.getStatus());
    }
View Full Code Here

TOP

Related Classes of org.sentinel.servers.http.protocol.HTTPResponseHeaders

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.