Commits

Anonymous committed af33d2d
  • Participants
  • Parent commits f89ec34

Comments (0)

Files changed (1)

File src/test/com/opensymphony/xwork/util/XWorkMapTest.java

         assertEquals("asdf", user.getMap().get("foo"));
 
         // type conversion
-        stack.setValue("map['bar']", new String[]{"qwerty"});
+        stack.setValue("map['bar']", new String[]{"qwerty","qwertz"});
         assertNotNull(user.getMap());
         assertEquals(2, user.getMap().size());
-        assertEquals(String[].class, user.getMap().get("bar").getClass());
-        assertEquals("qwerty", ((String[]) user.getMap().get("bar"))[0]);
+        assertEquals(String.class, user.getMap().get("bar").getClass());
+        assertEquals("qwerty, qwertz", user.getMap().get("bar"));
     }
 
     public void testTypeConversion() {