mirror of
https://github.com/apache/struts.git
synced 2026-08-06 23:27:07 +00:00
WW-4562 Upgrades OGNL to latest 3.0.13 version
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user