|
||||||||||
| 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.EnvironmentInterview
public class EnvironmentInterview
This interview collects the environment parameter, by means of environment (jte) files and an environment name. It is normally used as one of a series of sub-interviews that collect the parameter information for a test run. It is suitable for use with legacy test suites that still rely on environments being provided with .jte files; more sophisticated interviews should create a custom interview that collects the environment data directly.
| 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 |
| Constructor Summary | |
|---|---|
EnvironmentInterview(InterviewParameters parent)
Create an interview. |
|
| Method Summary | |
|---|---|
java.io.File[] |
getAbsoluteEnvFiles()
Get the set of files which define the environment used to run the tests. |
TestEnvironment |
getEnv()
Get the environment specified by the environment files and environment name, or null, if it cannot be determined. |
java.io.File[] |
getEnvFiles()
Get the environment files specified in the interview. |
java.lang.String |
getEnvName()
Get the environment name specified in the interview. |
void |
setEnvFiles(java.io.File[] files)
Set the environment files for the interview. |
void |
setEnvName(java.lang.String name)
Set the environment name for the interview. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnvironmentInterview(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 java.io.File[] getEnvFiles()
getEnvFiles in interface Parameters.LegacyEnvParameterssetEnvFiles(java.io.File[])public java.io.File[] getAbsoluteEnvFiles()
Parameters.LegacyEnvParameters
getAbsoluteEnvFiles in interface Parameters.LegacyEnvParametersParameters.LegacyEnvParameters.getEnvFiles(),
Parameters.LegacyEnvParameters.setEnvFiles(java.io.File[])public void setEnvFiles(java.io.File[] files)
setEnvFiles in interface Parameters.LegacyEnvParametersfiles - the environment files for the interviewgetEnvFiles()public java.lang.String getEnvName()
getEnvName in interface Parameters.LegacyEnvParameterssetEnvName(java.lang.String)public void setEnvName(java.lang.String name)
setEnvName in interface Parameters.LegacyEnvParametersname - the environment name for the interviewgetEnvName()public TestEnvironment getEnv()
getEnv in interface Parameters.EnvParametersgetEnvFiles(),
getEnvName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||