webwork/src/test/webwork/util ValueStackTestCase.java,1.1,1.2

[email protected] Mon, 10 Nov 2003 20:31:05 -0800
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/webwork/src/test/webwork/util
In directory sc8-pr-cvs1:/tmp/cvs-serv1577/src/test/webwork/util

Modified Files:
	ValueStackTestCase.java 
Log Message:
Added testcase for WW-325

Index: ValueStackTestCase.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/test/webwork/util/ValueStackTestCase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ValueStackTestCase.java	1 Nov 2003 07:17:01 -0000	1.1
+++ ValueStackTestCase.java	11 Nov 2003 04:31:03 -0000	1.2
@@ -73,6 +73,12 @@
 		assertEquals("HelloWorld", vs.findValue("name"));
 	}
 
+  public void testBracketedIfClause() {
+    Object value = vs.findValue("/stringsEqual(sameString('foo'), 'foo')");
+    assertEquals("unexpected result from if test", Boolean.TRUE, value);
+    assertFalse(vs.test("/stringsEqual(sameString('foo'), 'bar')"));
+  }
+
 	/**
 	 * Runs this test case.
 	 */




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/