Author: batosai
Date: 2008-08-31 16:37:47 +0000 (Sun, 31 Aug 2008)
New Revision: 22282

Modified:
   trunk/apps/WoT/src/plugins/WoT/WotTestDrive.java
Log:
That one works. Weird isn't it ?

Modified: trunk/apps/WoT/src/plugins/WoT/WotTestDrive.java
===================================================================
--- trunk/apps/WoT/src/plugins/WoT/WotTestDrive.java    2008-08-31 16:13:55 UTC 
(rev 22281)
+++ trunk/apps/WoT/src/plugins/WoT/WotTestDrive.java    2008-08-31 16:37:47 UTC 
(rev 22282)
@@ -37,14 +37,12 @@

                StringBuffer out = new StringBuffer();

-               // This doesn't work. WHY ?!?
                out.append("Empty the database ");
-               ObjectSet<Object> all = db.queryByExample(Object.class);
+               ObjectSet<Object> all = db.queryByExample(new Object());
                while(all.hasNext()) db.delete(all.next());
-               db.commit();
-               ObjectSet<Object> all2 = db.queryByExample(Object.class);
-               if(all2.size() != 0) out.append("OK\n");
-               else out.append("NOK !\n");
+               ObjectSet<Object> all2 = db.queryByExample(new Object());
+               if(all2.size() == 0) out.append("OK\n");
+               else out.append("NOK (" + all2.size() + ")\n");


                out.append("* Create 3 identities:");


Reply via email to