package iotcloud;
+/**
+ * Test cases.
+ * @author Brian Demsky
+ * @version 1.0
+ */
+
public class Test {
public static void main(String[] args) {
if (args[0].equals("1"))
static Thread buildThread(String prefix, Table t) {
return new Thread() {
- public void run() {
- for(int i=0; i<600; i++) {
- String a=prefix+i;
- IoTString ia=new IoTString(a);
- t.put(ia, ia);
- System.out.println(ia+"->"+t.get(ia));
- }
- }
+ public void run() {
+ for(int i=0; i<600; i++) {
+ String a=prefix+i;
+ IoTString ia=new IoTString(a);
+ t.put(ia, ia);
+ System.out.println(ia+"->"+t.get(ia));
+ }
+ }
};
}
-
+
static void test4() {
Table t1=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
Table t2=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);
e.printStackTrace();
}
}
-
+
static void test3() {
Table t1=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 321);
Table t2=new Table("http://127.0.0.1/test.iotcloud/", "reallysecret", 351);