changeset 69:0cb55616b76e

Removed NetworkNodeOperation
author one
date Thu, 10 Oct 2013 22:19:33 +0900
parents b0af3960917f
children 892bac9ac118
files src/alice/jungle/operations/NetworkNodeOperation.java src/test/alice/jungle/datasegment/NetworkNodePathTest.java
diffstat 2 files changed, 3 insertions(+), 51 deletions(-) [+]
line wrap: on
line diff
--- a/src/alice/jungle/operations/NetworkNodeOperation.java	Thu Oct 10 20:26:33 2013 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-package alice.jungle.operations;
-
-import java.nio.ByteBuffer;
-
-import org.msgpack.annotation.Message;
-
-import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.Command;
-import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.operations.NodeOperation;
-import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.store.trasnformer.EditableNode;
-import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Either;
-import jp.ac.u_ryukyu.ie.cr.shoshi.jungle.util.Error;
-
-@Message
-public class NetworkNodeOperation implements NodeOperation {
-
-	@Override
-	public Command getCommand() {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public String getKey() {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public int getPosition() {
-		// TODO Auto-generated method stub
-		return 0;
-	}
-
-	@Override
-	public ByteBuffer getValue() {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	@Override
-	public <T extends EditableNode<T>> Either<Error, T> invoke(T arg0) {
-		// TODO Auto-generated method stub
-		return null;
-	}
-	
-
-}
--- a/src/test/alice/jungle/datasegment/NetworkNodePathTest.java	Thu Oct 10 20:26:33 2013 +0900
+++ b/src/test/alice/jungle/datasegment/NetworkNodePathTest.java	Thu Oct 10 22:19:33 2013 +0900
@@ -12,15 +12,12 @@
 public class NetworkNodePathTest extends TestCase {
 
 
-	public void testMsgConvert() throws IOException {
+	public void testMsgpackConvert() throws IOException {
 		NetworkNodePath path = new NetworkNodePath();
 		path = path.add(1).add(2).add(3);
 		MessagePack msgpack = new MessagePack();
 		Value value = msgpack.unconvert(path);
 		NetworkNodePath mPath = msgpack.convert(value, NetworkNodePath.class);
-		for (Integer i : mPath) {
-			System.out.println(i);	
-		}
 		assertEquals(path.size(), mPath.size());
 		Iterator<Integer> iter1 = path.iterator();
 		Iterator<Integer> iter2 = mPath.iterator();
@@ -30,4 +27,6 @@
 			assertEquals(i1, i2);
 		}
 	}
+	
+	
 }