harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r483556 - /harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyChangeSupportTest.java
Date Thu, 07 Dec 2006 17:13:28 GMT
Author: ayza
Date: Thu Dec  7 09:13:26 2006
New Revision: 483556

URL: http://svn.apache.org/viewvc?view=rev&rev=483556
Log:
The PropertyChangeSupportTest.testHasListener_PropertyRegistered() test is enabled. See HARMONY-2526
for details.

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

Modified: harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyChangeSupportTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyChangeSupportTest.java?view=diff&rev=483556&r1=483555&r2=483556
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyChangeSupportTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/PropertyChangeSupportTest.java
Thu Dec  7 09:13:26 2006
@@ -517,7 +517,7 @@
         PropertyChangeSupport sup = new PropertyChangeSupport(src);
         PropertyChangeListener l1 = new MockPropertyChangeListener();
         PropertyChangeListener l2 = new MockPropertyChangeListener();
-        PropertyChangeListener l3 = new PropertyChangeListenerProxy("myProp2",
+        PropertyChangeListener l3 = new PropertyChangeListenerProxy("myProp",
                 l2);
 
         assertFalse(sup.hasListeners("myProp"));
@@ -527,8 +527,9 @@
         assertTrue(sup.hasListeners("myProp"));
         sup.removePropertyChangeListener("myProp", l2);
         assertFalse(sup.hasListeners("myProp"));
+        // The following assertion fails on RI. See HARMONY-2526
         sup.addPropertyChangeListener("myProp", l3);
-        assertFalse(sup.hasListeners("myProp"));
+        assertTrue(sup.hasListeners("myProp"));
     }
 
     /*



Mime
View raw message