コード例 #1
0
 // -> Assertion methods...
 protected void assertVarValue(String variableName, Object value) {
   ExecutionVariable variable = context().getVariable(variableName);
   assertNotNull("Variable '" + variableName + "' is not defined", variable);
   assertEquals(value, variable.getValue());
 }
コード例 #2
0
 protected String getString(String varName) {
   ExecutionVariable variable = context().getVariable(varName);
   return (String) variable.getValue();
 }
コード例 #3
0
 protected boolean getBoolean(String varName) {
   ExecutionVariable variable = context().getVariable(varName);
   return (Boolean) variable.getValue();
 }
コード例 #4
0
 protected double getReal(String varName) {
   ExecutionVariable variable = context().getVariable(varName);
   return (Double) variable.getValue();
 }
コード例 #5
0
 protected int getInteger(String varName) {
   ExecutionVariable variable = context().getVariable(varName);
   return (Integer) variable.getValue();
 }