public class TestsInterview extends Interview implements Parameters.MutableTestsParameters
Modifier and Type | Class and Description |
---|---|
class |
TestsInterview.TreeOrFileChoiceQuestion
Represents Tests Selection Choice Question.
|
Interview.BadHelpFault, Interview.Fault, Interview.HelpNotFoundFault, Interview.NotOnPathFault, Interview.Observer
Modifier and Type | Field and Description |
---|---|
protected Question |
qEnd |
protected TreeQuestion |
qTestTree |
protected TestsInterview.TreeOrFileChoiceQuestion |
qTreeOrFile |
EXPORT_IGNORE_ALL_EXCEPTIONS, EXPORT_IGNORE_NO_EXCEPTIONS, EXPORT_IGNORE_RUNTIME_EXCEPTIONS, EXTERNAL_PREF, helpSetFactory, INTERVIEW, LOCALE, MARKERS, MARKERS_PREF, QUESTION, SEMANTIC_MAX_VERSION, SEMANTIC_PRE_32, SEMANTIC_VERSION_32, SEMANTIC_VERSION_43, TEMPLATE_PREF
ALL_TESTS, SPECIFIED_TESTS
Constructor and Description |
---|
TestsInterview(InterviewParameters parent)
Create an interview.
|
Modifier and Type | Method and Description |
---|---|
protected TestsInterview.TreeOrFileChoiceQuestion |
createTreeOrFileChoiceQuestion(Interview interview,
java.lang.String tag)
creation of {#link TreeOrFileChoiceQuestion} is extracted into separate class
to enable 'hooks' and return {#link TreeOrFileChoiceQuestion} sub class
|
void |
dispose() |
java.lang.String[] |
getSpecifiedTests()
Get the set of specified tests to be used as the set of tests to
be run when the mode is set to SPECIFIED_TESTS.
|
java.lang.String[] |
getTests()
Get the initial files from the interview.
|
int |
getTestsMode()
Get the current mode for how the tests are specified.
|
void |
setSpecifiedTests(java.lang.String[] tests)
Set the specified tests to be be run when the mode is set to SPECIFIED_TESTS.
|
void |
setTests(java.lang.String[] tests)
Specify the tests to be executed.
|
void |
setTestsMode(int mode)
Set the current mode for how the tests are specified.
|
addObserver, callInterview, clear, clearMarkedResponses, containsObserver, createChecklist, createChecklistItem, createChecklistItem, createChecklistItem, export, getAllQuestions, getCurrentQuestion, getDefaultImage, getExportIgnoreExceptionPolicy, getExternalProperties, getFirstQuestion, getHelpSet, getInterview, getInterviewSemantics, getParent, getPath, getPathToCurrent, getPropertyKeys, getQuestions, getRawPath, getResourceBundle, getResourceString, getResourceString, getRoot, getTag, getTitle, hasNext, hasValidNext, isChecklistEmpty, isChecksumValid, isEdited, isFinishable, isFirst, isInterviewFinishable, isLast, isRoot, isStarted, iteratePath, iteratePathToCurrent, last, load, load, next, pathContains, pathContains, prev, propagateTemplateForAll, readLocale, removeAllMarkers, removeMarkers, removeObserver, reset, retrieveProperty, retrieveTemplateKeys, retrieveTemplateProperty, save, setBaseTag, setCurrentQuestion, setDefaultImage, setEdited, setExportIgnoreExceptionPolicy, setFirstQuestion, setHelpSet, setHelpSet, setHelpSet, setInterviewSemantics, setResourceBundle, setResourceBundle, setTitle, storeProperty, storeTemplateProperties, storeTemplateProperty, updatePath, updatePath, verifyPathContains, writeLocale
protected TestsInterview.TreeOrFileChoiceQuestion qTreeOrFile
protected TreeQuestion qTestTree
protected Question qEnd
public TestsInterview(InterviewParameters parent) throws Interview.Fault
parent
- The parent interview of which this is a child.Interview.Fault
- if there is a problem while creating the interview.public void dispose()
public java.lang.String[] getTests()
getTests
in interface Parameters.TestsParameters
setTests(java.lang.String[])
public void setTests(java.lang.String[] tests)
Parameters.MutableTestsParameters
setTests
in interface Parameters.MutableTestsParameters
tests
- If null, set the tests mode to ALL_TESTS;
if not null, set the tests mode to SPECIFIED_TESTS, and set
the specified tests.Parameters.TestsParameters.getTests()
public int getTestsMode()
Parameters.MutableTestsParameters
getTestsMode
in interface Parameters.MutableTestsParameters
Parameters.MutableTestsParameters.setTestsMode(int)
,
Parameters.MutableTestsParameters.ALL_TESTS
,
Parameters.MutableTestsParameters.SPECIFIED_TESTS
public void setTestsMode(int mode)
Parameters.MutableTestsParameters
setTestsMode
in interface Parameters.MutableTestsParameters
mode
- use ALL_TESTS if all tests are to be run, irrespective of
the selected tests, or SPECIFIED_TESTS if a set of specified
tests are to be run.Parameters.MutableTestsParameters.getTestsMode()
,
Parameters.MutableTestsParameters.ALL_TESTS
,
Parameters.MutableTestsParameters.SPECIFIED_TESTS
public java.lang.String[] getSpecifiedTests()
Parameters.MutableTestsParameters
getSpecifiedTests
in interface Parameters.MutableTestsParameters
Parameters.MutableTestsParameters.setSpecifiedTests(java.lang.String[])
,
Parameters.TestsParameters.getTests()
public void setSpecifiedTests(java.lang.String[] tests)
Parameters.MutableTestsParameters
setSpecifiedTests
in interface Parameters.MutableTestsParameters
tests
- an array of paths identifying the tests to be runParameters.MutableTestsParameters.getSpecifiedTests()
,
Parameters.TestsParameters.getTests()
protected TestsInterview.TreeOrFileChoiceQuestion createTreeOrFileChoiceQuestion(Interview interview, java.lang.String tag)
interview
- tag
- Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.