Package com.example.types

Examples of com.example.types.Headers


    @Test
    public void test() throws Exception {
        TestBindingStub stub = (TestBindingStub)port;
        stub.setHeader(
            "http://example.com/", "headers",
            (new Headers("user", "pass")));
        Assert.assertEquals("hello user", port.say_hello());
    }
View Full Code Here


    @Test
    public void test_exception() throws Exception {
        TestBindingStub stub = (TestBindingStub)port;
        stub.setHeader("http://example.com/", "headers",
            (new Headers("fake", "pass")));
        try {
            port.say_hello();
        } catch (com.example.types.Error e) {
            Assert.assertTrue(
                e.toString().equals("Access denied for user fake"));
View Full Code Here

TOP

Related Classes of com.example.types.Headers

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.