@Step("I set the context variable (.*) to (.*)") public void setAContextVariable(String variableName, Object value) { ChorusContext c = ChorusContext.getContext(); c.put(variableName, value); }
@Step("I can access the context variable (.*)") public Object canSeeAContextVariableRemotely(String variableName) { ChorusContext c = ChorusContext.getContext(); Object o = c.get(variableName); return o.toString() + ":" + o.getClass().getSimpleName(); }