Edits
[iotcloud.git] / version2 / src / java / iotcloud / Test.java
index 96d505ce21f9a854ae2af37b60d265dcdeb49a3d..1a627a9561698164af5109e61fff819523ab43fe 100644 (file)
@@ -11,7 +11,7 @@ import java.util.ArrayList;
 
 public class Test {
 
-    public static final  int NUMBER_OF_TESTS = 1;
+    public static final  int NUMBER_OF_TESTS = 10;
 
     public static void main(String[] args)  throws ServerException {
         if (args[0].equals("2")) {
@@ -263,7 +263,7 @@ public class Test {
         List<TransactionStatus> transStatusList = new ArrayList<TransactionStatus>();
 
         // Setup the 2 clients
-        Table t1 = new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321, -1);
+        Table t1 = new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321, 6000);
         System.out.println("Init Table t1s");
         while (true) {
             try {
@@ -271,11 +271,11 @@ public class Test {
                 break;
             } catch (Exception e) { }
         }
-        Table t2 = new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351, -1);
+        Table t2 = new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351, 6001);
         while (t2.update() == false) {}
 
-        // t1.addLocalCommunication(351, "127.0.0.1", 6001);
-        // t2.addLocalCommunication(321, "127.0.0.1", 6000);
+        t1.addLocalCommunication(351, "127.0.0.1", 6001);
+        t2.addLocalCommunication(321, "127.0.0.1", 6000);
 
 
         // Make the Keys