webwork/src/test/webwork/util ValueStackTestCase.java,1.2,1.3
[email protected] Mon, 17 Nov 2003 15:52:11 -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-serv10095
Modified Files:
ValueStackTestCase.java
Log Message:
Fixed bugs in test cases
Index: ValueStackTestCase.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/test/webwork/util/ValueStackTestCase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ValueStackTestCase.java 11 Nov 2003 04:31:03 -0000 1.2
+++ ValueStackTestCase.java 17 Nov 2003 23:52:09 -0000 1.3
@@ -56,7 +56,7 @@
assertFalse(vs.test("('1'=='2' && 2==2) || (2==2 && 3==2)"));
assertTrue(vs.test("bool('true') == true"));
assertFalse(vs.test("bool('true') == true && bool('false') == true"));
- assertTrue(vs.test("settings['foo'] == 'bar')"));
+ assertTrue(vs.test("settings['foo'] == 'bar'"));
assertTrue(vs.test("bool('false') == true || settings['foo'] == 'bar'"));
assertTrue(vs.test("(bool('false') == true || settings['foo'] == 'bar')"));
assertTrue(vs.test("bool('true') == true && (bool('false') == true || settings['foo'] == 'bar')"));
@@ -76,7 +76,7 @@
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')"));
+ assertTrue(vs.test("/stringsEqual(sameString('foo'), 'bar')==false"));
}
/**
-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl