add some comments
[iotcloud.git] / src / java / iotcloud / Test.java
index dcd4f1e1b93a2a7cba880a1135798ba9b16a493d..c77702ddb78e025ae56438c45efb4e413df4fbdf 100644 (file)
@@ -1,5 +1,11 @@
 package iotcloud;
 
+/**
+ * Test cases.
+ * @author Brian Demsky
+ * @version 1.0
+ */
+
 public class Test {
        public static void main(String[] args) {
                if (args[0].equals("1"))
@@ -15,17 +21,17 @@ public class Test {
 
        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);
@@ -42,7 +48,7 @@ public class Test {
                        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);