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")) {
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 {
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