コード例 #1
0
 @Step("I set the context variable (.*) to (.*)")
 public void setAContextVariable(String variableName, Object value) {
   ChorusContext c = ChorusContext.getContext();
   c.put(variableName, value);
 }
コード例 #2
0
 @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();
 }