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.ByteArrayToSerializable;
15 import org.mule.transformer.simple.SerializableToByteArray;
16
17 import org.junit.Test;
18
19 import static org.junit.Assert.assertEquals;
20
21 public class SerializationWireFormatTestCase extends AbstractWireFormatTestCase
22 {
23
24 protected WireFormat getWireFormat() throws Exception
25 {
26 return createObject(SerializationWireFormat.class);
27 }
28
29 @Test
30 public void testGetDefaultInboundTransformer()
31 {
32 SerializationWireFormat wireFormat = new SerializationWireFormat();
33 assertEquals(ByteArrayToSerializable.class, wireFormat.getInboundTransformer().getClass());
34 }
35
36 @Test
37 public void testGetDefaultOutboundTransformer()
38 {
39 SerializationWireFormat wireFormat = new SerializationWireFormat();
40 assertEquals(SerializableToByteArray.class, wireFormat.getOutboundTransformer().getClass());
41 }
42
43 }