You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by wo...@apache.org on 2014/01/29 20:12:58 UTC
svn commit: r1562553 -
/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/groovy/GroovyContextTest.java
Author: woonsan
Date: Wed Jan 29 19:12:57 2014
New Revision: 1562553
URL: http://svn.apache.org/r1562553
Log:
SCXML-186: trivial fix in unit test to test as expected by the name
Modified:
commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/groovy/GroovyContextTest.java
Modified: commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/groovy/GroovyContextTest.java
URL: http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/groovy/GroovyContextTest.java?rev=1562553&r1=1562552&r2=1562553&view=diff
==============================================================================
--- commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/groovy/GroovyContextTest.java (original)
+++ commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml2/env/groovy/GroovyContextTest.java Wed Jan 29 19:12:57 2014
@@ -43,10 +43,9 @@ public class GroovyContextTest {
@Test
public void testSetVars() {
- Map<String, Object> m = new HashMap<String, Object>();
- m.put("foo", "bar");
- GroovyContext ctx = new GroovyContext(m, null);
+ GroovyContext ctx = new GroovyContext();
Assert.assertNotNull(ctx);
+ ctx.set("foo", "bar");
Assert.assertEquals(1, ctx.getVars().size());
String fooValue = (String) ctx.get("foo");
Assert.assertEquals("bar", fooValue);