Mercurial > hg > Members > sugi > MessagePack-java
comparison src/test/java/org/msgpack/annotation/TestOptionalPackBufferUnpack.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 org.junit.Test; | |
4 import org.msgpack.MessagePack; | |
5 | |
6 | |
7 public class TestOptionalPackBufferUnpack { | |
8 | |
9 @org.junit.Ignore | |
10 public static class TestMessagePack extends TestSetOptional { | |
11 public void testOptional0101() throws Exception { | |
12 super.testOptional0101(); | |
13 } | |
14 | |
15 public MyMessage01 testOptional0101(MyMessage01 src) throws Exception { | |
16 MessagePack msgpack = new MessagePack(); | |
17 byte[] bytes = msgpack.write(src); | |
18 return msgpack.read(bytes, MyMessage01.class); | |
19 } | |
20 | |
21 public void testOptional0102() throws Exception { | |
22 super.testOptional0102(); | |
23 } | |
24 | |
25 public MyMessage02 testOptional0102(MyMessage01 src) throws Exception { | |
26 MessagePack msgpack = new MessagePack(); | |
27 byte[] bytes = msgpack.write(src); | |
28 return msgpack.read(bytes, MyMessage02.class); | |
29 } | |
30 | |
31 public void testOptional0103() throws Exception { | |
32 super.testOptional0103(); | |
33 } | |
34 | |
35 public MyMessage03 testOptional0103(MyMessage01 src) throws Exception { | |
36 MessagePack msgpack = new MessagePack(); | |
37 byte[] bytes = msgpack.write(src); | |
38 return msgpack.read(bytes, MyMessage03.class); | |
39 } | |
40 | |
41 public void testOptional0203() throws Exception { | |
42 super.testOptional0203(); | |
43 } | |
44 | |
45 public MyMessage03 testOptional0202(MyMessage02 src) throws Exception { | |
46 MessagePack msgpack = new MessagePack(); | |
47 byte[] bytes = msgpack.write(src); | |
48 return msgpack.read(bytes, MyMessage03.class); | |
49 } | |
50 } | |
51 | |
52 @Test | |
53 public void test0101() throws Exception { | |
54 new TestMessagePack().testOptional0101(); | |
55 } | |
56 @Test | |
57 public void test0102() throws Exception { | |
58 new TestMessagePack().testOptional0102(); | |
59 } | |
60 @Test | |
61 public void test0103() throws Exception { | |
62 new TestMessagePack().testOptional0103(); | |
63 } | |
64 @Test | |
65 public void test0203() throws Exception { | |
66 new TestMessagePack().testOptional0203(); | |
67 } | |
68 } |