| java.lang.Object org.drools.eclipse.AllTestsUtil
AllTestsUtil | public class AllTestsUtil (Code) | | Run all the tests in this project, either computed from the classpath or from
the bundlepath. To use this as-is, drop it into a non-default package that
has the same name as the plugin. For example, if the plugin is called
org.example.foo , this should be placed in a package
org.example.foo , and all tests should live under the
org.example.foo package structure (either directly, or in any
subpackage). By default this will include all non-abstract classes named
XxxTest , excluding XxxPlatformTest if running
outside of the platform.
|
Method Summary | |
public static Test | suite() Return all the tests. |
IN_CONTAINER_SUFFIX | final public static String IN_CONTAINER_SUFFIX(Code) | | All in-container tests should end in XxxPlatformTest
|
PACKAGE_NAME | final public static String PACKAGE_NAME(Code) | | The base package name of the tests to run. This defaults to the name of
the package that the AllTests class is in for ease of management but may
be trivially changed if required. Note that at least some identifiable
part must be provided here (so default package names are not allowed)
since the URL that comes up in the bundle entries have a prefix that is
not detectable automatically. Even if this is "org" or "com" that should
be enough.
|
PLUGIN_NAME | final public static String PLUGIN_NAME(Code) | | The name of the plugin to search if the platform is loaded. This defaults
to the name of the package that the AllTests class is in for ease of
management but may be trivially changed if required.
|
SUFFIX | final public static String SUFFIX(Code) | | All tests should end in XxxTest
|
suite | public static Test suite()(Code) | | Return all the tests. If we're in a platform, return everything. If not,
we return those tests that end in SUFFIX but excluding those ending in
IN_CONTAINER_SUFFIX.
a suite of tests for JUnit to run throws: Error - if there are no tests to run. |
|
|