System.out.println("Testing Getting One...");
User iadmin = UserDB.getInstance().getUser("iadmin");
System.out.println(iadmin);
System.out.println("Testing Getting All...");
List al = UserDB.getInstance().getUserList();
Iterator it = al.iterator();
while (it.hasNext()) {
System.out.println(it.next());
}
System.out.println("Testing privs");
iadmin.setPassword("guten abend");
if (iadmin.checkPassword("foo"))
System.out.println("setPassword failed");
if (!iadmin.checkPassword("guten abend"))
System.out.println("checkPassword failed");
System.out.println("All done");
System.exit(0);