// -> 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()); }
protected String getString(String varName) { ExecutionVariable variable = context().getVariable(varName); return (String) variable.getValue(); }
protected boolean getBoolean(String varName) { ExecutionVariable variable = context().getVariable(varName); return (Boolean) variable.getValue(); }
protected double getReal(String varName) { ExecutionVariable variable = context().getVariable(varName); return (Double) variable.getValue(); }
protected int getInteger(String varName) { ExecutionVariable variable = context().getVariable(varName); return (Integer) variable.getValue(); }