javamanager/javainstaller/installer/tsrc/javasrc/com/nokia/mj/impl/installer/InstallerEngineTest.java
changeset 35 85266cc22c7f
parent 21 2a9601315dfc
child 47 f40128debb5d
child 50 023eef975703
equal deleted inserted replaced
26:dc7c549001d5 35:85266cc22c7f
    62                     ((InstallerEngineTest)tc).testTrustedJadNonSilentOk();
    62                     ((InstallerEngineTest)tc).testTrustedJadNonSilentOk();
    63                 }
    63                 }
    64             }));
    64             }));
    65         }
    65         }
    66 
    66 
       
    67         // Run 1
    67         suite.addTest(new InstallerEngineTest("testMidletMessageOk", new TestMethod()
    68         suite.addTest(new InstallerEngineTest("testMidletMessageOk", new TestMethod()
    68         {
    69         {
    69             public void run(TestCase tc)
    70             public void run(TestCase tc)
    70             {
    71             {
    71                 ((InstallerEngineTest)tc).testMidletMessageOk();
    72                 ((InstallerEngineTest)tc).testMidletMessageOk();
   110             {
   111             {
   111                 ((InstallerEngineTest)tc).testDownloadJadOk();
   112                 ((InstallerEngineTest)tc).testDownloadJadOk();
   112             }
   113             }
   113         }));
   114         }));
   114 
   115 
       
   116         // Run 2
   115         suite.addTest(new InstallerEngineTest("testDownloadJarOk", new TestMethod()
   117         suite.addTest(new InstallerEngineTest("testDownloadJarOk", new TestMethod()
   116         {
   118         {
   117             public void run(TestCase tc)
   119             public void run(TestCase tc)
   118             {
   120             {
   119                 ((InstallerEngineTest)tc).testDownloadJarOk();
   121                 ((InstallerEngineTest)tc).testDownloadJarOk();
   238             {
   240             {
   239                 ((InstallerEngineTest)tc).testApplicationInfo();
   241                 ((InstallerEngineTest)tc).testApplicationInfo();
   240             }
   242             }
   241         }));
   243         }));
   242 
   244 
       
   245         // Run 3
   243         suite.addTest(new InstallerEngineTest("testInstallOptions", new TestMethod()
   246         suite.addTest(new InstallerEngineTest("testInstallOptions", new TestMethod()
   244         {
   247         {
   245             public void run(TestCase tc)
   248             public void run(TestCase tc)
   246             {
   249             {
   247                 ((InstallerEngineTest)tc).testInstallOptions();
   250                 ((InstallerEngineTest)tc).testInstallOptions();
   983         callInstallerOk(new String[] { "list", "-storage" });
   986         callInstallerOk(new String[] { "list", "-storage" });
   984         callInstallerOk(new String[] { "list", "-otastatus" });
   987         callInstallerOk(new String[] { "list", "-otastatus" });
   985         callInstallerOk(new String[] { "list", "-systemproperties" });
   988         callInstallerOk(new String[] { "list", "-systemproperties" });
   986         callInstallerOk(new String[] { "launch", "-nouid" });
   989         callInstallerOk(new String[] { "launch", "-nouid" });
   987         callInstallerOk(new String[] { "launch", "-uid=invaliduid" });
   990         callInstallerOk(new String[] { "launch", "-uid=invaliduid" });
   988         callInstallerOk(new String[] { "uninstallall" });
   991         callInstallerOk(new String[] { "uninstallall", "-silent" });
   989         callInstallerOk(new String[] { "unregister" });
   992         callInstallerOk(new String[] { "unregister" });
   990         callInstallerOk(new String[] { "test", "-nomainclass" });
   993         callInstallerOk(new String[] { "test", "-nomainclass" });
   991     }
   994     }
   992 
   995 
   993     public void testApplicationInfo()
   996     public void testApplicationInfo()