Jelly2 main frame menu calls introduced.
1.1 --- a/vcs.advanced/test/qa-functional/src/complete/vss_profile/MountVSSFilesystem.java Tue Nov 05 18:47:46 2002 +0000
1.2 +++ b/vcs.advanced/test/qa-functional/src/complete/vss_profile/MountVSSFilesystem.java Tue Nov 05 19:06:42 2002 +0000
1.3 @@ -16,7 +16,6 @@
1.4 import java.io.*;
1.5 import junit.framework.*;
1.6 import org.netbeans.junit.*;
1.7 -import org.netbeans.test.oo.gui.jelly.*;
1.8 import org.netbeans.jemmy.JemmyProperties;
1.9 import org.netbeans.jemmy.TestOut;
1.10 import org.netbeans.jemmy.util.PNGEncoder;
1.11 @@ -25,7 +24,7 @@
1.12 import org.openide.util.Utilities;
1.13 import org.netbeans.jellytools.*;
1.14 import org.netbeans.jellytools.nodes.Node;
1.15 -import org.netbeans.jellytools.actions.UnmountFSAction;
1.16 +import org.netbeans.jellytools.actions.*;
1.17
1.18
1.19 /** XTest / JUnit test class performing mounting check of VSS filesystem.
1.20 @@ -69,14 +68,14 @@
1.21 * output and maps main components.
1.22 */
1.23 protected void setUp() {
1.24 - JellyProperties.setDefaults();
1.25 + org.netbeans.test.oo.gui.jelly.JellyProperties.setDefaults();
1.26 JemmyProperties.setCurrentOutput(TestOut.getNullOutput());
1.27 }
1.28
1.29 /** Method called after each testcase. Resets Jemmy WaitComponentTimeout.
1.30 */
1.31 protected void tearDown() {
1.32 - JellyProperties.setDefaults();
1.33 + org.netbeans.test.oo.gui.jelly.JellyProperties.setDefaults();
1.34 }
1.35
1.36 /** Method will create a file and capture the screen.
1.37 @@ -96,7 +95,7 @@
1.38 */
1.39 public void testVSSSettings() throws Exception {
1.40 System.out.print(".. Testing VSS settings ..");
1.41 - MainFrame.getMainFrame().pushMenuNoBlock(MOUNT_MENU);
1.42 + new ActionNoBlock(MOUNT_MENU, "Mount|Version Control|Generic VCS").perform();
1.43 VCSWizardProfile wizard = new VCSWizardProfile();
1.44 String profile = VCSWizardProfile.VSS_WIN_NT;
1.45 int os = Utilities.getOperatingSystem();
1.46 @@ -134,7 +133,7 @@
1.47 */
1.48 public void testVSSConnection() throws Exception {
1.49 System.out.print(".. Testing VSS filesystem connectivity ..");
1.50 - MainFrame.getMainFrame().pushMenuNoBlock(MOUNT_MENU);
1.51 + new ActionNoBlock(MOUNT_MENU, "Mount|Version Control|Generic VCS").perform();
1.52 VCSWizardProfile wizard = new VCSWizardProfile();
1.53 String profile = VCSWizardProfile.VSS_WIN_NT;
1.54 int os = Utilities.getOperatingSystem();