javacommons/javastorage/tsrc/java_api/javasrc/com/nokia/mj/test/storage/TestRemove.java
changeset 80 d6dafc5d983f
parent 21 2a9601315dfc
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
    20 
    20 
    21 import com.nokia.mj.test.storage.utils.StorageSessionTestUtils;
    21 import com.nokia.mj.test.storage.utils.StorageSessionTestUtils;
    22 import com.nokia.mj.impl.storage.*;
    22 import com.nokia.mj.impl.storage.*;
    23 import com.nokia.mj.impl.utils.Uid;
    23 import com.nokia.mj.impl.utils.Uid;
    24 
    24 
    25 import com.nokia.mj.impl.installer.utils.InstallerMain;
    25 import com.nokia.mj.impl.rt.test.UnitTestSuiteCreator;
    26 import j2meunit.framework.Test;
    26 import j2meunit.framework.Test;
    27 import j2meunit.framework.TestCase;
    27 import j2meunit.framework.TestCase;
    28 import j2meunit.framework.TestMethod;
    28 import j2meunit.framework.TestMethod;
    29 import j2meunit.framework.TestSuite;
    29 import j2meunit.framework.TestSuite;
    30 
    30 
    31 /**
    31 /**
    32  * StorageSession remove test cases. See test methods for test case details.
    32  * StorageSession remove test cases. See test methods for test case details.
    33  */
    33  */
    34 public class TestRemove extends TestCase implements InstallerMain, StorageNames
    34 public class TestRemove extends TestCase implements UnitTestSuiteCreator, StorageNames
    35 {
    35 {
    36     /**
       
    37      * Directory for JavaStorage tests.
       
    38      */
       
    39     private static final String iTestRoot = "./jstest";
       
    40 
       
    41     /**
       
    42      * Directory for JavaStorage journal and temp files.
       
    43      */
       
    44     private static final String iIsRoot = iTestRoot + "/js";
       
    45 
       
    46     private StorageSession iSession = null;
    36     private StorageSession iSession = null;
    47     private StorageSessionTestUtils iJtu = null;
    37     private StorageSessionTestUtils iJtu = null;
    48 
    38 
    49     public void installerMain(String[] args)
    39     public TestSuite createTestSuite(String[] args)
    50     {
    40     {
    51         TestSuite suite = new TestSuite(this.getClass().getName());
    41         TestSuite suite = new TestSuite(this.getClass().getName());
    52 
    42 
    53         suite.addTest(new TestRemove("testRemoveArguments", new TestMethod()
    43         suite.addTest(new TestRemove("testRemoveArguments", new TestMethod()
    54         {
    44         {
    88             {
    78             {
    89                 ((TestRemove)tc).testRemoveAll();
    79                 ((TestRemove)tc).testRemoveAll();
    90             }
    80             }
    91         }));
    81         }));
    92 
    82 
    93         com.nokia.mj.impl.utils.OmjTestRunner.run(suite);
    83         return suite;
    94     }
    84     }
    95 
    85 
    96     public TestRemove()
    86     public TestRemove()
    97     {
    87     {
    98     }
    88     }