Mercurial > hg > Database > jungle-network
comparison src/test/alice/jungle/core/operations/NetworkDeleteChildAtOperationTest.java @ 73:9ab7d515e076
Added NetworkDeleteChildAtOpration and Test
author | one |
---|---|
date | Tue, 15 Oct 2013 14:26:25 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
72:2520a5bd3dac | 73:9ab7d515e076 |
---|---|
1 package test.alice.jungle.core.operations; | |
2 | |
3 import java.io.IOException; | |
4 | |
5 import org.msgpack.MessagePack; | |
6 import org.msgpack.type.Value; | |
7 | |
8 import alice.jungle.operations.NetworkDeleteChildAtOperation; | |
9 import junit.framework.TestCase; | |
10 | |
11 public class NetworkDeleteChildAtOperationTest extends TestCase { | |
12 | |
13 | |
14 public void testMsgpackConvert() throws IOException { | |
15 NetworkDeleteChildAtOperation op = new NetworkDeleteChildAtOperation(1); | |
16 MessagePack msgpack = new MessagePack(); | |
17 Value v = msgpack.unconvert(op); | |
18 NetworkDeleteChildAtOperation mOp = msgpack.convert(v, NetworkDeleteChildAtOperation.class); | |
19 assertEquals(op.getCommand(), mOp.getCommand()); | |
20 assertEquals(op.getPosition(), mOp.getPosition()); | |
21 | |
22 } | |
23 | |
24 } |