blob: 1b73255b2f428fa3449d893326004b31fec9b566 [file] [log] [blame]
package ${package};
import java.util.logging.Level;
import junit.framework.Test;
import org.netbeans.junit.NbModuleSuite;
import org.netbeans.junit.NbTestCase;
public class ApplicationTest extends NbTestCase {
public static Test suite() {
return NbModuleSuite.createConfiguration(ApplicationTest.class).
gui(false).
failOnMessage(Level.WARNING). // works at least in RELEASE71
failOnException(Level.INFO).
enableClasspathModules(false).
clusters(".*").
suite(); // RELEASE71+, else use NbModuleSuite.create(NbModuleSuite.createConfiguration(...))
}
public ApplicationTest(String n) {
super(n);
}
public void testApplication() {
// pass if there are merely no warnings/exceptions
/* Example of using Jelly Tools (additional test dependencies required) with gui(true):
new ActionNoBlock("Help|About", null).performMenu();
new NbDialogOperator("About").closeByButton();
*/
}
}