Package com.example

Examples of com.example.TestBindingStub


public class NeedsAuthTestCase extends TestServiceTestCase {

    @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


        Assert.assertEquals("hello user", port.say_hello());
    }

    @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(
View Full Code Here

TOP

Related Classes of com.example.TestBindingStub

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.