Uses of Class
com.sun.javatest.TestFilter
-
Packages that use TestFilter Package Description com.sun.javatest This package provides facilities for reading, executing and monitoring tests.com.sun.javatest.exec The Test Manager Tool provides a GUI for opening, browsing, configuring, and running tests and test suites, and for browsing the results.com.sun.javatest.interview This package provides a configuration interview for legacy test suites which do not provide their own interview, and also provides sub-interviews which may be used to build a custom interview with standard questions for the standard sections.com.sun.javatest.report This package provides API for generating reports about test runs. -
-
Uses of TestFilter in com.sun.javatest
Subclasses of TestFilter in com.sun.javatest Modifier and Type Class Description class
AllTestsFilter
Basic filter which accepts all tests presented to it.class
CompositeFilter
A filter which uses one or more filters to implement its accept method.class
ExcludeListFilter
A test filter that filters out tests that appear in anExcludeList
.class
InitialUrlFilter
Filters tests based on a set of initial files or URLs.class
KeywordsFilter
A test filter that filters tests according to the keywords on a test description.class
LastRunFilter
This filter designed to show only the results from the last test run.class
ObservableTestFilter
An extension to the basic test filter which provides observer capabilities.class
ParameterFilter
This filter knows how to deal with the the Parameters interface to get the necessary filtering effect.class
StatusFilter
A test filter that filters tests according to their prior execution status.Methods in com.sun.javatest that return TestFilter Modifier and Type Method Description TestFilter
TestSuite. createTestFilter(TestEnvironment filterEnv)
Create a test suite specific filter to be used to filter the tests to be selected for a test run.TestFilter
BasicParameters. getExcludeListFilter()
TestFilter
InterviewParameters. getExcludeListFilter()
TestFilter
Parameters. getExcludeListFilter()
Get a filter which will filter tests according to the result of getExcludeList().TestFilter
InterviewParameters. getExcludeTableFilter()
Deprecated.Use getExcludeListFilter().TestFilter[]
BasicParameters. getFilters()
TestFilter[]
CompositeFilter. getFilters()
Return the filters being used internally by this composite.TestFilter[]
InterviewParameters. getFilters()
TestFilter[]
Parameters. getFilters()
Get an array of the non-null filters returned from getExcludeListFilter, getKeywordsFilter, getPriorStatusFilter, and getRelevantTestFilter.TestFilter[]
TestResultTable.TreeIterator. getFilters()
Find out what the effective filters are.TestFilter
BasicParameters. getKeywordsFilter()
TestFilter
InterviewParameters. getKeywordsFilter()
TestFilter
Parameters. getKeywordsFilter()
Get a filter which will filter tests according to the result of getKeywords().TestFilter
BasicParameters. getPriorStatusFilter()
TestFilter
InterviewParameters. getPriorStatusFilter()
TestFilter
Parameters. getPriorStatusFilter()
Get a filter which will filter tests according to the result of getPriorStatusValus().TestFilter
BasicParameters. getRelevantTestFilter()
TestFilter
InterviewParameters. getRelevantTestFilter()
TestFilter
Parameters. getRelevantTestFilter()
Get a test-suite specific filter which will filter tests according to test-suite-specific criteria, as perhaps determined by a configuration interview.TestFilter[]
ParameterFilter. getTestFilters()
Gets the set of filters that the parameters have supplied.Methods in com.sun.javatest that return types with arguments of type TestFilter Modifier and Type Method Description java.util.HashMap<TestFilter,java.util.ArrayList<TestDescription>>
TestResultTable.TreeIterator. getFilterStats()
Find out which filters rejected which tests.Methods in com.sun.javatest with parameters of type TestFilter Modifier and Type Method Description java.util.Enumeration
TestResultTable. elements(TestFilter[] filters)
Same description as getIterator() method with same args.static java.util.Enumeration
TestResultTable. elements(TestResultTable.TreeNode node, TestFilter filter)
Same description as getIterator() method with same args.static java.util.Enumeration
TestResultTable. elements(TestResultTable.TreeNode node, TestFilter[] filters)
Same description as getIterator() method with same args.java.util.Enumeration
TestResultTable. elements(java.io.File[] tests, TestFilter[] filters)
Same as getIterator() with the same args.java.util.Enumeration
TestResultTable. elements(java.lang.String[] urls, TestFilter[] filters)
This method is the same as getIterator() with the same params.java.util.Enumeration
TestResultTable. elements(java.lang.String url, TestFilter[] filters)
Get an enumerator capable of producing a filtered view of the test suite.static boolean
CompositeFilter. equals(TestFilter[] array1, TestFilter[] array2)
Check if two arrays are equal, using set-equality.TestResultTable.TreeIterator
TestResultTable. getIterator(TestFilter[] filters)
List all the tests in the tree subject to the given filters.static TestResultTable.TreeIterator
TestResultTable. getIterator(TestResultTable.TreeNode node, TestFilter filter)
Get an iterator capable of producing a filtered view of the test suite.static TestResultTable.TreeIterator
TestResultTable. getIterator(TestResultTable.TreeNode node, TestFilter[] filters)
Get an iterator capable of producing a filtered view of the test suite.TestResultTable.TreeIterator
TestResultTable. getIterator(java.io.File[] tests, TestFilter[] filters)
Get an iterator capable of producing a filtered view of the test suite.TestResultTable.TreeIterator
TestResultTable. getIterator(java.lang.String[] paths, TestFilter[] filters)
Get an iterator capable of producing a filtered view of the test suite.void
TestFinderQueue.Observer. ignored(TestDescription td, TestFilter f)
A test description which was previously found, has been rejected by a test filter, and so has not been put in the queue of tests to be executed.void
TestFinder. init(java.lang.String[] args, java.io.File testSuiteRoot, java.io.File[] tests, TestFilter[] filters, TestEnvironment env)
Deprecated.Use one of the other init() methods.void
TestFilter.Observer. rejected(TestDescription d, TestFilter rejector)
Notification methodcalled when a test has been rejected.void
TestFinderQueue. setFilters(TestFilter[] filters)
Set an array of filters that will be used to filter the tests read by the test finder.Constructors in com.sun.javatest with parameters of type TestFilter Constructor Description CompositeFilter(TestFilter[] filters)
Construct an unnamed filter composed of the given filters.CompositeFilter(TestFilter[] filters, I18NResourceBundle bundle, java.lang.String prefix)
This is the preferred constructor which creates a filter composed of the given filters, with descriptive string from a resource bundle. -
Uses of TestFilter in com.sun.javatest.exec
Methods in com.sun.javatest.exec that return TestFilter Modifier and Type Method Description protected TestFilter
BasicSession. findFilter(java.lang.String name)
Supposed to be overridden when extra filters addedTestFilter
BasicSession. getTestFilter(java.lang.String name)
Methods in com.sun.javatest.exec that return types with arguments of type TestFilter Modifier and Type Method Description protected java.util.List<TestFilter>
ET_FilterHandler. getUsersFilters()
Subclasses may override this method to insert filters like TemplateFilterMethods in com.sun.javatest.exec with parameters of type TestFilter Modifier and Type Method Description void
FilterConfig.Observer. filterAdded(TestFilter f)
void
FilterConfig.Observer. filterRemoved(TestFilter f)
Removing the active filter will result in an exception.void
FilterConfig.Observer. filterUpdated(TestFilter f)
The state of the given filter has changed. -
Uses of TestFilter in com.sun.javatest.interview
Methods in com.sun.javatest.interview that return TestFilter Modifier and Type Method Description TestFilter
ExcludeListInterview. getExcludeFilter()
Get a test filter generated from the exclude list files in the interview.TestFilter
KeywordsInterview. getKeywordFilter()
Get a test filter based on the keyword expression in the interview.TestFilter
PriorStatusInterview. getStatusFilter()
Get a test filter generated from the status test values in the interview. -
Uses of TestFilter in com.sun.javatest.report
Methods in com.sun.javatest.report that return TestFilter Modifier and Type Method Description TestFilter
ReportSettings. getTestFilter()
Methods in com.sun.javatest.report with parameters of type TestFilter Modifier and Type Method Description abstract java.io.File
CustomReport. createReport(java.lang.String args, java.io.File rootDir, InterviewParameters ip, TestFilter filter)
Write a report without the context of a GUI.void
ReportSettings. setFilter(TestFilter f)
Constructors in com.sun.javatest.report with parameters of type TestFilter Constructor Description Report(InterviewParameters params, java.io.File dir, TestFilter tf)
Deprecated.It is expected that you call writeReport() if you use this constructor.
-