use of org.springframework.integration.xml.config.StubResultFactory.StubStringResult in project spring-integration by spring-projects.
the class XsltPayloadTransformerParserTests method testWithResourceProvidedAndStubResultFactory.
@Test
public void testWithResourceProvidedAndStubResultFactory() throws Exception {
MessageChannel input = (MessageChannel) applicationContext.getBean("withTemplatesAndResultFactoryIn");
GenericMessage<Object> message = new GenericMessage<Object>(XmlTestUtil.getDomSourceForString(doc));
input.send(message);
Message<?> result = output.receive(0);
assertTrue("Payload was not a StubStringResult", result.getPayload() instanceof StubStringResult);
}
use of org.springframework.integration.xml.config.StubResultFactory.StubStringResult in project spring-integration by spring-projects.
the class MarshallingTransformerParserTests method testCustomResultFactory.
@Test
public void testCustomResultFactory() throws Exception {
MessageChannel input = (MessageChannel) appContext.getBean("marshallingTransformerCustomResultFactory");
GenericMessage<Object> message = new GenericMessage<Object>("hello");
input.send(message);
Message<?> result = output.receive(0);
assertTrue("Wrong payload type", result.getPayload() instanceof StubStringResult);
}
Aggregations