当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
Filter (NB JUnit) - NetBeans API Javadoc (Current Development Version)
org.netbeans.junit
Class Filter
java.lang.Object
org.netbeans.junit.Filter
public class Filter
- extends Object
A helper class, which holds informatino about filtered tests
Constructor Summary |
Filter()
Creates new Filter |
Filter
public Filter()
- Creates new Filter
setIncludes
public void setIncludes(Filter.IncludeExclude[] includes)
setExcludes
public void setExcludes(Filter.IncludeExclude[] excludes)
getIncludes
public Filter.IncludeExclude[] getIncludes()
getExcludes
public Filter.IncludeExclude[] getExcludes()
isIncluded
public boolean isIncluded(String name)
getExpectedFail
public String getExpectedFail(String name)
match
public static boolean match(String pattern,
String str)
- Matches a string against a pattern. The pattern contains two special
characters:
'*' which means zero or more characters,
'?' which means one and only one character.
This code was stolen from Ant's DirectoryScanner.match(String, String) function.
- Parameters:
pattern
- the (non-null) pattern to match againststr
- the (non-null) string that must be matched against the
pattern
- Returns:
true
when the string matches against the pattern,
false
otherwise.
toString
public String toString()
- Overrides:
toString
in class Object