This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 380 - assertTrue does not accept Object's
Summary: assertTrue does not accept Object's
Status: RESOLVED FIXED
Alias: None
Product: DOM TS
Classification: Unclassified
Component: DOM Level 3 (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Curt Arnold
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-18 03:12 UTC by Curt Arnold
Modified: 2003-11-18 08:15 UTC (History)
0 users

See Also:


Attachments

Description Curt Arnold 2003-11-18 03:12:52 UTC
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.
Comment 1 Curt Arnold 2003-11-18 03:15:09 UTC
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) {