# HG changeset patch # User one # Date 1381411173 -32400 # Node ID 0cb55616b76eb09d661f7bfcdf8b2d20da9a93e1 # Parent b0af3960917fffc8ed7e372532e1e8c6e3f9bb98 Removed NetworkNodeOperation diff -r b0af3960917f -r 0cb55616b76e src/alice/jungle/operations/NetworkNodeOperation.java --- 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 > Either invoke(T arg0) { - // TODO Auto-generated method stub - return null; - } - - -} diff -r b0af3960917f -r 0cb55616b76e src/test/alice/jungle/datasegment/NetworkNodePathTest.java --- 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 iter1 = path.iterator(); Iterator iter2 = mPath.iterator(); @@ -30,4 +27,6 @@ assertEquals(i1, i2); } } + + }