|
org.netbeans.modules.junit/2 2.23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.junit.plugin.JUnitPlugin
public abstract class JUnitPlugin
SPI for custom implementations of support for JUnit. It declares methods for:
getTestLocation,
getTestedLocation)createTests)
| Nested Class Summary | |
|---|---|
static class |
JUnitPlugin.CreateTestParam
Enumeration of test creation parameters. |
static class |
JUnitPlugin.Location
Data structure for storage of specification of a Java element or a Java file. |
| Constructor Summary | |
|---|---|
protected |
JUnitPlugin()
Default constructor for use by subclasses. |
| Method Summary | |
|---|---|
protected boolean |
createTestActionCalled(FileObject[] selectedFiles)
Called immediately after the Create Test action was called. |
protected abstract FileObject[] |
createTests(FileObject[] filesToTest,
FileObject targetRoot,
Map<JUnitPlugin.CreateTestParam,Object> params)
Creates test classes for given source classes. |
protected abstract JUnitPlugin.Location |
getTestedLocation(JUnitPlugin.Location testLocation)
Returns a specification of a Java element or file that is tested by the given test Java element or test file. |
protected abstract JUnitPlugin.Location |
getTestLocation(JUnitPlugin.Location sourceLocation)
Returns a specification of a Java element or file representing test for the given source Java element or file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JUnitPlugin()
| Method Detail |
|---|
protected abstract JUnitPlugin.Location getTestLocation(JUnitPlugin.Location sourceLocation)
sourceLocation - specification of a Java element or file
null if no corresponding test Java file is availableprotected abstract JUnitPlugin.Location getTestedLocation(JUnitPlugin.Location testLocation)
testLocation - specification of a Java element or file
protected abstract FileObject[] createTests(FileObject[] filesToTest, FileObject targetRoot, Map<JUnitPlugin.CreateTestParam,Object> params)
null.
filesToTest - source files for which test classes should be
createdtargetRoot - root folder of the target source rootparams - parameters of creating test class
- each key is an Integer whose value is equal
to some of the constants defined in the class;
the value is either
a String (for key with value CLASS_NAME)
or a Boolean (for other keys)
null if no test classes were
created and/or updated#canCreateTestsprotected boolean createTestActionCalled(FileObject[] selectedFiles)
selectedFiles - files and folders/packages that were selected
when the action was called
true if the action can continue,
false if the action should not continue;
the default implementation returns always true
|
org.netbeans.modules.junit/2 2.23 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||