| java.lang.Object org.netbeans.modules.junit.JUnitPluginTrampoline
JUnitPluginTrampoline | abstract public class JUnitPluginTrampoline (Code) | | author: Marian Petras |
Method Summary | |
abstract public boolean | canCreateTests(JUnitPlugin plugin, FileObject... fileObjects) Determines whether the given plugin is capable of creating tests
for the given files at the moment. | abstract public boolean | createTestActionCalled(JUnitPlugin plugin, FileObject[] filesToTest) | abstract public FileObject[] | createTests(JUnitPlugin plugin, FileObject[] filesToTest, FileObject targetRoot, Map<CreateTestParam, Object> params) Creates test classes for given source classes. | abstract public Location | getTestLocation(JUnitPlugin plugin, Location sourceLocation) Returns a specification of a Java element or file representing test
for the given source Java element or file. | abstract public Location | getTestedLocation(JUnitPlugin plugin, Location testLocation) Returns a specification of a Java element or file that is tested
by the given test Java element or test file. |
canCreateTests | abstract public boolean canCreateTests(JUnitPlugin plugin, FileObject... fileObjects)(Code) | | Determines whether the given plugin is capable of creating tests
for the given files at the moment.
The default implementation returns
true .
Parameters: plugin - plugin to be queried Parameters: fileObjects - FileObject s for which the tests are aboutto be created true if the given plugin is able of creating testsfor the given FileObject s, false otherwise See Also: JUnitPluginTrampoline.createTests |
createTestActionCalled | abstract public boolean createTestActionCalled(JUnitPlugin plugin, FileObject[] filesToTest)(Code) | | |
createTests | abstract public FileObject[] createTests(JUnitPlugin plugin, FileObject[] filesToTest, FileObject targetRoot, Map<CreateTestParam, Object> params)(Code) | | Creates test classes for given source classes.
Parameters: filesToTest - source files for which test classes should becreated Parameters: targetRoot - root folder of the target source root Parameters: params - parameters of creating test class- each key is an Integer whose value is equalto some of the constants defined in the class;the value is eithera String (for key with value CLASS_NAME )or a Boolean (for other keys) created test files |
getTestLocation | abstract public Location getTestLocation(JUnitPlugin plugin, Location sourceLocation)(Code) | | Returns a specification of a Java element or file representing test
for the given source Java element or file.
Parameters: sourceLocation - specification of a Java element or file specification of a corresponding test Java element or file,or null if no corresponding test Java file is available |
getTestedLocation | abstract public Location getTestedLocation(JUnitPlugin plugin, Location testLocation)(Code) | | Returns a specification of a Java element or file that is tested
by the given test Java element or test file.
Parameters: testLocation - specification of a Java element or file specification of a Java element or file that is testedby the given Java element or file. |
|
|