diff src/test/alice/jungle/core/operations/NetworkDeleteAttributeOprationTest.java @ 72:2520a5bd3dac

Added NetworkDeleteAttributeOperation and NetworkDeleteAttributeOperationTest
author one
date Tue, 15 Oct 2013 09:13:18 +0900
parents
children 19e278488b42
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/test/alice/jungle/core/operations/NetworkDeleteAttributeOprationTest.java	Tue Oct 15 09:13:18 2013 +0900
@@ -0,0 +1,24 @@
+package test.alice.jungle.core.operations;
+
+import java.io.IOException;
+
+import org.msgpack.MessagePack;
+import org.msgpack.type.Value;
+
+import alice.jungle.operations.NetworkDeleteAttributeOperation;
+import junit.framework.TestCase;
+
+public class NetworkDeleteAttributeOprationTest extends TestCase {
+
+	public void testMsgpackConvert() throws IOException {
+		NetworkDeleteAttributeOperation op = new NetworkDeleteAttributeOperation("hoge");
+		MessagePack msgpack = new MessagePack();
+		Value v = msgpack.unconvert(op);
+		NetworkDeleteAttributeOperation mOp = msgpack.convert(v, NetworkDeleteAttributeOperation.class);
+		assertEquals(op.getCommand(), mOp.getCommand());
+		assertEquals(mOp.getKey(), "hoge");
+
+	}
+	
+	
+}