javacommons/javastorage/tsrc/java_api/javasrc/com/nokia/mj/test/storage/TestUpdate.java
changeset 80 d6dafc5d983f
parent 21 2a9601315dfc
equal deleted inserted replaced
78:71ad690e91f5 80:d6dafc5d983f
    19 package com.nokia.mj.test.storage;
    19 package com.nokia.mj.test.storage;
    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 
    23 
    24 import com.nokia.mj.impl.installer.utils.InstallerMain;
    24 import com.nokia.mj.impl.rt.test.UnitTestSuiteCreator;
    25 import j2meunit.framework.Test;
    25 import j2meunit.framework.Test;
    26 import j2meunit.framework.TestCase;
    26 import j2meunit.framework.TestCase;
    27 import j2meunit.framework.TestMethod;
    27 import j2meunit.framework.TestMethod;
    28 import j2meunit.framework.TestSuite;
    28 import j2meunit.framework.TestSuite;
    29 
    29 
    30 /**
    30 /**
    31  * StorageSession write test cases. See test methods for test case details.
    31  * StorageSession write test cases. See test methods for test case details.
    32  */
    32  */
    33 public class TestUpdate extends TestCase implements InstallerMain, StorageNames
    33 public class TestUpdate extends TestCase implements UnitTestSuiteCreator, StorageNames
    34 {
    34 {
    35     /**
       
    36      * Directory for JavaStorage tests.
       
    37      */
       
    38     private static final String iTestRoot = "./jstest";
       
    39 
       
    40     /**
       
    41      * Directory for JavaStorage journal and temp files.
       
    42      */
       
    43     private static final String iIsRoot = iTestRoot + "/js";
       
    44 
       
    45     private StorageSession iSession = null;
    35     private StorageSession iSession = null;
    46     private StorageSessionTestUtils iJtu = null;
    36     private StorageSessionTestUtils iJtu = null;
    47 
    37 
    48     public void installerMain(String[] args)
    38     public TestSuite createTestSuite(String[] args)
    49     {
    39     {
    50         TestSuite suite = new TestSuite(this.getClass().getName());
    40         TestSuite suite = new TestSuite(this.getClass().getName());
    51 
    41 
    52         suite.addTest(new TestUpdate("testUpdateArguments", new TestMethod()
    42         suite.addTest(new TestUpdate("testUpdateArguments", new TestMethod()
    53         {
    43         {
    63             {
    53             {
    64                 ((TestUpdate)tc).testUpdate();
    54                 ((TestUpdate)tc).testUpdate();
    65             }
    55             }
    66         }));
    56         }));
    67 
    57 
    68         com.nokia.mj.impl.utils.OmjTestRunner.run(suite);
    58         return suite;
    69     }
    59     }
    70 
    60 
    71     public TestUpdate()
    61     public TestUpdate()
    72     {
    62     {
    73     }
    63     }