Updated content sending test

This commit is contained in:
Joshua Kissoon 2014-05-11 16:02:36 +05:30
parent 24abfe3d2a
commit b49e8170f5

View File

@ -1,6 +1,7 @@
package kademlia.tests; package kademlia.tests;
import java.io.IOException; import java.io.IOException;
import java.util.UUID;
import kademlia.dht.GetParameter; import kademlia.dht.GetParameter;
import kademlia.KademliaNode; import kademlia.KademliaNode;
import kademlia.dht.StorageEntry; import kademlia.dht.StorageEntry;
@ -30,7 +31,13 @@ public class ContentSendingTest
/** /**
* Lets create the content and share it * 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); kad2.put(c);
/** /**