/** *TestedwithcustomStringTesterwhichswitchestwo *Strings('layout'and'controls')
*/ publicvoid _LayerName() { if (tEnv.getTestCase().getObjectName().equals("SwXShape")) {
log.println("There is only one Layer for SwXShape");
log.println("Therefore this property can't be changed");
tRes.tested("LayerName",true);
} elseif (tEnv.getTestCase().getObjectName().equals("ScShapeObj")) {
log.println("There is only one Layer for ScShapeObj");
log.println("Therefore this property can't be changed");
tRes.tested("LayerName",true);
} elseif (tEnv.getTestCase().getObjectName().equals("ScAnnotationShapeObj")) {
log.println("There is only one Layer for ScAnnotationShapeObj");
log.println("Therefore this property can't be changed");
String aName = null; try {
aName = (String) oObj.getPropertyValue ("LayerName");
log.println("LayerName: '"+aName+"'");
} catch (Exception e) {
e.printStackTrace (log);
}
tRes.tested("LayerName",aName != null);
} else {
log.println("Testing with custom Property tester") ;
testProperty("LayerName", StringTester) ;
}
}
publicvoid _ZOrder() { if (tEnv.getTestCase().getObjectName().equals("ScAnnotationShapeObj")) {
log.println("There is only one Layer for ScAnnotationShapeObj");
log.println("Therefore this property can't be changed");
tRes.tested("ZOrder",true);
} else {
testProperty("ZOrder", Integer.valueOf(0), Integer.valueOf(1));
}
}
publicvoid _LayerID() { if (tEnv.getTestCase().getObjectName().equals("ScAnnotationShapeObj")) {
log.println("There is only one Layer for ScAnnotationShapeObj");
log.println("Therefore this property can't be changed"); Short aID = null; try {
aID = (Short) oObj.getPropertyValue ("LayerID");
log.println("LayerID: '"+aID.intValue ()+"'");
} catch (Exception e) {
e.printStackTrace (log);
}
tRes.tested("LayerID",aID != null);
} else {
log.println("Testing with custom Property tester") ;
testProperty("LayerID");
}
}
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.