javacommons/javastorage/tsrc/java_api/javasrc/com/nokia/mj/test/storage/TestAppendTable.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 TestAppendTable extends TestCase implements InstallerMain, StorageNames
    33 public class TestAppendTable 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 TestAppendTable("TestAppendTableArguments", new TestMethod()
    42         suite.addTest(new TestAppendTable("TestAppendTableArguments", new TestMethod()
    53         {
    43         {
    71             {
    61             {
    72                 ((TestAppendTable)tc).TestAppendTable();
    62                 ((TestAppendTable)tc).TestAppendTable();
    73             }
    63             }
    74         }));
    64         }));
    75 
    65 
    76         com.nokia.mj.impl.utils.OmjTestRunner.run(suite);
    66         return suite;
    77     }
    67     }
    78 
    68 
    79     public TestAppendTable()
    69     public TestAppendTable()
    80     {
    70     {
    81     }
    71     }