Commits

Anonymous committed ebf5135

Fixing unit tests for ant based build

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/2.0@1449e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits b7a294e
  • Branches 2.0, xwork_2_0_7

Comments (0)

Files changed (1)

File src/test/com/opensymphony/xwork2/util/OgnlValueStackTest.java

         vs.push(bean);
 
         try {
-            vs.setValue("count", "1");
+            vs.setValue("count", "1", true);
             fail("Unexpected an exception for mismatched getter and setter");
         } catch (XWorkException e) {
             //expected
         }
 
         try {
-            vs.setValue("count2", "a");
+            vs.setValue("count2", "a", true);
             fail("Unexpected an exception for mismatched getter and setter");
         } catch (XWorkException e) {
             //expected
         stack.getContext().put(XWorkConverter.REPORT_CONVERSION_ERRORS, Boolean.TRUE);
         stack.push(action);
         try {
-            stack.setValue("bean", "foobar");
+            stack.setValue("bean", "foobar", true);
             fail("Should have thrown a type conversion exception");
         } catch (XWorkException e) {
             // expected
         stack.push(bean);
         stack.getContext().put(XWorkConverter.REPORT_CONVERSION_ERRORS, Boolean.TRUE);
         try {
-            stack.setValue("count", "a");
+            stack.setValue("count", "a", true);
             fail("Should have thrown a type conversion exception");
         } catch (XWorkException e) {
             // expected