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 { |