站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

Filter (NB JUnit) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.nbjunit/1 1.41

org.netbeans.junit
Class Filter

java.lang.Object
  extended by org.netbeans.junit.Filter

public class Filter
extends Object

A helper class, which holds informatino about filtered tests


Nested Class Summary
static class Filter.IncludeExclude
           
 
Constructor Summary
Filter()
          Creates new Filter
 
Method Summary
 Filter.IncludeExclude[] getExcludes()
           
 String getExpectedFail(String name)
           
 Filter.IncludeExclude[] getIncludes()
           
 boolean isIncluded(String name)
           
static boolean match(String pattern, String str)
          Matches a string against a pattern.
 void setExcludes(Filter.IncludeExclude[] excludes)
           
 void setIncludes(Filter.IncludeExclude[] includes)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Filter

public Filter()
Creates new Filter

Method Detail

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 against
str - 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

org.netbeans.modules.nbjunit/1 1.41

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.