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

java.lang.Objectorg.junit.runner.manipulation.Filter
patterntesting.runtime.junit.internal.SmokeFilter
public final class SmokeFilter
This filter handles the different annotations like Broken, RunTestOn, SkipTestOn, IntegrationTest or SmokeTest.
| Field Summary |
|---|
| Fields inherited from class org.junit.runner.manipulation.Filter |
|---|
ALL |
| Constructor Summary | |
|---|---|
SmokeFilter()
|
|
| Method Summary | |
|---|---|
String |
describe()
Describes the kind of test e.g. |
int |
getFilteredNumber()
Gets the number of methods which was filtered out. |
boolean |
hasFiltered()
Checks if there are some methods filtered out. |
boolean |
isBroken(String method,
Broken broken)
Checks for a given method if the condition of the given Broken annotations is fulfilled. |
void |
setOsName(String name)
For testing you can set the OS name. |
void |
setToday(Date date)
For testing (e.g. to check the past) you can set the today's date. |
void |
setUserName(String name)
For testing you can set the user name. |
boolean |
shouldBeIgnored(org.junit.runner.Description description)
Should be ignored. |
boolean |
shouldRun(org.junit.runner.Description description)
Handles the different annotations like Broken, RunTestOn, SkipTestOn, IntegrationTest or SmokeTest. |
String |
toString()
Prints the description of this filter. |
| Methods inherited from class org.junit.runner.manipulation.Filter |
|---|
apply, intersect, matchMethodDescription |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SmokeFilter()
| Method Detail |
|---|
public void setToday(Date date)
date - the new today's datepublic void setOsName(String name)
name - the new os namepublic void setUserName(String name)
name - the new user namepublic String describe()
describe in class org.junit.runner.manipulation.FilterFilter.describe()public boolean shouldRun(org.junit.runner.Description description)
shouldRun in class org.junit.runner.manipulation.Filterdescription - containing the JUnit class and test method
Filter.shouldRun(org.junit.runner.Description)public boolean shouldBeIgnored(org.junit.runner.Description description)
description - the description
public boolean isBroken(String method,
Broken broken)
method - the methodbroken - the broken
public boolean hasFiltered()
public int getFilteredNumber()
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||