当前位置: 首页>>代码示例>>Java>>正文


Java PayloadLoggingInterceptor类代码示例

本文整理汇总了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());
}
 
开发者ID:lukas-krecan,项目名称:spring-ws-test,代码行数:9,代码来源:WsMockControlTest.java

示例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());
}
 
开发者ID:lukas-krecan,项目名称:spring-ws-test,代码行数:15,代码来源:MockWebServiceMessageSenderTest.java

示例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());
}
 
开发者ID:lukas-krecan,项目名称:smock,代码行数:8,代码来源:EndpointInterceptorClientAdapterTest.java

示例4: setUpMocks

import org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor; //导入依赖的package包/类
@Before
public void setUpMocks() throws Exception {
    mockServer = createServer(webServiceTemplate, new EndpointInterceptor[]{new PayloadLoggingInterceptor()});
}
 
开发者ID:lukas-krecan,项目名称:smock,代码行数:5,代码来源:ClientInterceptorTest.java

示例5: setApplicationContext

import org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor; //导入依赖的package包/类
@Autowired
public void setApplicationContext(ApplicationContext applicationContext)
{
	createServer(applicationContext, new EndpointInterceptor[]{new PayloadLoggingInterceptor()});
}
 
开发者ID:lukas-krecan,项目名称:smock,代码行数:6,代码来源:ClientInterceptorSimpleTest.java

示例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();
}
 
开发者ID:lukas-krecan,项目名称:smock,代码行数:6,代码来源:CalcInterceptorTest.java

示例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()});
}
 
开发者ID:lukas-krecan,项目名称:smock,代码行数:5,代码来源:CalcInterceptorTest.java

示例8: CalcInterceptorTest

import org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor; //导入依赖的package包/类
public CalcInterceptorTest() {
    mockServer = createServer(new EndpointInterceptor[]{new PayloadLoggingInterceptor()});
}
 
开发者ID:lukas-krecan,项目名称:smock,代码行数:4,代码来源:CalcInterceptorTest.java


注:本文中的org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。