|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport net.sf.jameleon.LocationAwareTagSupport net.sf.jameleon.JameleonTagSupport net.sf.jameleon.data.AbstractDataDrivableTag net.sf.jameleon.data.AbstractFileDrivableTag net.sf.jameleon.AbstractCsvTag net.sf.jameleon.TestCaseTag
public class TestCaseTag
Every test case script must have at least one testcase tag containing all other Jameleon tags.
Some of this tags attribute may affect every nested Jameleon tag. Many of the attributes in this tag can be set globally via a jameleon.conf file.
The order of setting variables in the context follows:
Field Summary | |
---|---|
protected static String |
APPLICATIONS_PROPERTIES
|
protected String |
assertGreaterThanLevel
|
protected String |
assertLessThanLevel
|
protected String |
assertLevel
|
protected String |
assertLevels
|
protected File |
baseDir
The baseDir where everything else is based |
protected String |
bugTrackerUrl
|
protected String |
csvValueSeparator
|
protected DataDrivableRowResult |
ddRowResult
|
protected static int |
DEFAULT_ROW
|
protected static String |
DEFAULT_VALUE_SEPARATOR
|
protected boolean |
enableSslCertCheck
Enable/disable validity checking for SSL certificates. |
protected TestCaseEventHandler |
eventHandler
|
protected boolean |
executeTestCase
|
protected boolean |
failedOnDataDriver
Used to flag if a CSV file is not found. |
protected boolean |
failOnCSVFileNotFound
DEFAULT - true. |
protected boolean |
genTestCaseDocs
|
protected String |
genTestCaseDocsEncoding
|
protected String |
jameleonConfigName
The name of the Jameleon configuration file. |
protected ArrayList |
keysSet
|
protected long |
maxExecutionTime
|
protected String |
organization
|
protected String |
propsName
|
protected TestCaseResult |
results
The test case results which are a complete set of results for every tag executed. |
protected File |
resultsDir
The directory name to store the results to. |
protected File |
resultsFile
|
protected CountableDataDrivableResultContainer |
rowResultContainer
|
protected long |
startTime
|
protected boolean |
storeDisplayOnError
Only store the displayed screen being tested to a file on an error. |
protected boolean |
storeEveryDisplay
Store all displayed screens to a file.. |
protected TestCase |
testCase
|
protected String |
testCaseMainPageTemplate
|
protected String |
testCaseResultDataRowTemplate
|
protected String |
testCaseResultFunctionTemplate
|
protected String |
testCaseResultSessionTemplate
|
protected String |
testCaseResultSummaryTemplate
|
protected String |
testCaseResultTemplate
|
protected String |
testCaseSummaryTemplate
|
protected String |
testEnvironment
|
protected File |
timestampedResultsDir
The timestamped directory to store the results to. |
protected boolean |
trace
|
protected boolean |
useCSV
|
Fields inherited from class net.sf.jameleon.AbstractCsvTag |
---|
csv, csvFileName, name |
Fields inherited from class net.sf.jameleon.data.AbstractFileDrivableTag |
---|
charset, dataDir, fileName |
Fields inherited from class net.sf.jameleon.data.AbstractDataDrivableTag |
---|
addt, breakPoint, countRow, dataDrivableRowResult, executer, failedOnCurrentRow, log, numOfRowFailures, parentFailed, previousStateDir, resultContainer, resultRecorder, rowData, stateStorer, stopTestExecutionOnFailure, tct, vars, xmlOut |
Fields inherited from class net.sf.jameleon.JameleonTagSupport |
---|
attributes, broker, contextVars, fp, unsupportedAttributes |
Fields inherited from class net.sf.jameleon.LocationAwareTagSupport |
---|
columnNumber, elementTagName, lineNumber, scriptFileName |
Fields inherited from class org.apache.commons.jelly.TagSupport |
---|
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
---|---|
TestCaseTag()
|
Method Summary | |
---|---|
protected void |
addValuesFromResourceBundle(ResourceBundle props,
Properties p,
String startOfKey,
boolean overrideValue)
|
void |
addVariablesToRowData(Map vars)
Used to add key/values to a local context for multiple variable substitution. |
protected JellyTagException |
createExceptionFromResult(JameleonTestResult jtr)
|
protected JellyTagException |
createExceptionFromResult(String message,
JameleonTestResult jtr)
|
void |
doTag(XMLOutput out)
This method executes the tags inside the test-case tag. |
protected void |
executeBody(Runnable r)
|
void |
executeDrivableRow(int rowNum)
A CsvExecutable implementation method that gets called once for every row in the csv file. |
protected void |
executeNoCSV()
|
String |
getAssertGreaterThanLevel()
|
String |
getAssertLessThanLevel()
|
String |
getAssertLevel()
|
protected int |
getAssertLevelFromString(String assertLevel)
|
String |
getAssertLevels()
|
File |
getBaseDir()
|
String |
getBugTrackerUrl()
Sets the url of the bugtracking tool used so the bug's listed for the test case are linked. |
File |
getCsvDir(boolean calculate)
Gets the directory of where csv files should be read from, given the environment settings. |
DataDrivableRowResult |
getDdResult()
|
String |
getGenTestCaseDocsEncoding()
|
String |
getJameleonConfigName()
|
List |
getKeySet()
|
protected org.apache.log4j.Logger |
getLogger()
Gets the logger used for this tag |
long |
getMaxExecutionTime()
Gets the maximum execution time before the test case fails |
String |
getOrganization()
|
Properties |
getPropertiesForApplication(String applicationName)
This method creates a new Properties Object populated only with the properties for application desired. |
String |
getPropsName()
Gets the name of the properties file (minus the .properties) to read in into the context |
TestCaseResult |
getResults()
|
File |
getResultsDir()
Gets the directory where the results will be written to. |
File |
getResultsDir(boolean includeName)
Gets the directory where the results will be written to. |
protected File |
getResultsDir(int rowCount)
|
File |
getResultsFile()
Gets the results file that represents the test case execution. |
StateStorer |
getStateStorer()
|
String |
getTagDescription()
Describe the tag when error messages occur. |
protected String |
getTagTraceMsg()
Gets the trace message when the execution is beginning and ending. |
TestCase |
getTestCase()
|
String |
getTestCaseMainPageTemplate()
Gets the template to be used to generate the main page of the results.. |
String |
getTestCaseResultDataRowTemplate()
Gets the data row template to be used to generate the data drivable result. |
String |
getTestCaseResultFunctionTemplate()
Gets the template to be used to generate the function result. |
String |
getTestCaseResultSessionTemplate()
Gets the session template to be used to generate the session result. |
String |
getTestCaseResultSummaryTemplate()
Gets the template to be used to generate the test case result summary page. |
String |
getTestCaseResultTemplate()
Gets the template to be used to generate the test case result page. |
String |
getTestCaseSummaryTemplate()
Gets the template to be used to generate the test case summary page of the results.. |
protected TestCaseTag |
getTestCaseTag()
Gets the TestCaseTag for this tag. |
String |
getTestEnvironment()
|
File |
getTimestampedResultsDir()
Gets the timestamped results directory where the test case result documentation will be stored. |
boolean |
getTrace()
Gets whether a std out message should be sent before and after the execution of a functional point. |
protected void |
initResults()
|
void |
invokeChildren(int rowNum,
JameleonTestResult result)
Execute the rest of the test script. |
boolean |
isEnableSslCertCheck()
Query whether SSL cert validity checking is enabled. |
boolean |
isExecuteTestCase()
|
boolean |
isGenTestCaseDocs()
|
protected boolean |
isValidateAssertLevel(String level)
|
protected ResourceBundle |
loadApplicationProperties()
Loads the properties for all applications. |
protected void |
loadJameleonConfig()
Loads the properties for all applications. |
protected void |
logError(Throwable t)
Logs an error in XML format for easy interpreting later. |
protected String[] |
parseAssertLevels()
|
protected void |
recordResult(JameleonTestResult result)
Records a child result. |
void |
setAssertGreaterThanLevel(String assertGreaterThanLevel)
|
void |
setAssertLessThanLevel(String assertLessThanLevel)
|
void |
setAssertLevel(String assertLevel)
|
protected void |
setAssertLevels()
|
void |
setAssertLevels(String assertLevels)
Sets the level of the asserts to run that are equal to this list of numbers. |
void |
setBaseDir(File baseDir)
Sets the base directory of the project |
void |
setBugTrackerUrl(String bugTrackerUrl)
Sets the url of the bugtracking tool used so the bug's listed for the test case are linked. |
void |
setEnableSslCertCheck(boolean enable)
Enable or disable validity checking of SSL certificates. |
void |
setExecuteTestCase(boolean executeTestCase)
Sets the test case to be executed or not. |
void |
setFailedOnDataDriver(boolean failedOnDataDriver)
Used internally to mark whether the DataDrivable had a problem. |
void |
setFailOnCSVFileNotFound(boolean failOnCSVFileNotFound)
Sets the failOnCSVFileNotFound property |
protected void |
setFileFromEnvironment(Configurator config,
String key)
|
void |
setGenTestCaseDocs(boolean genTestCaseDocs)
Sets the test case to generate the test case docs based on the javadocs of the functional points and the functionId's of the functional points in the test case. |
void |
setGenTestCaseDocsEncoding(String encoding)
Sets the charset encoding. |
void |
setJameleonConfigName(String configName)
Sets the configuration file Jameleon uses to configure itself. |
protected void |
setLocationAware(LocationAware la)
|
void |
setMaxExecutionTime(long maxExecutionTime)
Sets the maximum execution time before the test case fails |
void |
setOrganization(String organization)
Sets the organziation or company that this test will be run against. |
void |
setPropsName(String propsName)
Sets the name of the properties file (minus the .properties) to read in into the context |
void |
setResults(TestCaseResult results)
|
void |
setResultsDir(File resultsDir)
Sets the directory where the results will be written to. |
protected void |
setStateStoreOptions()
|
void |
setStoreStateEvent(String event)
Sets the test case to record the state of the application at a defined event |
void |
setStoreStateNever(boolean none)
Sets the test case to never record the state of the application. |
void |
setStoreStateOnChange(boolean all)
Sets the test case to record the state of the application whenever the application's state changes. |
void |
setStoreStateOnError(boolean onError)
Sets the test case to record the state of the application on errors. |
void |
setTestCaseMainPageTemplate(String testCaseMainPageTemplate)
Sets the template to be used to generate the main page of the results.. |
void |
setTestCaseResultDataRowTemplate(String testCaseResultDataRowTemplate)
Sets the data row template to be used to generate the data drivable result. |
void |
setTestCaseResultFunctionTemplate(String testCaseResultFunctionTemplate)
Sets the function result template to be used to generate the test case result. |
void |
setTestCaseResultSessionTemplate(String testCaseResultSessionTemplate)
Sets the session template to be used to generate the session result. |
void |
setTestCaseResultSummaryTemplate(String testCaseResultSummaryTemplate)
Sets the template to be used to generate the test case result summary page. |
void |
setTestCaseResultTemplate(String testCaseResultTemplate)
Sets the template to be used to generate the test case result summary page. |
void |
setTestCaseSummaryTemplate(String testCaseSummaryTemplate)
Sets the template to be used to generate the test case summary page of the results. |
void |
setTestEnvironment(String testEnvironment)
Sets the environment to which testing system the testcase will be run in. |
void |
setTimestampedResultsDir(File timestampedResultsDir)
Sets the timestamped results directory where the test case result documentation will be stored. |
void |
setTrace(boolean trace)
Sets whether a std out message should be sent before and after the execution of a functional point. |
void |
setUp()
Set up the test environment. |
void |
setUseCSV(boolean useCSV)
Sets whether a CSV file should be used for this testcase or not. |
protected void |
setValueFromEnvironment(Configurator config,
String key)
|
protected void |
spanCSV()
useCSV is set to true, data-drive this CSV file. |
void |
substituteKeyValues()
Do variable subsitution on values stored from data file. |
protected void |
substituteValues(Properties p)
Do variable substition based on keys in the iterator. |
void |
tearDown()
Clean things up after the test case has been executed. |
protected void |
validateAttributes()
Validate the parameters |
Methods inherited from class net.sf.jameleon.AbstractCsvTag |
---|
getCsvCharset, getCsvDir, getCsvFile, getCsvFileName, getCsvValueSeparator, getDataDriver, getDataExceptionMessage, getName, getNewStateStoreLocation, setCsvCharset, setCsvDir, setCsvFileName, setCsvValueSeparator, setName, setupDataDriver |
Methods inherited from class net.sf.jameleon.data.AbstractFileDrivableTag |
---|
getDataDir, getDataDir, setCharset, setDataDir, setFile |
Methods inherited from class net.sf.jameleon.JameleonTagSupport |
---|
cleanVariablesInContext, createAttributes, describeAttributes, getAttributeBroker, getAttributes, getAttributeType, getClassAttributes, getFunctionalPoint, getUnsupportedAttributes, loadFunctionalPoint, resetFunctionalPoint, setAttribute, setVariableInContext, testForUnsupportedAttributesCaught |
Methods inherited from class net.sf.jameleon.LocationAwareTagSupport |
---|
getColumnNumber, getElementName, getFileName, getLineNumber, setColumnNumber, setElementName, setFileName, setLineNumber |
Methods inherited from class org.apache.commons.jelly.TagSupport |
---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.jelly.Tag |
---|
getBody, getContext, getParent, invokeBody, setBody, setContext, setParent |
Field Detail |
---|
protected long maxExecutionTime
protected String assertGreaterThanLevel
protected String assertLessThanLevel
protected String assertLevel
protected String assertLevels
protected String testEnvironment
protected String organization
protected String csvValueSeparator
protected String bugTrackerUrl
protected String genTestCaseDocsEncoding
protected String propsName
protected boolean useCSV
protected boolean trace
protected boolean genTestCaseDocs
protected boolean executeTestCase
protected String testCaseResultDataRowTemplate
protected String testCaseResultSessionTemplate
protected String testCaseResultFunctionTemplate
protected String testCaseMainPageTemplate
protected String testCaseSummaryTemplate
protected String testCaseResultSummaryTemplate
protected String testCaseResultTemplate
protected TestCaseEventHandler eventHandler
protected long startTime
protected File resultsFile
protected CountableDataDrivableResultContainer rowResultContainer
protected boolean failOnCSVFileNotFound
protected boolean failedOnDataDriver
protected TestCaseResult results
protected DataDrivableRowResult ddRowResult
protected ArrayList keysSet
protected TestCase testCase
protected boolean storeDisplayOnError
protected boolean storeEveryDisplay
protected File baseDir
protected File resultsDir
protected File timestampedResultsDir
protected String jameleonConfigName
Configurator
)
protected boolean enableSslCertCheck
protected static final String APPLICATIONS_PROPERTIES
protected static final int DEFAULT_ROW
protected static final String DEFAULT_VALUE_SEPARATOR
Constructor Detail |
---|
public TestCaseTag()
Method Detail |
---|
public DataDrivableRowResult getDdResult()
protected org.apache.log4j.Logger getLogger()
getLogger
in class AbstractDataDrivableTag
protected String getTagTraceMsg()
getTagTraceMsg
in class AbstractDataDrivableTag
public String getTagDescription()
getTagDescription
in class AbstractDataDrivableTag
protected TestCaseTag getTestCaseTag()
AbstractDataDrivableTag
getTestCaseTag
in class AbstractDataDrivableTag
public void addVariablesToRowData(Map vars)
addVariablesToRowData
in interface DataDrivable
addVariablesToRowData
in class AbstractDataDrivableTag
vars
- - A map of key-value pairs.public String getTestCaseResultSessionTemplate()
public void setTestCaseResultSessionTemplate(String testCaseResultSessionTemplate)
testCaseResultSessionTemplate
- the session template to be used to generate the test case docs.This attribute is recognized by Jameleonpublic String getTestCaseResultDataRowTemplate()
public void setTestCaseResultDataRowTemplate(String testCaseResultDataRowTemplate)
testCaseResultDataRowTemplate
- the data-drivable template to be used to generate the test case docs.This attribute is recognized by Jameleonpublic String getTestCaseResultFunctionTemplate()
public void setTestCaseResultFunctionTemplate(String testCaseResultFunctionTemplate)
testCaseResultFunctionTemplate
- The entry leaf template to be used to generate the test case docs.This attribute is recognized by Jameleonpublic String getTestCaseMainPageTemplate()
public void setTestCaseMainPageTemplate(String testCaseMainPageTemplate)
testCaseMainPageTemplate
- The template.This attribute is recognized by Jameleonpublic String getTestCaseSummaryTemplate()
public void setTestCaseSummaryTemplate(String testCaseSummaryTemplate)
testCaseSummaryTemplate
- The template to be used to generate the test case summary docs.This attribute is recognized by Jameleonpublic String getTestCaseResultSummaryTemplate()
public void setTestCaseResultTemplate(String testCaseResultTemplate)
testCaseResultTemplate
- The template to be used to generate the test case result page.This attribute is recognized by Jameleonpublic String getTestCaseResultTemplate()
public void setTestCaseResultSummaryTemplate(String testCaseResultSummaryTemplate)
testCaseResultSummaryTemplate
- The template to be used to generate the test case result summary page.This attribute is recognized by Jameleonpublic void setResultsDir(File resultsDir)
resultsDir
- - the directory where the results will be written to.This attribute is recognized by Jameleonpublic void setTimestampedResultsDir(File timestampedResultsDir)
timestampedResultsDir
- The timestamped results directory where the test case result
documentation will be stored.public File getTimestampedResultsDir()
public void setStoreStateEvent(String event)
event
event
- - An event at which the state of the application will be stored. Valid values are:
storeStateNever
- never store the state of the application.storeStateOnChange
- store the state of the applcation on any state change.storeStateOnError
- store the state of the application only on an error. DEFAULTevent
is not valid, then it is not set.This attribute is recognized by Jameleonpublic void setStoreStateOnChange(boolean all)
all
- - Set to true
to record all responses. Defaults to false
This attribute is recognized by Jameleonpublic void setStoreStateOnError(boolean onError)
onError
- - Set to true
to record responses ONLY on errors. Defaults to true
This attribute is recognized by Jameleonpublic void setStoreStateNever(boolean none)
none
- - Set to true
to never record responses. Defaults to false
This attribute is recognized by Jameleonpublic File getResultsDir()
public File getResultsDir(boolean includeName)
includeName
- set to true to include the test case name in the results directory.
protected File getResultsDir(int rowCount)
rowCount
- The row number the test case is on
public long getMaxExecutionTime()
public void setMaxExecutionTime(long maxExecutionTime)
maxExecutionTime
- - the maximum execution time before the test case failsThis attribute is recognized by Jameleonpublic StateStorer getStateStorer()
StateStorer
instance created by this TestCaseTag.public void setFailedOnDataDriver(boolean failedOnDataDriver)
failedOnDataDriver
- - Set to true
if a problem due to DataDrivable occured.This attribute is recognized by Jameleonpublic void setFailOnCSVFileNotFound(boolean failOnCSVFileNotFound)
failOnCSVFileNotFound
- - Set to false
to not log a failure due to a CSV FileNotFoundExceptionThis attribute is recognized by Jameleonpublic List getKeySet()
public String getOrganization()
public void setOrganization(String organization)
organization
- - The organziation or company that this test will be run against.This attribute is recognized by Jameleonpublic String getTestEnvironment()
public void setTestEnvironment(String testEnvironment)
testEnvironment
- Some examples might include, localhost, dev, test, stage, production ...:This attribute is recognized by Jameleonpublic TestCaseResult getResults()
public void setResults(TestCaseResult results)
public void setUseCSV(boolean useCSV)
useCSV
- - If set to true, then this test case will grab all of it's data from a CSV fileThis attribute is recognized by Jameleonpublic void setTrace(boolean trace)
trace
- - If set to true, then this test case will show messages before and after execution of each functional point.This attribute is recognized by Jameleonpublic boolean getTrace()
public void setBaseDir(File baseDir)
baseDir
- - The base directory of the projectThis attribute is recognized by Jameleonpublic File getBaseDir()
public File getCsvDir(boolean calculate)
calculate
- - set to true to calculate in testEnvironment and organization if they apply
public String getAssertGreaterThanLevel()
public void setAssertGreaterThanLevel(String assertGreaterThanLevel)
assertGreaterThanLevel
- the level of the asserts to run that are greater than this number.This attribute is recognized by Jameleonpublic String getAssertLessThanLevel()
public void setAssertLessThanLevel(String assertLessThanLevel)
assertLessThanLevel
- the level of the asserts to run that are less than this number.This attribute is recognized by Jameleonpublic String getAssertLevel()
public void setAssertLevel(String assertLevel)
assertLevel
- the level of the asserts to run that are equal to this number.This attribute is recognized by Jameleonpublic String getAssertLevels()
public void setAssertLevels(String assertLevels)
assertLevels
- A list of assert levels to run in the this test caseThis attribute is recognized by Jameleonpublic void setGenTestCaseDocs(boolean genTestCaseDocs)
genTestCaseDocs
- - set to true if the test case docs are to be generatedThis attribute is recognized by Jameleonpublic TestCase getTestCase()
public boolean isExecuteTestCase()
true
public boolean isGenTestCaseDocs()
true
public void setExecuteTestCase(boolean executeTestCase)
executeTestCase
- - Set to false
if the functionality of the test case is not to be executed.
The default is true
. This would be set to false if only the test case docs are to be generated.This attribute is recognized by Jameleonpublic String getBugTrackerUrl()
public void setBugTrackerUrl(String bugTrackerUrl)
bugTrackerUrl
- The url of the bugtracking tool used so the bug's listed for the test case are linked.This attribute is recognized by Jameleonpublic String getGenTestCaseDocsEncoding()
public void setGenTestCaseDocsEncoding(String encoding)
encoding
- - the character set encoding to use for the test case in XML.This attribute is recognized by Jameleonpublic String getPropsName()
public void setPropsName(String propsName)
propsName
- - name of the properties file (minus the .properties) to read in into the contextThis attribute is recognized by Jameleonpublic void setJameleonConfigName(String configName)
Configurator
)
Do not use. This is used for internal testing purposes only.
configName
- - the configuration file Jameleon uses to configure itself.This attribute is recognized by Jameleonpublic String getJameleonConfigName()
public boolean isEnableSslCertCheck()
public void setEnableSslCertCheck(boolean enable)
enable
- - If "true", an exception will be thrown when an invalid SSL cert is encountered.
If "false", invalid SSL certs will be accepted. If not set, the default is "true".This attribute is recognized by Jameleonprotected void setLocationAware(LocationAware la)
public void invokeChildren(int rowNum, JameleonTestResult result)
rowNum
- - if a csv file is used, then this pertains to the row number
the test case is being executed against. If a CSV file is not
used, then 0 is sent.result
- - the results to run with.public void executeDrivableRow(int rowNum)
executeDrivableRow
in interface DataDrivable
executeDrivableRow
in class AbstractDataDrivableTag
rowNum
- - The row number being executedprotected void initResults()
public void setUp() throws JellyTagException
JellyTagException
- if the tag is not in the correct state.protected void recordResult(JameleonTestResult result)
recordResult
in class AbstractDataDrivableTag
result
- - the result to recordpublic void doTag(XMLOutput out) throws MissingAttributeException, JellyTagException
useCSV=true
, then the data for
the functional points will be grabbed from a CSV file. Otherwise the attributes are all expected to be set
the contained functional points. If the functional points' attributes are set and useCSV is set to true,
then the data in the CSV file will override the data set in the function points' attributes.
doTag
in interface Tag
doTag
in class AbstractDataDrivableTag
MissingAttributeException
JellyTagException
protected JellyTagException createExceptionFromResult(JameleonTestResult jtr)
protected JellyTagException createExceptionFromResult(String message, JameleonTestResult jtr)
protected void executeNoCSV()
protected void spanCSV()
public void tearDown()
protected void setStateStoreOptions()
protected void executeBody(Runnable r)
public File getResultsFile()
public Properties getPropertiesForApplication(String applicationName)
applicationName
then the new property name will be "host".
applicationName
- The name of the application that you want properties for.
protected void substituteValues(Properties p)
p
- - the properties to be substituted.public void substituteKeyValues()
protected void addValuesFromResourceBundle(ResourceBundle props, Properties p, String startOfKey, boolean overrideValue)
protected void validateAttributes() throws MissingAttributeException
MissingAttributeException
- If a parameter is invalid.protected String[] parseAssertLevels()
protected boolean isValidateAssertLevel(String level)
level
- - the assert level to check
protected void setAssertLevels()
protected int getAssertLevelFromString(String assertLevel)
protected ResourceBundle loadApplicationProperties() throws IOException
IOException
- When the given file can not be found in the classpathprotected void setValueFromEnvironment(Configurator config, String key)
protected void setFileFromEnvironment(Configurator config, String key)
protected void loadJameleonConfig()
protected void logError(Throwable t)
t
- The Error to log and set in the result
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |