javacommons/javastorage/tsrc/java_api/javasrc/com/nokia/mj/test/storage/TestTransaction.java
changeset 80 d6dafc5d983f
parent 21 2a9601315dfc
--- a/javacommons/javastorage/tsrc/java_api/javasrc/com/nokia/mj/test/storage/TestTransaction.java	Mon Oct 04 11:29:25 2010 +0300
+++ b/javacommons/javastorage/tsrc/java_api/javasrc/com/nokia/mj/test/storage/TestTransaction.java	Fri Oct 15 12:29:39 2010 +0300
@@ -21,7 +21,7 @@
 import com.nokia.mj.test.storage.utils.StorageSessionTestUtils;
 import com.nokia.mj.impl.storage.*;
 
-import com.nokia.mj.impl.installer.utils.InstallerMain;
+import com.nokia.mj.impl.rt.test.UnitTestSuiteCreator;
 import j2meunit.framework.Test;
 import j2meunit.framework.TestCase;
 import j2meunit.framework.TestMethod;
@@ -33,22 +33,12 @@
  * they're not tested. If second transaction can be created however
  * writing data with it causes DB server busy.
  */
-public class TestTransaction extends TestCase implements InstallerMain
+public class TestTransaction extends TestCase implements UnitTestSuiteCreator
 {
-    /**
-     * Directory for JavaStorage tests.
-     */
-    private static final String iTestRoot = "./jstest";
-
-    /**
-     * Directory for JavaStorage journal and temp files.
-     */
-    private static final String iIsRoot = iTestRoot + "/js";
-
     private StorageSession iSession = null;
     private StorageSessionTestUtils iJtu = null;
 
-    public void installerMain(String[] args)
+    public TestSuite createTestSuite(String[] args)
     {
         TestSuite suite = new TestSuite(this.getClass().getName());
 
@@ -84,7 +74,7 @@
             }
         }));
 
-        com.nokia.mj.impl.utils.OmjTestRunner.run(suite);
+        return suite;
     }
 
     public TestTransaction()