Search in sources :

Example 6 with CompressionInInterceptor

use of org.talend.esb.policy.compression.impl.CompressionInInterceptor in project tesb-rt-se by Talend.

the class CompressionInInterceptorTest method handleGetMessage.

@Test
public void handleGetMessage() throws Exception {
    CompressionInInterceptor c = new CompressionInInterceptor();
    Map<String, Object> map = new HashMap<String, Object>();
    map.put(Message.HTTP_REQUEST_METHOD, "GET");
    Message message = CompressionCommonTest.getMessageStub(null, map);
    c.decompressMessage(message);
}
Also used : Message(org.apache.cxf.message.Message) HashMap(java.util.HashMap) CompressionInInterceptor(org.talend.esb.policy.compression.impl.CompressionInInterceptor) Test(org.junit.Test)

Aggregations

CompressionInInterceptor (org.talend.esb.policy.compression.impl.CompressionInInterceptor)6 Test (org.junit.Test)5 Message (org.apache.cxf.message.Message)4 HashMap (java.util.HashMap)2 CompressionOutInterceptor (org.talend.esb.policy.compression.impl.CompressionOutInterceptor)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 InputStream (java.io.InputStream)1 ArrayList (java.util.ArrayList)1 XMLInputFactory (javax.xml.stream.XMLInputFactory)1 XMLStreamReader (javax.xml.stream.XMLStreamReader)1 Interceptor (org.apache.cxf.interceptor.Interceptor)1 InterceptorProvider (org.apache.cxf.interceptor.InterceptorProvider)1 CompressionFeature (org.talend.esb.policy.compression.feature.CompressionFeature)1