|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectpatterntesting.runtime.junit.internal.TestOn
public final class TestOn
This is a local helper class for the RunTestOn and SkipTestOn annotation. So most of the methods are package default because there is no need to access from somewhere else.
| Constructor Summary | |
|---|---|
TestOn()
|
|
| Method Summary | |
|---|---|
String |
getReason()
Gets the reason. |
boolean |
hasReason()
Checks for reason. |
boolean |
matches(String[] os,
String[] arch,
String[] version,
String[] host,
String[] javaVersions,
String[] javaVendors,
String[] users,
String[] systemProps)
If the operating system(s) match and one of the other parameters (if they contain values) this method will return true. |
boolean |
matches(String[] value,
String[] os,
String[] arch,
String[] version,
String[] host,
String[] javaVersions,
String[] javaVendors,
String[] users,
String[] systemProps)
If the operating system(s) match and one of the other parameters (if they contain values) this method will return true. |
void |
setOsArch(String arch)
For testing you can set the OS architector. |
void |
setOsName(String name)
For testing you can set the OS name. |
void |
setUserName(String name)
For testing you can set the user name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestOn()
| Method Detail |
|---|
public void setOsName(String name)
name - the new os namepublic void setOsArch(String arch)
arch - the new os architectorpublic void setUserName(String name)
name - the new user namepublic String getReason()
public boolean hasReason()
public boolean matches(String[] value,
String[] os,
String[] arch,
String[] version,
String[] host,
String[] javaVersions,
String[] javaVendors,
String[] users,
String[] systemProps)
value - same as os parameteros - the operating system(s) which should matcharch - the architecturesversion - the version(s) of the operating systemshost - the host(s)javaVersions - the java version(s)javaVendors - the java vendor(s)users - the user(s)systemProps - the system properties
public boolean matches(String[] os,
String[] arch,
String[] version,
String[] host,
String[] javaVersions,
String[] javaVendors,
String[] users,
String[] systemProps)
os - the operating system(s) which should matcharch - the architecturesversion - the version(s) of the operating systemshost - the host(s)javaVersions - the java version(s)javaVendors - the java vendor(s)users - the user(s)systemProps - the system properties
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||