Examples of MethodEndpoint


Examples of org.springframework.ws.server.endpoint.MethodEndpoint

        messageContext = new DefaultMessageContext(new MockWebServiceMessageFactory());
    }

    @Test
    public void testSupportedNoResponse() throws NoSuchMethodException {
        MethodEndpoint methodEndpoint = new MethodEndpoint(this, "noResponse", new Class[]{DOMSource.class});
        Assert.assertTrue("Method unsupported", adapter.supportsInternal(methodEndpoint));
    }
View Full Code Here

Examples of org.springframework.ws.server.endpoint.MethodEndpoint

        Assert.assertTrue("Method unsupported", adapter.supportsInternal(methodEndpoint));
    }

    @Test
    public void testSupportedResponse() throws NoSuchMethodException {
        MethodEndpoint methodEndpoint = new MethodEndpoint(this, "response", new Class[]{StreamSource.class});
        Assert.assertTrue("Method unsupported", adapter.supportsInternal(methodEndpoint));
    }
View Full Code Here

Examples of org.springframework.ws.server.endpoint.MethodEndpoint

    }

    @Test
    public void testUnsupportedMethodMultipleParams() throws NoSuchMethodException {
        Assert.assertFalse("Method supported", adapter.supportsInternal(
                new MethodEndpoint(this, "unsupportedMultipleParams", new Class[]{Source.class, Source.class})));
    }
View Full Code Here

Examples of org.springframework.ws.server.endpoint.MethodEndpoint

    }

    @Test
    public void testUnsupportedMethodWrongReturnType() throws NoSuchMethodException {
        Assert.assertFalse("Method supported", adapter.supportsInternal(
                new MethodEndpoint(this, "unsupportedWrongReturnType", new Class[]{Source.class})));
    }
View Full Code Here

Examples of org.springframework.ws.server.endpoint.MethodEndpoint

    }

    @Test
    public void testUnsupportedMethodWrongParam() throws NoSuchMethodException {
        Assert.assertFalse("Method supported",
                adapter.supportsInternal(new MethodEndpoint(this, "unsupportedWrongParam", new Class[]{String.class})));
    }
View Full Code Here

Examples of org.springframework.ws.server.endpoint.MethodEndpoint

                adapter.supportsInternal(new MethodEndpoint(this, "unsupportedWrongParam", new Class[]{String.class})));
    }

    @Test
    public void testNoResponse() throws Exception {
        MethodEndpoint methodEndpoint = new MethodEndpoint(this, "noResponse", new Class[]{DOMSource.class});
        Assert.assertFalse("Method invoked", noResponseInvoked);
        adapter.invoke(messageContext, methodEndpoint);
        Assert.assertTrue("Method not invoked", noResponseInvoked);
    }
View Full Code Here

Examples of org.springframework.ws.server.endpoint.MethodEndpoint

    @Test
    public void testResponse() throws Exception {
        WebServiceMessage request = new MockWebServiceMessage("<request/>");
        messageContext = new DefaultMessageContext(request, new MockWebServiceMessageFactory());
        MethodEndpoint methodEndpoint = new MethodEndpoint(this, "response", new Class[]{StreamSource.class});
        Assert.assertFalse("Method invoked", responseInvoked);
        adapter.invoke(messageContext, methodEndpoint);
        Assert.assertTrue("Method not invoked", responseInvoked);
    }
View Full Code Here

Examples of org.springframework.ws.server.endpoint.MethodEndpoint

        messageContext = new DefaultMessageContext(new MockWebServiceMessageFactory());
    }

    @Test
    public void testSupported() throws NoSuchMethodException {
        MethodEndpoint methodEndpoint = new MethodEndpoint(this, "supported", new Class[]{MessageContext.class});
        Assert.assertTrue("Method unsupported", adapter.supportsInternal(methodEndpoint));
    }
View Full Code Here

Examples of org.springframework.ws.server.endpoint.MethodEndpoint

    }

    @Test
    public void testUnsupportedMethodMultipleParams() throws NoSuchMethodException {
        Assert.assertFalse("Method supported", adapter.supportsInternal(
                new MethodEndpoint(this, "unsupportedMultipleParams",
                        new Class[]{MessageContext.class, MessageContext.class})));
    }
View Full Code Here

Examples of org.springframework.ws.server.endpoint.MethodEndpoint

    }

    @Test
    public void testUnsupportedMethodWrongParam() throws NoSuchMethodException {
        Assert.assertFalse("Method supported",
                adapter.supportsInternal(new MethodEndpoint(this, "unsupportedWrongParam", new Class[]{String.class})));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.