javacommons/javastorage/tsrc/java_api/javasrc/com/nokia/mj/test/storage/TestStorageEntry.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 import java.util.Enumeration;
    29 import java.util.Enumeration;
    30 
    30 
    31 /**
    31 /**
    32  * StorageSession connection test cases. See test methods for test case details.
    32  * StorageSession connection test cases. See test methods for test case details.
    33  */
    33  */
    34 public class TestStorageEntry extends TestCase implements InstallerMain
    34 public class TestStorageEntry extends TestCase implements UnitTestSuiteCreator
    35 {
    35 {
    36     /**
    36     public TestSuite createTestSuite(String[] args)
    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 
       
    47     public void installerMain(String[] args)
       
    48     {
    37     {
    49         TestSuite suite = new TestSuite(this.getClass().getName());
    38         TestSuite suite = new TestSuite(this.getClass().getName());
    50 
    39 
    51         suite.addTest(new TestStorageEntry("testAddAttribute", new TestMethod()
    40         suite.addTest(new TestStorageEntry("testAddAttribute", new TestMethod()
    52         {
    41         {
    94             {
    83             {
    95                 ((TestStorageEntry)tc).testToString();
    84                 ((TestStorageEntry)tc).testToString();
    96             }
    85             }
    97         }));
    86         }));
    98 
    87 
    99         com.nokia.mj.impl.utils.OmjTestRunner.run(suite);
    88         return suite;
   100     }
    89     }
   101 
    90 
   102     public TestStorageEntry()
    91     public TestStorageEntry()
   103     {
    92     {
   104     }
    93     }