|
What this is
Other links
The source code
/*
* Sun Public License Notice
*
* The contents of this file are subject to the Sun Public License
* Version 1.0 (the "License"). You may not use this file except in
* compliance with the License. A copy of the License is available at
* http://www.sun.com/
*
* The Original Code is NetBeans. The Initial Developer of the Original
* Code is Sun Microsystems, Inc. Portions Copyright 1997-2004 Sun
* Microsystems, Inc. All Rights Reserved.
*/
package validation;
import org.netbeans.jellytools.JellyTestCase;
import org.netbeans.junit.NbTestSuite;
/**
* Overall sanity check suite for IDE before commit.
* http://qa.netbeans.org/man-suites/validation/ide/OverallValidation.html
*
* @author Jiri.Skrivanek@sun.com
*/
public class IDECommitValidation extends JellyTestCase {
/** Need to be defined because of JUnit */
public IDECommitValidation(String name) {
super(name);
}
public static NbTestSuite suite() {
NbTestSuite suite = new NbTestSuite();
suite.addTest(new IDEValidation("testMainMenu"));
suite.addTest(new IDEValidation("testHelp"));
suite.addTest(new IDEValidation("testOptions"));
suite.addTest(new IDEValidation("testNewProject"));
// sample project must exist before testShortcuts
suite.addTest(new IDEValidation("testShortcuts"));
suite.addTest(new IDEValidation("testNewFile"));
suite.addTest(new IDEValidation("testCVS"));
suite.addTest(new IDEValidation("testProjectsView"));
suite.addTest(new IDEValidation("testFilesView"));
suite.addTest(new IDEValidation("testEditor"));
suite.addTest(new IDEValidation("testBuildAndRun"));
suite.addTest(new IDEValidation("testDebugging"));
suite.addTest(new IDEValidation("testXML"));
// not in commit suite because it needs net connectivity
//suite.addTest(new IDEValidation("testUpdateCenter"));
// temporarily removed because of issue http://www.netbeans.org/issues/show_bug.cgi?id=43910 (Creation of children under Databases node is not properly synchronized)
// suite.addTest(new IDEValidation("testDb"));
return suite;
}
/** Use for execution inside IDE */
public static void main(java.lang.String[] args) {
// run whole suite
junit.textui.TestRunner.run(suite());
// run only selected test case
//junit.textui.TestRunner.run(new IDEValidation("testMainMenu"));
}
}
|
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.