harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r618264 - /harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextSupportTest.java
Date Mon, 04 Feb 2008 12:59:09 GMT
Author: tellison
Date: Mon Feb  4 04:59:08 2008
New Revision: 618264

URL: http://svn.apache.org/viewvc?rev=618264&view=rev
Log:
Added regression tests for HARMONY-1829 ([classlib][beans] java.beans.BeanContextSupport.size()
returns value different from RI)

Modified:
    harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextSupportTest.java

Modified: harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextSupportTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextSupportTest.java?rev=618264&r1=618263&r2=618264&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextSupportTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/beancontext/BeanContextSupportTest.java
Mon Feb  4 04:59:08 2008
@@ -1838,7 +1838,19 @@
     }
 
     public void testSize() {
-        // covered by other testcases
+        @SuppressWarnings("serial")
+        class TestBean extends Component implements BeanContextProxy {
+            public BeanContextChildSupport childSupport = new BeanContextChildSupport();
+
+            public BeanContextChild getBeanContextProxy() {
+                return childSupport;
+            }
+        }
+        
+        // Regression test for HARMONY-1829
+        BeanContextSupport obj = new BeanContextSupport();
+        obj.add(new TestBean());
+        assertEquals(2, obj.size());
     }
 
     /*



Mime
View raw message