コード例 #1
0
 @Test
 public void withAdvice() {
   HttpRequestExecutingMessageHandler handler =
       (HttpRequestExecutingMessageHandler)
           new DirectFieldAccessor(this.withAdvice).getPropertyValue("handler");
   handler.handleMessage(new GenericMessage<String>("foo"));
   assertEquals(1, adviceCalled);
 }