harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r496473 - /harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/ContainerRTest.java
Date Mon, 15 Jan 2007 20:40:42 GMT
Author: hindessm
Date: Mon Jan 15 12:40:41 2007
New Revision: 496473

URL: http://svn.apache.org/viewvc?view=rev&rev=496473
Log:
Applying just the regression test from "[#HARMONY-2915] [classlib][swing]
j.s.text.BoxView incorrectly layouts where its child views are resizable".

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/ContainerRTest.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/ContainerRTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/ContainerRTest.java?view=diff&rev=496473&r1=496472&r2=496473
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/ContainerRTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/test/api/java/common/java/awt/ContainerRTest.java
Mon Jan 15 12:40:41 2007
@@ -54,6 +54,16 @@
         assertTrue(c2.isDisplayable());
     }
 
+    public void testAddComponent() {
+        try {         
+            Container s = new Container(); 
+            s.add((Component) null); 
+            fail("NPE should be thrown"); 
+        } catch (NullPointerException npe) {    
+            // PASSED            
+        }
+    }
+
 //    public final void testRemoveComponent() {
 //        Button b = new Button();
 //        boolean npeThrown = false;



Mime
View raw message