WW-4562 Upgrades OGNL to latest 3.0.13 version

This commit is contained in:
Lukasz Lenart
2015-11-04 18:09:55 +01:00
parent 0958077762
commit 22cb8c7e7d
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -86,7 +86,7 @@
<properties>
<currentVersion>${project.version}</currentVersion>
<struts2.springPlatformVersion>3.0.5.RELEASE</struts2.springPlatformVersion>
<ognl.version>3.0.6</ognl.version>
<ognl.version>3.0.13</ognl.version>
<asm.version>3.3</asm.version>
<asm5.version>5.0.2</asm5.version>
<tiles.version>2.0.6</tiles.version>
@@ -496,12 +496,12 @@ public class OgnlUtilTest extends XWorkTestCase {
Map context = ognlUtil.createDefaultContext(foo);
Map props = new HashMap();
props.put("aLong", "123");
props.put("ALong", "123");
ognlUtil.setProperties(props, foo, context);
assertEquals(123, foo.getALong());
props.put("aLong", new String[]{"123"});
props.put("ALong", new String[]{"123"});
foo.setALong(0);
ognlUtil.setProperties(props, foo, context);
@@ -518,7 +518,7 @@ public class OgnlUtilTest extends XWorkTestCase {
assertEquals(88, foo.getALong());
Map props = new HashMap();
props.put("aLong", "99");
props.put("ALong", "99");
ognlUtil.setProperties(props, foo, context);
assertEquals(99, foo.getALong());
}