javacommons/javastorage/tsrc/java_api/javasrc/com/nokia/mj/test/storage/TestRead.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 com.nokia.mj.impl.utils.Uid;
    25 import com.nokia.mj.impl.utils.Uid;
    26 
    26 
    27 import j2meunit.framework.Test;
    27 import j2meunit.framework.Test;
    28 import j2meunit.framework.TestCase;
    28 import j2meunit.framework.TestCase;
    29 import j2meunit.framework.TestMethod;
    29 import j2meunit.framework.TestMethod;
    30 import j2meunit.framework.TestSuite;
    30 import j2meunit.framework.TestSuite;
    31 
    31 
    32 /**
    32 /**
    33  * StorageSession read test cases. See test methods for test case details.
    33  * StorageSession read test cases. See test methods for test case details.
    34  */
    34  */
    35 public class TestRead extends TestCase implements InstallerMain, StorageNames
    35 public class TestRead extends TestCase implements UnitTestSuiteCreator, StorageNames
    36 {
    36 {
    37     /**
       
    38      * Directory for JavaStorage tests.
       
    39      */
       
    40     private static final String iTestRoot = "./jstest";
       
    41 
       
    42     /**
       
    43      * Directory for JavaStorage journal and temp files.
       
    44      */
       
    45     private static final String iIsRoot = iTestRoot + "/js";
       
    46 
       
    47     private StorageSession iSession = null;
    37     private StorageSession iSession = null;
    48     private StorageSessionTestUtils iJtu = null;
    38     private StorageSessionTestUtils iJtu = null;
    49 
    39 
    50     public void installerMain(String[] args)
    40     public TestSuite createTestSuite(String[] args)
    51     {
    41     {
    52         TestSuite suite = new TestSuite(this.getClass().getName());
    42         TestSuite suite = new TestSuite(this.getClass().getName());
    53 
    43 
    54         suite.addTest(new TestRead("testReadEntryArguments", new TestMethod()
    44         suite.addTest(new TestRead("testReadEntryArguments", new TestMethod()
    55         {
    45         {
    81             {
    71             {
    82                 ((TestRead)tc).testReadEntries();
    72                 ((TestRead)tc).testReadEntries();
    83             }
    73             }
    84         }));
    74         }));
    85 
    75 
    86         com.nokia.mj.impl.utils.OmjTestRunner.run(suite);
    76         return suite;
    87     }
    77     }
    88 
    78 
    89     public TestRead()
    79     public TestRead()
    90     {
    80     {
    91     }
    81     }