Mercurial > hg > Database > jungle-network
changeset 109:b6d2db67febe
Added tag
author | one |
---|---|
date | Tue, 26 Nov 2013 16:36:26 +0900 |
parents | d7bff80b1832 |
children | 164283d23f2d |
files | src/main/java/alice/jungle/operations/NetworkDeleteChildAtOperation.java src/main/java/alice/jungle/operations/NetworkPutAttributeOperation.java src/test/java/alice/jungle/core/operations/NetworkPutAttributeOperationTest.java |
diffstat | 3 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/alice/jungle/operations/NetworkDeleteChildAtOperation.java Tue Nov 26 16:36:17 2013 +0900 +++ b/src/main/java/alice/jungle/operations/NetworkDeleteChildAtOperation.java Tue Nov 26 16:36:26 2013 +0900 @@ -19,6 +19,8 @@ private int pos; + public NetworkDeleteChildAtOperation() {} + /* Position -1 represent root position. */ public NetworkDeleteChildAtOperation(int _pos) {
--- a/src/main/java/alice/jungle/operations/NetworkPutAttributeOperation.java Tue Nov 26 16:36:17 2013 +0900 +++ b/src/main/java/alice/jungle/operations/NetworkPutAttributeOperation.java Tue Nov 26 16:36:26 2013 +0900 @@ -19,8 +19,8 @@ * private final String key; * private final ByteBuffer value; */ - private String key; - private ByteBuffer value; + public String key; + public ByteBuffer value; public NetworkPutAttributeOperation() {
--- a/src/test/java/alice/jungle/core/operations/NetworkPutAttributeOperationTest.java Tue Nov 26 16:36:17 2013 +0900 +++ b/src/test/java/alice/jungle/core/operations/NetworkPutAttributeOperationTest.java Tue Nov 26 16:36:26 2013 +0900 @@ -19,9 +19,9 @@ MessagePack msgpack = new MessagePack(); Value v = msgpack.unconvert(op); NetworkPutAttributeOperation mOp = msgpack.convert(v, NetworkPutAttributeOperation.class); -// NodeOperation mOp = msgpack.convert(v, NodeOperation.class); assertEquals(op.getCommand(), mOp.getCommand()); System.out.println(new String(op.getValue().array())); + System.out.println(new String(mOp.getValue().array())); assert((new String(op.getValue().array())).equals(new String(mOp.getValue().array()))); }