Skip to content

Commit 1f8945e

Browse files
committed
make example more explicit.
1 parent 2b510f2 commit 1f8945e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/test/java/net/sharksystem/asap/engine/UsageExamples.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ public void workWithExtraData() throws IOException, SharkException, InterruptedE
146146
// setup alice peer
147147
ASAPInternalPeer alicePeer = ASAPInternalPeerFS.createASAPPeer(ALICE_PEER_NAME, aliceFolder, null);
148148

149+
String string1 = "TestString";
149150
String key1 = "testKey";
150-
byte[] value1 = "TestString".getBytes();
151+
byte[] value1 = string1.getBytes();
151152

152153
String key2 = "testKey2";
153154
byte[] value2 = "TestString2".getBytes();
@@ -163,5 +164,8 @@ public void workWithExtraData() throws IOException, SharkException, InterruptedE
163164

164165
byte[] valueR2 = alicePeer2.getExtra(key2);
165166
Assert.assertTrue(SerializationHelper.sameByteArray(value2, valueR2));
167+
168+
String r1String = new String(valueR1);
169+
Assert.assertTrue(r1String.equals(string1));
166170
}
167171
}

0 commit comments

Comments
 (0)