Methods Summary |
---|
public void | addErrorDetails(java.lang.String s)Fill in Error details
errorDetails.addElement(s);
logger.log(Level.FINE, s);
|
public void | addGoodDetails(java.lang.String s)Fill in Good details
goodDetails.addElement(s);
logger.log(Level.FINE, s);
|
public void | addNaDetails(java.lang.String s)Retrieve Not Applicable details
naDetails.addElement(s);
logger.log(Level.FINE, s);
|
public void | addWarningDetails(java.lang.String s)Fill in Warning details
warningDetails.addElement(s);
logger.log(Level.FINE, s);
|
public void | failed(java.lang.String detail)Store Failed info
setStatus(FAILED);
addErrorDetails(detail);
|
public java.lang.String | getAssertion()Retrieve assertion
return assertion;
|
public java.lang.String | getComponentName()Retrieve component/module name
return componentName;
|
public java.util.Vector | getErrorDetails()Retrieve Error details
return errorDetails;
|
public FaultLocation | getFaultLocation()
return faultLocation;
|
public java.util.Vector | getGoodDetails()Retrieve Good details
if(goodDetails.isEmpty()){
Vector<String> result = new Vector<String>();
result.add(StringManagerHelper.getLocalStringsManager()
.getLocalString("tests.componentNameConstructor", // NOI18N
"For [ {0} ]", // NOI18N
new Object[]{getComponentName()}));
result.add(StringManagerHelper.getLocalStringsManager()
.getLocalString(getClass().getName() + ".defaultGoodDetails", //NOI18N
"There were no errors reported.")); // NOI18N
logger.fine("Returning default GoodDetails."); // NOI18N
return result;
}
return goodDetails;
|
public java.lang.String | getModuleName()
return moduleName;
|
public java.util.Vector | getNaDetails()Retrieve Not Applicable details
if(naDetails.isEmpty()){
Vector<String> result = new Vector<String>();
result.add(StringManagerHelper.getLocalStringsManager()
.getLocalString("tests.componentNameConstructor", // NOI18N
"For [ {0} ]", // NOI18N
new Object[]{getComponentName()}));
result.add(StringManagerHelper.getLocalStringsManager()
.getLocalString(getClass().getName() + ".defaultNADetails", //NOI18N
"Test is not applicable.")); // NOI18N
logger.fine("Returning default NADetails."); // NOI18N
return result;
}
return naDetails;
|
public int | getStatus()Retrieve test result status
return status;
|
public java.lang.String | getTestName()Retrieve test name
return testName;
|
public java.util.Vector | getWarningDetails()Retrieve Warning details
return warningDetails;
|
public void | init(java.lang.Class c, java.lang.String version, java.lang.String compName)Initialize the Result object
setComponentName(compName);
StringBuffer assertion = new StringBuffer(
StringManagerHelper.getLocalStringsManager().getLocalString(
(c.getName() + ".assertion"), "")); // NOI18N
String key = ".specMappingInfo_"+version; // NOI18N
StringBuffer specMappingInfo = new StringBuffer(
StringManagerHelper.getLocalStringsManager().getLocalString(
(c.getName() + key), ""));
// if specMappingInfo_<version> is unavailable then try just specMappingInfo
if(specMappingInfo == null || specMappingInfo.length() == 0) {
key = c.getName() + ".specMappingInfo";
specMappingInfo = new StringBuffer(StringManagerHelper.getLocalStringsManager().getLocalString(key, ""));
}
String prefix = StringManagerHelper.getLocalStringsManager().getLocalString(
(getClass().getName() + ".prefix"), ""); // NOI18N
String suffix = StringManagerHelper.getLocalStringsManager().getLocalString(
(getClass().getName() + ".suffix"), ""); // NOI18N
if (specMappingInfo.length()!=0 && specMappingInfo!=null)
setAssertion(assertion.append(" ").append(prefix+" ").append(specMappingInfo).append(" "+suffix).toString()); // NOI18N
else
setAssertion(assertion.toString());
String this_package = "com.sun.enterprise.tools.verifier."; // NOI18N
setTestName(c.getName().substring(this_package.length()));
|
public void | notApplicable(java.lang.String detail)Store Not Applicable info
setStatus(NOT_APPLICABLE);
addNaDetails(detail);
|
public void | passed(java.lang.String detail)Store passed info
setStatus(PASSED);
addGoodDetails(detail);
|
public void | setAssertion(java.lang.String s)Set assertion
assertion = s;
|
public void | setComponentName(java.lang.String s)Set component/module name
componentName = s;
|
public void | setModuleName(java.lang.String name)
moduleName = name;
|
public void | setStatus(int s)Set test result status
status = s;
|
public void | setTestName(java.lang.String s)Set test name
testName = s;
|
public void | warning(java.lang.String detail)Store warning info
setStatus(WARNING);
addWarningDetails(detail);
|