comparison src/test/java/org/msgpack/annotation/TestOptionalBufferPackUnpack.java @ 0:cb825acd883a

first commit
author sugi
date Sat, 18 Oct 2014 15:06:15 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cb825acd883a
1 package org.msgpack.annotation;
2
3 import java.io.ByteArrayInputStream;
4
5 import org.junit.Test;
6 import org.msgpack.MessagePack;
7
8
9 public class TestOptionalBufferPackUnpack {
10
11 @org.junit.Ignore
12 public static class TestMessagePack extends TestSetOptional {
13 public void testOptional0101() throws Exception {
14 super.testOptional0101();
15 }
16
17 public MyMessage01 testOptional0101(MyMessage01 src) throws Exception {
18 MessagePack msgpack = new MessagePack();
19 byte[] bytes = msgpack.write(src);
20 ByteArrayInputStream in = new ByteArrayInputStream(bytes);
21 return msgpack.read(in, MyMessage01.class);
22 }
23
24 public void testOptional0102() throws Exception {
25 super.testOptional0102();
26 }
27
28 public MyMessage02 testOptional0102(MyMessage01 src) throws Exception {
29 MessagePack msgpack = new MessagePack();
30 byte[] bytes = msgpack.write(src);
31 ByteArrayInputStream in = new ByteArrayInputStream(bytes);
32 return msgpack.read(in, MyMessage02.class);
33 }
34
35 public void testOptional0103() throws Exception {
36 super.testOptional0103();
37 }
38
39 public MyMessage03 testOptional0103(MyMessage01 src) throws Exception {
40 MessagePack msgpack = new MessagePack();
41 byte[] bytes = msgpack.write(src);
42 ByteArrayInputStream in = new ByteArrayInputStream(bytes);
43 return msgpack.read(in, MyMessage03.class);
44 }
45
46 public void testOptional0203() throws Exception {
47 super.testOptional0203();
48 }
49
50 public MyMessage03 testOptional0202(MyMessage02 src) throws Exception {
51 MessagePack msgpack = new MessagePack();
52 byte[] bytes = msgpack.write(src);
53 ByteArrayInputStream in = new ByteArrayInputStream(bytes);
54 return msgpack.read(in, MyMessage03.class);
55 }
56 }
57
58 @Test
59 public void test0101() throws Exception {
60 new TestMessagePack().testOptional0101();
61 }
62 @Test
63 public void test0102() throws Exception {
64 new TestMessagePack().testOptional0102();
65 }
66 @Test
67 public void test0103() throws Exception {
68 new TestMessagePack().testOptional0103();
69 }
70 @Test
71 public void test0203() throws Exception {
72 new TestMessagePack().testOptional0203();
73 }
74 }