當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。