javacommons/javastorage/tsrc/java_api/javasrc/com/nokia/mj/test/storage/TestRobustness.java
equal
deleted
inserted
replaced
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 OTA table specific test cases. See test methods for test |
31 * StorageSession OTA table specific test cases. See test methods for test |
32 * case details. |
32 * case details. |
33 */ |
33 */ |
34 public class TestRobustness extends TestCase implements InstallerMain, StorageNames |
34 public class TestRobustness extends TestCase implements UnitTestSuiteCreator, StorageNames |
35 { |
35 { |
36 /** |
36 /** |
37 * Directory for JavaStorage tests. |
37 * Directory for JavaStorage tests. |
38 */ |
38 */ |
39 private static final String iTestRoot = "./jstest"; |
39 private static final String iTestRoot = "./jstest"; |
44 private static final String iIsRoot = iTestRoot + "/js"; |
44 private static final String iIsRoot = iTestRoot + "/js"; |
45 |
45 |
46 private StorageSession iSession = null; |
46 private StorageSession iSession = null; |
47 private StorageSessionTestUtils iJtu = null; |
47 private StorageSessionTestUtils iJtu = null; |
48 |
48 |
49 public void installerMain(String[] args) |
49 public TestSuite createTestSuite(String[] args) |
50 { |
50 { |
51 TestSuite suite = new TestSuite(this.getClass().getName()); |
51 TestSuite suite = new TestSuite(this.getClass().getName()); |
52 |
52 |
53 suite.addTest(new TestRobustness("testAttributeValues", new TestMethod() |
53 suite.addTest(new TestRobustness("testAttributeValues", new TestMethod() |
54 { |
54 { |
64 { |
64 { |
65 ((TestRobustness)tc).testInvalidAttributeValues(); |
65 ((TestRobustness)tc).testInvalidAttributeValues(); |
66 } |
66 } |
67 })); |
67 })); |
68 |
68 |
69 com.nokia.mj.impl.utils.OmjTestRunner.run(suite); |
69 return suite; |
70 } |
70 } |
71 |
71 |
72 public TestRobustness() |
72 public TestRobustness() |
73 { |
73 { |
74 } |
74 } |