Package org.springframework.ws.server

Examples of org.springframework.ws.server.EndpointInvocationChain


                return "noSuchBean";
            }
        };
        mapping.setApplicationContext(applicationContext);

        EndpointInvocationChain result = mapping.getEndpoint(messageContext);

        assertNull("No endpoint returned", result);
    }
View Full Code Here


                return "endpoint";
            }
        };
        mapping.setApplicationContext(applicationContext);

        EndpointInvocationChain result = mapping.getEndpoint(messageContext);
        assertNotNull("No endpoint returned", result);
        result = mapping.getEndpoint(messageContext);
        assertNotNull("No endpoint returned", result);
        assertEquals("Prototype endpoint was not constructed twice", 2, MyEndpoint.constructorCount);
    }
View Full Code Here

        expect(requestMock.getSoapAction()).andReturn("http://springframework.org/spring-ws/SoapAction");
        WebServiceMessageFactory factoryMock = createMock(WebServiceMessageFactory.class);
        replay(requestMock, factoryMock);

        MessageContext context = new DefaultMessageContext(requestMock, factoryMock);
        EndpointInvocationChain chain = mapping.getEndpoint(context);
        Assert.assertNotNull("MethodEndpoint not registered", chain);
        Method doIt = MyEndpoint.class.getMethod("doIt", new Class[0]);
        MethodEndpoint expected = new MethodEndpoint("endpoint", applicationContext, doIt);
        Assert.assertEquals("Invalid endpoint registered", expected, chain.getEndpoint());

        verify(requestMock, factoryMock);
    }
View Full Code Here

      Method doItMultiple = MyEndpoint.class.getMethod("doItMultiple");
      MethodEndpoint expected = new MethodEndpoint("endpoint", applicationContext, doItMultiple);

        MessageContext context = new DefaultMessageContext(requestMock, factoryMock);
        EndpointInvocationChain chain = mapping.getEndpoint(context);
        Assert.assertNotNull("MethodEndpoint not registered", chain);
        Assert.assertEquals("Invalid endpoint registered", expected, chain.getEndpoint());

      chain = mapping.getEndpoint(context);
        Assert.assertNotNull("MethodEndpoint not registered", chain);
        Assert.assertEquals("Invalid endpoint registered", expected, chain.getEndpoint());

        verify(requestMock, factoryMock);
    }
View Full Code Here

      Method doItRepeatable = MyEndpoint.class.getMethod("doItRepeatable");
      MethodEndpoint expected = new MethodEndpoint("endpoint", applicationContext, doItRepeatable);

        MessageContext context = new DefaultMessageContext(requestMock, factoryMock);
        EndpointInvocationChain chain = mapping.getEndpoint(context);
        Assert.assertNotNull("MethodEndpoint not registered", chain);
        Assert.assertEquals("Invalid endpoint registered", expected, chain.getEndpoint());

      chain = mapping.getEndpoint(context);
        Assert.assertNotNull("MethodEndpoint not registered", chain);
        Assert.assertEquals("Invalid endpoint registered", expected, chain.getEndpoint());

        verify(requestMock, factoryMock);
    }
View Full Code Here

     * @see #setInterceptors(org.springframework.ws.server.EndpointInterceptor[])
     */
    protected EndpointInvocationChain createEndpointInvocationChain(MessageContext messageContext,
                                                                    Object endpoint,
                                                                    EndpointInterceptor[] interceptors) {
        return new EndpointInvocationChain(endpoint, interceptors);
    }
View Full Code Here

TOP

Related Classes of org.springframework.ws.server.EndpointInvocationChain

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.