From b49e8170f5ab852f64c28603ce310e5c0b8a55a2 Mon Sep 17 00:00:00 2001 From: Joshua Kissoon Date: Sun, 11 May 2014 16:02:36 +0530 Subject: [PATCH] Updated content sending test --- src/kademlia/tests/ContentSendingTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/kademlia/tests/ContentSendingTest.java b/src/kademlia/tests/ContentSendingTest.java index 5cfd038..cedd67f 100644 --- a/src/kademlia/tests/ContentSendingTest.java +++ b/src/kademlia/tests/ContentSendingTest.java @@ -1,6 +1,7 @@ package kademlia.tests; import java.io.IOException; +import java.util.UUID; import kademlia.dht.GetParameter; import kademlia.KademliaNode; import kademlia.dht.StorageEntry; @@ -30,7 +31,13 @@ public class ContentSendingTest /** * Lets create the content and share it */ - DHTContentImpl c = new DHTContentImpl(kad2.getOwnerId(), "Some Data"); + String data = ""; + for (int i = 0; i < 500; i++) + { + data += UUID.randomUUID(); + } + System.out.println(data); + DHTContentImpl c = new DHTContentImpl(kad2.getOwnerId(), data); kad2.put(c); /**