Uses of Class
com.sun.javatest.TestFilter
Packages that use TestFilter
Package
Description
This package provides facilities for reading, executing
and monitoring tests.
The Test Manager Tool provides a GUI for opening, browsing, configuring,
and running tests and test suites, and for browsing the results.
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.
This package provides API for generating reports about test runs.
-
Uses of TestFilter in com.sun.javatest
Subclasses of TestFilter in com.sun.javatestModifier and TypeClassDescriptionclassBasic filter which accepts all tests presented to it.classA filter which uses one or more filters to implement its accept method.classA test filter that filters out tests that appear in anExcludeList.classFilters tests based on a set of initial files or URLs.classA test filter that filters tests according to the keywords on a test description.classThis filter designed to show only the results from the last test run.classAn extension to the basic test filter which provides observer capabilities.classThis filter knows how to deal with the the Parameters interface to get the necessary filtering effect.classA test filter that filters tests according to their prior execution status.Methods in com.sun.javatest that return TestFilterModifier and TypeMethodDescriptionTestSuite.createTestFilter(TestEnvironment filterEnv) Create a test suite specific filter to be used to filter the tests to be selected for a test run.BasicParameters.getExcludeListFilter()InterviewParameters.getExcludeListFilter()Parameters.getExcludeListFilter()Get a filter which will filter tests according to the result of getExcludeList().InterviewParameters.getExcludeTableFilter()Deprecated.Use getExcludeListFilter().BasicParameters.getFilters()CompositeFilter.getFilters()Return the filters being used internally by this composite.InterviewParameters.getFilters()Parameters.getFilters()Get an array of the non-null filters returned from getExcludeListFilter, getKeywordsFilter, getPriorStatusFilter, and getRelevantTestFilter.TestResultTable.TreeIterator.getFilters()Find out what the effective filters are.BasicParameters.getKeywordsFilter()InterviewParameters.getKeywordsFilter()Parameters.getKeywordsFilter()Get a filter which will filter tests according to the result of getKeywords().BasicParameters.getPriorStatusFilter()InterviewParameters.getPriorStatusFilter()Parameters.getPriorStatusFilter()Get a filter which will filter tests according to the result of getPriorStatusValus().BasicParameters.getRelevantTestFilter()InterviewParameters.getRelevantTestFilter()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.ParameterFilter.getTestFilters()Gets the set of filters that the parameters have supplied.Methods in com.sun.javatest that return types with arguments of type TestFilterModifier and TypeMethodDescriptionTestResultTable.TreeIterator.getFilterStats()Find out which filters rejected which tests.Methods in com.sun.javatest with parameters of type TestFilterModifier and TypeMethodDescriptionTestResultTable.elements(TestFilter... filters) Same description as getIterator() method with same args.static Enumeration<TestResult> TestResultTable.elements(TestResultTable.TreeNode node, TestFilter filter) Same description as getIterator() method with same args.static Enumeration<TestResult> TestResultTable.elements(TestResultTable.TreeNode node, TestFilter... filters) Same description as getIterator() method with same args.TestResultTable.elements(File[] tests, TestFilter... filters) Same as getIterator() with the same args.TestResultTable.elements(String[] urls, TestFilter... filters) This method is the same as getIterator() with the same params.TestResultTable.elements(String url, TestFilter... filters) Get an enumerator capable of producing a filtered view of the test suite.static booleanCompositeFilter.equals(TestFilter[] array1, TestFilter... array2) Check if two arrays are equal, using set-equality.TestResultTable.getIterator(TestFilter... filters) List all the tests in the tree subject to the given filters.static TestResultTable.TreeIteratorTestResultTable.getIterator(TestResultTable.TreeNode node, TestFilter filter) Get an iterator capable of producing a filtered view of the test suite.static TestResultTable.TreeIteratorTestResultTable.getIterator(TestResultTable.TreeNode node, TestFilter... filters) Get an iterator capable of producing a filtered view of the test suite.TestResultTable.getIterator(File[] tests, TestFilter... filters) Get an iterator capable of producing a filtered view of the test suite.TestResultTable.getIterator(String[] paths, TestFilter... filters) Get an iterator capable of producing a filtered view of the test suite.voidTestFinderQueue.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.voidTestFinder.init(String[] args, File testSuiteRoot, File[] tests, TestFilter[] filters, TestEnvironment env) Deprecated.Use one of the other init() methods.voidTestFilter.Observer.rejected(TestDescription d, TestFilter rejector) Notification method called when a test has been rejected.voidTestFinderQueue.setFilters(TestFilter... filters) Set an array of filters that will be used to filter the tests read by the test finder.Method parameters in com.sun.javatest with type arguments of type TestFilterModifier and TypeMethodDescriptionvoidHarness.notifyOfTheFinalStats(Map<TestFilter, List<TestDescription>> filterStats, int... stats) Informs all the observers of the final stats gathered after the test rundefault voidHarness.Observer.notifyOfTheFinalStats(Map<TestFilter, List<TestDescription>> filterStats, int... stats) Is called when final test run stats are available for evaluation.Constructors in com.sun.javatest with parameters of type TestFilterModifierConstructorDescriptionCompositeFilter(TestFilter... filters) Construct an unnamed filter composed of the given filters.CompositeFilter(TestFilter[] filters, I18NResourceBundle bundle, 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
Fields in com.sun.javatest.exec with type parameters of type TestFilterMethods in com.sun.javatest.exec that return TestFilterModifier and TypeMethodDescriptionprotected TestFilterBasicSession.findFilter(String name) Supposed to be overridden when extra filters addedBasicSession.getTestFilter(String name) Methods in com.sun.javatest.exec that return types with arguments of type TestFilterModifier and TypeMethodDescriptionprotected List<TestFilter> ET_FilterHandler.getUsersFilters()Subclasses may override this method to insert filters like TemplateFilterMethods in com.sun.javatest.exec with parameters of type TestFilterModifier and TypeMethodDescriptionvoidFilterConfig.Observer.filterAdded(TestFilter f) voidFilterConfig.Observer.filterRemoved(TestFilter f) Removing the active filter will result in an exception.voidFilterConfig.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 TestFilterModifier and TypeMethodDescriptionExcludeListInterview.getExcludeFilter()Get a test filter generated from the exclude list files in the interview.KeywordsInterview.getKeywordFilter()Get a test filter based on the keyword expression in the interview.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 TestFilterMethods in com.sun.javatest.report with parameters of type TestFilterModifier and TypeMethodDescriptionabstract FileCustomReport.createReport(String args, File rootDir, InterviewParameters ip, TestFilter filter) Write a report without the context of a GUI.voidReport.Settings.setFilter(TestFilter testFilter) Deprecated.voidReportSettings.setFilter(TestFilter f) Constructors in com.sun.javatest.report with parameters of type TestFilterModifierConstructorDescriptionReport(InterviewParameters params, File dir, TestFilter tf) Deprecated.It is expected that you call writeReport() if you use this constructor.