for (int i=0; i < mCount ; i++){
XTreeNode xNode = null; try {
xNode = oObj.getChildAt(i);
} catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
log.println("ERROR: getChildAt(" + i + "): " + ex.toString());
} if (xNode == null){
log.println("ERROR: getChildAt(" + i + ") returns null => FAILED");
bOK = false;
}
}
tRes.tested("getChildAt()", bOK);
}
publicvoid _getChildCount(){
boolean bOK = true;
mCount = oObj.getChildCount();
log.println("got count '" + mCount + "' of children"); if (mCount < 1 ) {
log.println("ERROR: got a count < 1. The test object must support more than zero children => FAILED");
bOK = false;
}
tRes.tested("getChildCount()", bOK);
}
try {
DisplayValue = AnyConverter.toString(dispVal);
} catch (com.sun.star.lang.IllegalArgumentException ex) {
log.println("ERROR: could not convert the returned object of 'getDisplayValue()' " + "to String with AnyConverter: " + ex.toString());
}
if ( ! this.msDisplayValue.equals(DisplayValue)){
log.println("ERROR: getNodeGraphicURL() does not return expected value:\n" + "\tExpected: " + this.msDisplayValue +"\n" + "\tGot: " + DisplayValue);
bOK = false;
}
tRes.tested("getDisplayValue()", bOK);
}
publicvoid _getNodeGraphicURL(){
boolean bOK = true;
String graphicURL = oObj.getNodeGraphicURL();
if ( ! this.msNodeGraphicURL.equals(graphicURL)){
log.println("ERROR: getNodeGraphicURL() does not return expected value:\n" + "\tExpected: " + this.msNodeGraphicURL +"\n" + "\tGot: " + graphicURL);
bOK = false;
}
tRes.tested("getNodeGraphicURL()", bOK);
}
publicvoid _getExpandedGraphicURL(){
boolean bOK = true;
String ExpandedGraphicURL = oObj.getExpandedGraphicURL();
if ( ! this.msExpandedGraphicURL.equals(ExpandedGraphicURL)){
log.println("ERROR: getExpandedGraphicURL() does not return expected value:\n" + "\tExpected: " + this.msExpandedGraphicURL +"\n" + "\tGot: " + ExpandedGraphicURL);
bOK = false;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.