本文整理汇总了Java中org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor类的典型用法代码示例。如果您正苦于以下问题:Java PayloadLoggingInterceptor类的具体用法?Java PayloadLoggingInterceptor怎么用?Java PayloadLoggingInterceptor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PayloadLoggingInterceptor类属于org.springframework.ws.server.endpoint.interceptor包,在下文中一共展示了PayloadLoggingInterceptor类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testAddInterceptor
import org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor; //导入依赖的package包/类
@Test
public void testAddInterceptor()
{
WsMockControl control = new WsMockControl().addInterceptor(new PayloadLoggingInterceptor()).throwException(new RuntimeException());
MockWebServiceMessageSender sender = (MockWebServiceMessageSender) control.createMock();
assertEquals(1, sender.getInterceptors().size());
assertEquals(PayloadLoggingInterceptor.class, sender.getInterceptors().get(0).getClass());
}
示例2: testCreateConnection
import org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor; //导入依赖的package包/类
@Test
public void testCreateConnection() throws Exception
{
AbstractMockWebServiceMessageSender sender = new MockWebServiceMessageSender();
URI uri = new URI("http://example.org/");
assertTrue(sender.supports(uri));
List<EndpointInterceptor> interceptors = Arrays.<EndpointInterceptor>asList(new PayloadLoggingInterceptor());
sender.setInterceptors(interceptors);
MockWebServiceConnection connection = (MockWebServiceConnection) sender.createConnection(uri);
assertNotNull(connection);
assertEquals(interceptors, connection.getInterceptors());
}
示例3: testWrapOne
import org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor; //导入依赖的package包/类
@Test
public void testWrapOne()
{
ClientInterceptor[] endpointInterceptors = EndpointInterceptorClientAdapter.wrapEndpointInterceptors(new EndpointInterceptor[]{new PayloadLoggingInterceptor()});
assertEquals(1, endpointInterceptors.length);
assertEquals(EndpointInterceptorClientAdapter.class, endpointInterceptors[0].getClass());
}
示例4: setUpMocks
import org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor; //导入依赖的package包/类
@Before
public void setUpMocks() throws Exception {
mockServer = createServer(webServiceTemplate, new EndpointInterceptor[]{new PayloadLoggingInterceptor()});
}
示例5: setApplicationContext
import org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor; //导入依赖的package包/类
@Autowired
public void setApplicationContext(ApplicationContext applicationContext)
{
createServer(applicationContext, new EndpointInterceptor[]{new PayloadLoggingInterceptor()});
}
示例6: setUpMocks
import org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor; //导入依赖的package包/类
@Before
public void setUpMocks() throws Exception {
mockServer = createServer(new EndpointInterceptor[]{new PayloadLoggingInterceptor()});
airlineClient = new AirlineClient();
}
示例7: CalcInterceptorTest
import org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor; //导入依赖的package包/类
public CalcInterceptorTest() {
//has to be in the constructor or bootstrapMock method has to be called before configuration is loaded.
mockServer = createServer(new EndpointInterceptor[]{new PayloadLoggingInterceptor()});
}
示例8: CalcInterceptorTest
import org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor; //导入依赖的package包/类
public CalcInterceptorTest() {
mockServer = createServer(new EndpointInterceptor[]{new PayloadLoggingInterceptor()});
}