Package | Description |
---|---|
org.netbeans.junit |
Modifier and Type | Method and Description |
---|---|
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.addStartupArgument(String... arguments)
Appends one or more command line arguments which will be used to
start the application.
|
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.addTest(Class<? extends junit.framework.Test> test)
Add new
Test to run. |
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.addTest(Class<? extends junit.framework.TestCase> test,
String... testNames)
Adds new test class to run, together with a list of its methods
that shall be executed.
|
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.addTest(String... testNames)
Adds new test name, or array of names into the configuration.
|
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.clusters(String regExp)
Regular expression to match clusters that shall be enabled.
|
static NbModuleSuite.Configuration |
NbModuleSuite.createConfiguration(Class<? extends junit.framework.TestCase> clazz)
Creates default configuration wrapping a class that can be executed
with the
NbModuleSuite support. |
static NbModuleSuite.Configuration |
NbModuleSuite.emptyConfiguration()
Creates empty configuration without any class assiciated.
|
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.enableClasspathModules(boolean enable)
By default all modules on classpath are enabled (so you can link
with modules that you compile against), this method allows you to
disable this feature, which is useful if the test is known to not
link against any of classpath classes.
|
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.enableModules(String regExp)
By default only modules on classpath of the test are enabled,
the rest are just autoloads.
|
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.enableModules(String clusterRegExp,
String moduleRegExp)
By default only modules on classpath of the test are enabled,
the rest are just autoloads.
|
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.failOnException(Level level)
Fails if there is an exception reported to
Logger with appropriate
level or higher during the test run execution. |
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.failOnMessage(Level level)
Fails if there is a message sent to
Logger with appropriate
level or higher during the test run execution. |
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.gui(boolean gui)
Should the system run with GUI or without? The default behaviour
does not prevent any module to show UI.
|
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.hideExtraModules(boolean hide)
Allows to limit what modules get enabled in the system.
|
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.honorAutoloadEager(boolean honor)
By default the
NbModuleSuite.Configuration.enableModules(java.lang.String) method
converts all autoloads into regular modules and enables them. |
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.parentClassLoader(ClassLoader parentCL)
Sets the parent ClassLoader on which the NB platform should start.
|
NbModuleSuite.Configuration |
NbModuleSuite.Configuration.reuseUserDir(boolean reuse)
Enables or disables userdir reuse.
|
Modifier and Type | Method and Description |
---|---|
static junit.framework.Test |
NbModuleSuite.create(NbModuleSuite.Configuration config)
Factory method to create wrapper test that knows how to setup proper
NetBeans Runtime Container environment.
|