1
2
3
4
5
6
7
8
9
10
11 package org.mule.transformer.wire;
12
13 import org.mule.api.transformer.wire.WireFormat;
14 import org.mule.transformer.simple.ByteArrayToMuleMessage;
15 import org.mule.transformer.simple.MuleMessageToByteArray;
16
17 import static org.junit.Assert.assertEquals;
18
19 public class SerializedMuleMessageWireFormatTestCase extends AbstractMuleMessageWireFormatTestCase
20 {
21
22 protected WireFormat getWireFormat() throws Exception
23 {
24 return createObject(SerializedMuleMessageWireFormat.class);
25 }
26
27 public void testGetDefaultInboundTransformer() throws Exception
28 {
29 SerializedMuleMessageWireFormat wireFormat = (SerializedMuleMessageWireFormat) getWireFormat();
30 assertEquals(ByteArrayToMuleMessage.class, wireFormat.getInboundTransformer().getClass());
31 }
32
33 public void testGetDefaultOutboundTransformer() throws Exception
34 {
35 SerializedMuleMessageWireFormat wireFormat = (SerializedMuleMessageWireFormat) getWireFormat();
36 assertEquals(MuleMessageToByteArray.class, wireFormat.getOutboundTransformer().getClass());
37 }
38
39 }