public class JavaTestLocator extends java.lang.Object implements SMTestLocator
| Modifier and Type | Field and Description |
|---|---|
static JavaTestLocator |
INSTANCE |
static java.lang.String |
SUITE_PROTOCOL |
static java.lang.String |
TEST_PROTOCOL |
| Constructor and Description |
|---|
JavaTestLocator() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<Location> |
getLocation(java.lang.String stacktraceLine,
Project project,
GlobalSearchScope scope)
Parse stacktrace line and return corresponding location.
|
java.util.List<Location> |
getLocation(java.lang.String protocol,
java.lang.String path,
Project project,
GlobalSearchScope scope)
Creates the
Location list from protocol and path in scope. |
java.util.List<Location> |
getLocation(java.lang.String protocol,
java.lang.String path,
java.lang.String metainfo,
Project project,
GlobalSearchScope scope)
Creates the
Location list from protocol, path, and metainfo in scope. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocationCacheModificationTrackerpublic static final java.lang.String SUITE_PROTOCOL
public static final java.lang.String TEST_PROTOCOL
public static final JavaTestLocator INSTANCE
public java.util.List<Location> getLocation(java.lang.String protocol, java.lang.String path, Project project, GlobalSearchScope scope)
SMTestLocatorLocation list from protocol and path in scope.getLocation in interface SMTestLocatorpublic java.util.List<Location> getLocation(java.lang.String protocol, java.lang.String path, java.lang.String metainfo, Project project, GlobalSearchScope scope)
SMTestLocatorLocation list from protocol, path, and metainfo in scope.
Implementation of test framework can provide additional information in metainfo parameter,
The metainfo parameter simplifies the search for locations, but can not be used to identify the test.
A good example for code>metainfo is the line number of the beginning of the test. It can speed up the search procedure,
but it changes when editing.getLocation in interface SMTestLocatorpublic java.util.List<Location> getLocation(java.lang.String stacktraceLine, Project project, GlobalSearchScope scope)
SMTestLocatorgetLocation in interface SMTestLocator