This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
To allow checking of the return values of DOMConfiguration.getParameter, it would be helpful if assertTrue and assertFalse accepted Object's in addition to boolean's.
Index: DOMTestCase.java =================================================================== RCS file: /sources/public/2001/DOM-Test-Suite/java/org/w3c/domts/DOMTestCase.java,v retrieving revision 1.13 diff -u -r1.13 DOMTestCase.java --- DOMTestCase.java 1 Jul 2002 03:57:31 -0000 1.13 +++ DOMTestCase.java 18 Nov 2003 08:13:39 -0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001 World Wide Web Consortium, + * Copyright (c) 2001-2003 World Wide Web Consortium, * (Massachusetts Institute of Technology, Institut National de * Recherche en Informatique et en Automatique, Keio University). All * Rights Reserved. This program is distributed under the W3C's Software @@ -160,9 +160,17 @@ public void assertTrue(String assertID, boolean actual) { framework.assertTrue(this,assertID,actual); } + + public void assertTrue(String assertID, Object actual) { + framework.assertTrue(this, assertID, ((Boolean) actual).booleanValue()); + } public void assertFalse(String assertID, boolean actual) { framework.assertFalse(this,assertID,actual); + } + + public void assertFalse(String assertID, Object actual) { + framework.assertFalse(this, assertID, ((Boolean) actual).booleanValue()); } public void assertNull(String assertID, Object actual) {