See: Description
Package | Description |
---|---|
org.netbeans.modules.junit.api | |
org.netbeans.modules.junit.plugin |
The module supports some aspects of JUnit-based testing.
There is no client API.
There is a support API (SPI) for a project-type-specific implementation
of JUnit:
org.netbeans.modules.junit.plugin
This SPI describes services provided by the
custom JUnit support plugin which are not desribed by the existing
public SPI (UnitTestForSourceQuery
). This SPI
represents an additional source of information for the JUnit module
and allows a custom test-skeleton generator to be plugged.
JUnit-plugin-lookup
The object implementing the JUnitPlugin
interface
is taken by the JUnit module from the current project's lookup,
the same way as the UnitTestForSourceQuery
.
See the diagram:
Added members INC_CLASS_SETUP
and
INC_CLASS_TEARDOWN
to enum JUnitPlugin.CreateTestParam
.
Added method
createTestActionCalled(FileObject[])
to class JUnitPlugin
.
Introduced new SPI - abstract class JUnitPlugin
(with a nested
enum CreateTestParam
and a nested final class Location
).
Introduced to allow non-J2SE projects to plug in their own implementation
of JUnit support, i.e.:
The SPI allows to plug a project-type-specific implementation of JUnit support into NetBeans. The current NetBeans implementation only supports JUnit on J2SE project types. The SPI describes services provided by the custom JUnit support plugin.
The functionality to be plugged in comprises:
For navigation, the plugin defines mapping between source classes and
the corresponding test classes (both directions). Thus it provides
an additional information to the information provides by
UnitTestForSourceQuery
For generation of test skeletons, the plugin actually defines the whole test skeleton generator - it generates one or more test files for a given source file.
|
|
The sources for the module are in the Apache Git repositories or in the GitHub repositories.
Nothing.
Read more about the implementation in the answers to architecture questions.