mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-26 02:15:31 +02:00
[cleanup] Add comments about new connection wizard test cases
This commit is contained in:
parent
e306b4aad9
commit
5940bb672f
3 changed files with 35 additions and 19 deletions
|
@ -58,6 +58,8 @@ public class RSECombinedTestSuite extends DelegatingTestSuiteHolder {
|
||||||
suite.addTest(org.eclipse.rse.tests.subsystems.testsubsystem.RSETestSubsystemTestSuite.suite());
|
suite.addTest(org.eclipse.rse.tests.subsystems.testsubsystem.RSETestSubsystemTestSuite.suite());
|
||||||
suite.addTest(org.eclipse.rse.tests.ui.mnemonics.MnemonicsTestSuite.suite());
|
suite.addTest(org.eclipse.rse.tests.ui.mnemonics.MnemonicsTestSuite.suite());
|
||||||
suite.addTest(org.eclipse.rse.tests.ui.preferences.PreferencesTestSuite.suite());
|
suite.addTest(org.eclipse.rse.tests.ui.preferences.PreferencesTestSuite.suite());
|
||||||
|
// //Manual test below -- cannot be run in unattended builds
|
||||||
|
// suite.addTest(org.eclipse.rse.tests.ui.connectionwizard.RSENewConnectionWizardTestSuite.suite());
|
||||||
return suite;
|
return suite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2008 Wind River Systems, Inc. and others.
|
* Copyright (c) 2008 Wind River Systems, Inc. and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Uwe Stieber (Wind River) - initial API and implementation
|
* Uwe Stieber (Wind River) - initial API and implementation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.rse.tests.ui.connectionwizard;
|
package org.eclipse.rse.tests.ui.connectionwizard;
|
||||||
|
@ -20,21 +20,34 @@ import org.eclipse.ui.PlatformUI;
|
||||||
/**
|
/**
|
||||||
* Tests the RSE new connection wizard functionality.
|
* Tests the RSE new connection wizard functionality.
|
||||||
*
|
*
|
||||||
|
* This is a manual test! Users need to manually make some selections and close
|
||||||
|
* the dialog for the test to complete. Therefore this test cannot be run in
|
||||||
|
* unattended nightly builds.
|
||||||
|
*
|
||||||
|
* What testers should check:
|
||||||
|
* <ul>
|
||||||
|
* <li>On 1st wizard page, select a type and press next</li>
|
||||||
|
* <li>On 2nd page, selected type should be visible.</li>
|
||||||
|
* <li>Select type again on that page -- next should be enabled, press next</li>
|
||||||
|
* <li>Press back, select a different type, press next -- correct type should be
|
||||||
|
* shown</li> </li> For details, see
|
||||||
|
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=237816
|
||||||
|
*
|
||||||
* @author uwe.stieber@windriver.com
|
* @author uwe.stieber@windriver.com
|
||||||
*/
|
*/
|
||||||
public class RSENewConnectionWizardTestCase extends RSECoreTestCase {
|
public class RSENewConnectionWizardTestCase extends RSECoreTestCase {
|
||||||
|
|
||||||
/* Test restrictToSystemType functionality. See bug 237816 */
|
/* Test restrictToSystemType functionality. See bug 237816 */
|
||||||
public void testRestrictToSystemType() {
|
public void testRestrictToSystemType() {
|
||||||
//-test-author-:UweStieber
|
//-test-author-:UweStieber
|
||||||
if (!RSETestsPlugin.isTestCaseEnabled("RSENewConnectionWizardTestCase.testRestrictToSystemType")) return; //$NON-NLS-1$
|
if (!RSETestsPlugin.isTestCaseEnabled("RSENewConnectionWizardTestCase.testRestrictToSystemType")) return; //$NON-NLS-1$
|
||||||
|
|
||||||
IRSECoreRegistry coreRegistry = RSECorePlugin.getTheCoreRegistry();
|
IRSECoreRegistry coreRegistry = RSECorePlugin.getTheCoreRegistry();
|
||||||
assertNotNull("Failed to fetch RSE core registry instance!", coreRegistry); //$NON-NLS-1$
|
assertNotNull("Failed to fetch RSE core registry instance!", coreRegistry); //$NON-NLS-1$
|
||||||
|
|
||||||
// Construct the wizard
|
// Construct the wizard
|
||||||
RSENewConnectionWizardTestWizard wizard = new RSENewConnectionWizardTestWizard();
|
RSENewConnectionWizardTestWizard wizard = new RSENewConnectionWizardTestWizard();
|
||||||
|
|
||||||
WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(), wizard);
|
WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(), wizard);
|
||||||
dialog.open();
|
dialog.open();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* Copyright (c) 2008 Wind River Systems, Inc. and others.
|
* Copyright (c) 2008 Wind River Systems, Inc. and others.
|
||||||
* All rights reserved. This program and the accompanying materials
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* which accompanies this distribution, and is available at
|
||||||
* http://www.eclipse.org/legal/epl-v10.html
|
* http://www.eclipse.org/legal/epl-v10.html
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* Uwe Stieber (Wind River) - initial API and implementation.
|
* Uwe Stieber (Wind River) - initial API and implementation.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.rse.tests.ui.connectionwizard;
|
package org.eclipse.rse.tests.ui.connectionwizard;
|
||||||
|
@ -38,13 +38,14 @@ public class RSENewConnectionWizardTestSuite extends DelegatingTestSuiteHolder {
|
||||||
* @return The test suite instance.
|
* @return The test suite instance.
|
||||||
*/
|
*/
|
||||||
public static Test suite() {
|
public static Test suite() {
|
||||||
TestSuite suite = new TestSuite("RSE Registries Test Suite"); //$NON-NLS-1$
|
TestSuite suite = new TestSuite("RSE New Connection Wizard Test Suite"); //$NON-NLS-1$
|
||||||
// add the single test suites to the overall one here.
|
// add the single test suites to the overall one here.
|
||||||
|
//Attention: MANUAL testcase below! Not for unattended nightly builds!
|
||||||
suite.addTestSuite(RSENewConnectionWizardTestCase.class);
|
suite.addTestSuite(RSENewConnectionWizardTestCase.class);
|
||||||
|
|
||||||
return suite;
|
return suite;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.rse.tests.framework.AbstractTestSuiteHolder#getTestSuite()
|
* @see org.eclipse.rse.tests.framework.AbstractTestSuiteHolder#getTestSuite()
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue