|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.interview.Interview
com.sun.javatest.interview.PriorStatusInterview
public class PriorStatusInterview
This interview collects the "prior status" test filter parameters. It is normally used as one of a series of sub-interviews that collect the parameter information for a test run.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.interview.Interview |
---|
Interview.BadHelpFault, Interview.Fault, Interview.HelpNotFoundFault, Interview.NotOnPathFault, Interview.Observer |
Field Summary |
---|
Fields inherited from class com.sun.interview.Interview |
---|
CHECKSUM, EXPORT_IGNORE_ALL_EXCEPTIONS, EXPORT_IGNORE_NO_EXCEPTIONS, EXPORT_IGNORE_RUNTIME_EXCEPTIONS, EXTERNAL_PREF, INTERVIEW, LOCALE, MARKERS, MARKERS_PREF, QUESTION, SEMANTIC_MAX_VERSION, SEMANTIC_PRE_32, SEMANTIC_VERSION_32, SEMANTIC_VERSION_43, TEMPLATE_PREF |
Fields inherited from interface com.sun.javatest.Parameters.MutablePriorStatusParameters |
---|
MATCH_PRIOR_STATUS, NO_PRIOR_STATUS |
Constructor Summary | |
---|---|
PriorStatusInterview(InterviewParameters parent)
Create an interview. |
Method Summary | |
---|---|
boolean[] |
getMatchPriorStatusValues()
Get an array of booleans which identify which tests to be run, according to their prior execution status. |
int |
getPriorStatusMode()
Get the current mode determining whether tests are selected or not according to their prior execution status. |
boolean[] |
getPriorStatusValues()
Get an array of boolean values from the interview, which indicate which "prior status" values will cause a test to be selected for execution. |
TestFilter |
getStatusFilter()
Get a test filter generated from the status test values in the interview. |
void |
setMatchPriorStatusValues(boolean[] b)
Set an array of boolean values in the interview, which indicate which "prior status" values will cause a test to be selected for execution. |
void |
setPriorStatusMode(int mode)
Set the current mode determining whether tests are selected or not according to their prior execution status. |
void |
setPriorStatusValues(boolean[] b)
Set which prior status values should be used, if any, to select tests for execution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PriorStatusInterview(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.Method Detail |
---|
public boolean[] getPriorStatusValues()
Status.PASSED
, Status.FAILED
,
etc.
getPriorStatusValues
in interface Parameters.PriorStatusParameters
setPriorStatusValues(boolean[])
public void setPriorStatusValues(boolean[] b)
Parameters.MutablePriorStatusParameters
setPriorStatusValues
in interface Parameters.MutablePriorStatusParameters
b
- if null, the prior status mode will be set to NO_PRIOR_STATUS;
if not null, the prior status mode will be set to MATCH_PRIOR_STATUS,
and the matching values will be set to this array.Parameters.PriorStatusParameters.getPriorStatusValues()
public int getPriorStatusMode()
Parameters.MutablePriorStatusParameters
getPriorStatusMode
in interface Parameters.MutablePriorStatusParameters
Parameters.MutablePriorStatusParameters.setPriorStatusMode(int)
,
Parameters.MutablePriorStatusParameters.NO_PRIOR_STATUS
,
Parameters.MutablePriorStatusParameters.MATCH_PRIOR_STATUS
public void setPriorStatusMode(int mode)
Parameters.MutablePriorStatusParameters
setPriorStatusMode
in interface Parameters.MutablePriorStatusParameters
mode
- if set to NO_PRIOR_STATUS, the prior execution status
will not be taken into account; otherwise, if set to MATCH_PRIOR_STATUS
tests will be selected if and only of their execution status matches
one of the matching prior status values.Parameters.MutablePriorStatusParameters.getPriorStatusMode()
,
Parameters.MutablePriorStatusParameters.NO_PRIOR_STATUS
,
Parameters.MutablePriorStatusParameters.MATCH_PRIOR_STATUS
public boolean[] getMatchPriorStatusValues()
Parameters.MutablePriorStatusParameters
Status.PASSED
, Status.FAILED
,
Status.ERROR
, and Status.NOT_RUN
.
A test will be selected for execution if the entry in the
array corresponding to the tests execution status is set to true.
getMatchPriorStatusValues
in interface Parameters.MutablePriorStatusParameters
Parameters.MutablePriorStatusParameters.setMatchPriorStatusValues(boolean[])
public void setMatchPriorStatusValues(boolean[] b)
Status.PASSED
, Status.FAILED
,
etc.
setMatchPriorStatusValues
in interface Parameters.MutablePriorStatusParameters
b
- an array of Status.NUM_STATES
boolean values which indicate
which "prior status" values will cause a test to be selected for execution.getMatchPriorStatusValues()
public TestFilter getStatusFilter()
getPriorStatusValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |