org.netbeans.junit
Class Filter
java.lang.Object
|
+--org.netbeans.junit.Filter
- public class Filter
- extends java.lang.Object
A helper class, which holds informatino about filtered tests
Constructor Summary |
Filter()
Creates new Filter |
Method Summary |
java.lang.String[] |
getExcludes()
|
java.lang.String[] |
getIncludes()
|
boolean |
isIncluded(java.lang.String name)
|
static boolean |
match(java.lang.String pattern,
java.lang.String str)
Matches a string against a pattern. |
void |
setExcludes(java.lang.String[] excludes)
|
void |
setIncludes(java.lang.String[] includes)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Filter
public Filter()
- Creates new Filter
setIncludes
public void setIncludes(java.lang.String[] includes)
setExcludes
public void setExcludes(java.lang.String[] excludes)
getIncludes
public java.lang.String[] getIncludes()
getExcludes
public java.lang.String[] getExcludes()
isIncluded
public boolean isIncluded(java.lang.String name)
match
public static boolean match(java.lang.String pattern,
java.lang.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 java.lang.String toString()
- Overrides:
toString
in class java.lang.Object