@Override
  protected void checkResult(MessageExchange exchange) {
    NormalizedMessage fault = exchange.getMessage("fault");

    assertNotNull(fault);
    assertNotNull(fault.getContent());
    assertEquals(VALUE, fault.getProperty(KEY));
  }
Beispiel #2
0
 protected void transform(MessageExchange exchange, NormalizedMessage in, NormalizedMessage out)
     throws TransformerException, MessagingException {
   Object result = transformer.transform(in.getContent());
   if (result instanceof Source) {
     out.setContent((Source) result);
   } else {
     throw new UnsupportedOperationException(
         "Support for Source transformation is not yet implemented");
   }
 }