|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.junit.rules.TestWatchman
org.sonatype.sisu.litmus.testsupport.TestMethod
public class TestMethod
Test method related utilities.
Constructor Summary | |
---|---|
TestMethod(TestUtil util)
Constructor. |
Method Summary | |
---|---|
String |
getName()
Returns the name of the currently-running test method |
File |
getTargetDirMethodFile(String root,
String path)
Returns a directory specific to running test method. |
File |
resolveFile(File root,
String path)
Resolves a test file by looking up the specified path into test resources starting with a specified root. |
void |
starting(org.junit.runners.model.FrameworkMethod method)
|
Methods inherited from class org.junit.rules.TestWatchman |
---|
apply, failed, finished, succeeded |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestMethod(TestUtil util)
util
- test utilMethod Detail |
---|
public void starting(org.junit.runners.model.FrameworkMethod method)
starting
in class org.junit.rules.TestWatchman
public String getName()
public File getTargetDirMethodFile(String root, String path)
<project>/target/<root>/<test class package>/<test class name>/<test method name>/<path>
root
- root name relative to target dirpath
- path to be appended to test method specific directory
public File resolveFile(File root, String path) throws FileNotFoundException
<project>/src/test/<root>/<test class package>/<test class name>/<test method name>/<path>
<project>/src/test/<root>/<test class package>/<test class name>/<path>
<project>/src/test/<root>/<test class package>/<path>
<project>/src/test/<root>/<path>
root
- root directorypath
- path to look up
FileNotFoundException
- if path cannot be found in any of above locations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |