|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Query to find Java package roots of unit tests for Java package root of sources and vice versa.
A default implementation is registered by the
org.netbeans.modules.java.project
module which looks up the
project corresponding to the binary file and checks whether that
project has an implementation of this interface in its lookup. If so, it
delegates to that implementation. Therefore it is not generally necessary
for a project type provider to register its own global implementation of
this query, if it depends on the Java Project module and uses this style.
This interface assumes following mapping pattern between source
files and unit tests: *.java -> *Test.java
. This mapping
is used for example for unit test generation and for searching test for
source. Usage of any other pattern will break this functionality.
Project.getLookup()
,
UnitTestForSourceQuery
Method Summary | |
URL[] |
findSources(FileObject unitTest)
Returns the source roots for a given test root. |
URL[] |
findUnitTests(FileObject source)
Returns the test roots for a given source root. |
Method Detail |
public URL[] findUnitTests(FileObject source)
source
- a Java package root with sources
public URL[] findSources(FileObject unitTest)
unitTest
- a Java package roots with unit tests
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |