harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r948377 [4/21] - in /harmony/enhanced/java/branches/mrh: classlib/make/ classlib/modules/accessibility/make/ classlib/modules/annotation/make/ classlib/modules/applet/make/ classlib/modules/archive/make/ classlib/modules/archive/src/test/ja...
Date Wed, 26 May 2010 09:31:15 GMT
Modified: harmony/enhanced/java/branches/mrh/classlib/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/VetoableChangeSupportTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/VetoableChangeSupportTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/VetoableChangeSupportTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/VetoableChangeSupportTest.java Wed May 26 09:31:07 2010
@@ -43,6 +43,7 @@ import org.apache.harmony.testframework.
 import org.apache.harmony.testframework.serialization.SerializationTest.SerializableAssert;
 
 import tests.util.SerializationTester;
+import tests.support.Support_Excludes;
 
 /**
  * Unit test for VetoableChangeSupport
@@ -53,6 +54,10 @@ public class VetoableChangeSupportTest e
      * Constructor a VetoableChangeSupport instance with normal input
      */
     public void testVetoableChangeSupport() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         new VetoableChangeSupport(source);
 
@@ -63,6 +68,10 @@ public class VetoableChangeSupportTest e
      * VetoableChangeListener)
      */
     public void testAddVetoableChangeListenerStringVetoableChangeListener() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -96,6 +105,10 @@ public class VetoableChangeSupportTest e
      * add a null listener
      */
     public void testAddVetoableChangeListenerStringVetoableChangeListener_null() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -117,6 +130,10 @@ public class VetoableChangeSupportTest e
      * add a listener which has already been added.
      */
     public void testAddVetoableChangeListenerStringVetoableChangeListener_duplicate() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -173,6 +190,10 @@ public class VetoableChangeSupportTest e
      * add listener with null property name.
      */
     public void testAddVetoableChangeListenerStringVetoableChangeListener_property_null() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -186,6 +207,10 @@ public class VetoableChangeSupportTest e
      * add listeners to an invalid property
      */
     public void testAddVetoableChangeListenerStringVetoableChangeListener_property_invalid() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -210,6 +235,10 @@ public class VetoableChangeSupportTest e
      * add different listener with a particular property name.
      */
     public void testAddVetoableChangeListenerStringVetoableChangeListener_property_duplicate() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -249,6 +278,10 @@ public class VetoableChangeSupportTest e
      * addVetoableChangeListener(VetoableChangeListener)
      */
     public void testAddVetoableChangeListenerVetoableChangeListener() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -277,6 +310,10 @@ public class VetoableChangeSupportTest e
      * add a null listener
      */
     public void testAddVetoableChangeListenerVetoableChangeListener_null() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
         support.addVetoableChangeListener(null);
@@ -300,6 +337,10 @@ public class VetoableChangeSupportTest e
      * add duplicated listeners
      */
     public void testAddVetoableChangeListenerVetoableChangeListener_duplicate() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -330,6 +371,10 @@ public class VetoableChangeSupportTest e
      * add two different listeners
      */
     public void testAddVetoableChangeListenerVetoableChangeListener_TwoDifferent() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -362,6 +407,10 @@ public class VetoableChangeSupportTest e
      * add a VetoableChangeListenerProxy
      */
     public void testAddVetoableChangeListenerVetoableChangeListener_Proxy() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -420,6 +469,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangePropertyChangeEvent()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -435,6 +488,10 @@ public class VetoableChangeSupportTest e
 
     public void testFireVetoableChangePropertyChangeEvent_Veto()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -514,6 +571,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangePropertyChangeEvent_null()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -533,6 +594,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangePropertyChangeEvent_property()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -550,6 +615,10 @@ public class VetoableChangeSupportTest e
 
     public void testFireVetoableChangePropertyChangeEvent_property_invalid()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -570,6 +639,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangePropertyChangeEvent_DuplicateListener()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -594,6 +667,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangePropertyChangeEvent_listener_null()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -608,6 +685,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringbooleanboolean()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -624,6 +705,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringbooleanboolean_listener_null()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -636,6 +721,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringbooleanboolean_property()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -652,6 +741,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringbooleanboolean_listener_null_property()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -665,6 +758,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringbooleanboolean_twoListeners()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -686,6 +783,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringbooleanboolean_property_twoListeners()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -707,6 +808,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringbooleanboolean_Property_null()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -722,6 +827,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringbooleanboolean_listener_Property_null()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -737,6 +846,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringbooleanboolean_listener_Null_Property_null()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -752,6 +865,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringbooleanboolean_Property_invalid()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -770,6 +887,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringbooleanboolean_listener_Property_invalid()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -794,6 +915,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringbooleanboolean_SameValue()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -812,6 +937,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringintint()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -828,6 +957,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringintint_property_null()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -844,6 +977,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringintint_property_Invalid()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -860,6 +997,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringintint_SameValue()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -878,6 +1019,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringintint_listener()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -893,6 +1038,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringintint_listener_property_null()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -909,6 +1058,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringintint_listener_property_Invalid()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -925,6 +1078,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringintint_listener_SameValue()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -938,6 +1095,10 @@ public class VetoableChangeSupportTest e
 
     public void testFireVetoableChangeStringintint_listener_Invalid_property()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -956,6 +1117,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringObjectObject()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -971,6 +1136,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringObjectObject_property_Null()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -986,6 +1155,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringObjectObject_property_invalid()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1001,6 +1174,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringObjectObject_SameValue()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1016,6 +1193,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringObjectObject_SameValue_null()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1033,6 +1214,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringObjectObject_listener()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1048,6 +1233,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringObjectObject_listener_property_Null()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1063,6 +1252,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringObjectObject_listener_property_invalid()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1078,6 +1271,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringObjectObject_listener_SameValue()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1093,6 +1290,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringObjectObject_listener_SameValue_null()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1108,6 +1309,10 @@ public class VetoableChangeSupportTest e
      */
     public void testFireVetoableChangeStringObjectObject_listener_invalid()
             throws PropertyVetoException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1119,6 +1324,10 @@ public class VetoableChangeSupportTest e
     }
 
     public void testFireVetoableChangeException_revert_event() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         final VetoableChangeSupport support = new VetoableChangeSupport(
                 new Object());
         final StringBuffer sb = new StringBuffer();
@@ -1164,6 +1373,10 @@ public class VetoableChangeSupportTest e
      * register listener for property
      */
     public void testRemoveVetoableChangeListenerStringVetoableChangeListener_property() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1184,6 +1397,10 @@ public class VetoableChangeSupportTest e
      * register listener for property, two same listeners
      */
     public void testRemoveVetoableChangeListenerStringVetoableChangeListener_property_more() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1207,6 +1424,10 @@ public class VetoableChangeSupportTest e
      * register listener for property, two different listeners
      */
     public void testRemoveVetoableChangeListenerStringVetoableChangeListener_property_diff() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1234,6 +1455,10 @@ public class VetoableChangeSupportTest e
      * register listener for property, two different listeners
      */
     public void testRemoveVetoableChangeListenerStringVetoableChangeListener_listener_diff() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1256,6 +1481,10 @@ public class VetoableChangeSupportTest e
     }
 
     public void testRemoveVetoableChangeListenerStringVetoableChangeListener_listener_null() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1278,6 +1507,10 @@ public class VetoableChangeSupportTest e
      * register listener for property.
      */
     public void testRemoveVetoableChangeListenerStringVetoableChangeListener_all() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1298,6 +1531,10 @@ public class VetoableChangeSupportTest e
      * remove listener from null property
      */
     public void testRemoveVetoableChangeListenerStringVetoableChangeListener_propertyName_Null() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1314,6 +1551,10 @@ public class VetoableChangeSupportTest e
      * propertyname is invalid
      */
     public void testRemoveVetoableChangeListenerStringVetoableChangeListener_propertyName_Invalid() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1334,6 +1575,10 @@ public class VetoableChangeSupportTest e
      * no listener attached to the property
      */
     public void testRemoveVetoableChangeListenerStringVetoableChangeListener_propertyName_NoListener() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1353,6 +1598,10 @@ public class VetoableChangeSupportTest e
      * listener null
      */
     public void testRemoveVetoableChangeListenerStringVetoableChangeListener_listener_null_null() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1373,6 +1622,10 @@ public class VetoableChangeSupportTest e
      * register listener for all
      */
     public void testRemoveVetoableChangeListenerVetoableChangeListener_all() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1393,6 +1646,10 @@ public class VetoableChangeSupportTest e
      * two same listeners
      */
     public void testRemoveVetoableChangeListenerVetoableChangeListener_all_more() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1417,6 +1674,10 @@ public class VetoableChangeSupportTest e
      * two different listeners
      */
     public void testRemoveVetoableChangeListenerVetoableChangeListener_all_more_diff() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1444,6 +1705,10 @@ public class VetoableChangeSupportTest e
      * listener null
      */
     public void testRemoveVetoableChangeListenerVetoableChangeListener_all_null() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1467,6 +1732,10 @@ public class VetoableChangeSupportTest e
      * register for one property
      */
     public void testRemoveVetoableChangeListenerVetoableChangeListener_property() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1490,6 +1759,10 @@ public class VetoableChangeSupportTest e
      * listener null
      */
     public void testRemoveVetoableChangeListenerVetoableChangeListener_null() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1513,6 +1786,10 @@ public class VetoableChangeSupportTest e
      * register null listener, remove null listener.
      */
     public void testRemoveVetoableChangeListenerVetoableChangeListener_null_null() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1535,6 +1812,10 @@ public class VetoableChangeSupportTest e
      * Regression test for HARMONY-321
      */
     public void testFireVetoableChange_regression() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         VetoableChangeSupport vcs = new VetoableChangeSupport(this);
         MockVetoListener2 vlistener = new MockVetoListener2();
 
@@ -1553,6 +1834,10 @@ public class VetoableChangeSupportTest e
      * no this listener
      */
     public void testRemoveVetoableChangeListenerVetoableChangeListener_invalid() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1571,6 +1856,10 @@ public class VetoableChangeSupportTest e
     }
 
     public void testSerialization() throws IOException, ClassNotFoundException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockSource source = new MockSource();
         VetoableChangeSupport support = new VetoableChangeSupport(source);
 
@@ -1610,6 +1899,10 @@ public class VetoableChangeSupportTest e
     }
 
      public void testSerialization_Compatibility() throws Exception {
+         if (Support_Excludes.isExcluded()) {
+             return;
+         }
+
          MockSource source = new MockSource();
          VetoableChangeSupport support = new VetoableChangeSupport(source);
  
@@ -1820,6 +2113,10 @@ public class VetoableChangeSupportTest e
      *        java.lang.Object)
      */
     public void testVetoableChangeSupport_null() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Regression for HARMONY-228
         try {
             new VetoableChangeSupport(null);
@@ -1833,12 +2130,20 @@ public class VetoableChangeSupportTest e
      *        java.beans.VetoableChangeListener)
      */
     public void test_addPropertyChangeListenerNullNull() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Regression for HARMONY-441
         new VetoableChangeSupport("bean1")
                 .addVetoableChangeListener(null, null);
     }
 
     public void test_readObject() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Regression for HARMONY-421
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
 
@@ -1858,6 +2163,10 @@ public class VetoableChangeSupportTest e
      * The test checks the method add() with no property specified
      */
     public void testAddVetoableChangeListener() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         VetoableChangeSupport vcs = new VetoableChangeSupport("bean1");
         VetoableChangeListener vcl = new VetoableChangeListener() {
 
@@ -1876,6 +2185,10 @@ public class VetoableChangeSupportTest e
      * The test checks the method add() for property specified
      */
     public void testAddVetoableChangeListenerByPropertyName() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         VetoableChangeSupport vcs = new VetoableChangeSupport("bean1");
         VetoableChangeListener vcl = new VetoableChangeListener() {
 
@@ -1895,6 +2208,10 @@ public class VetoableChangeSupportTest e
      * The test checks the method add() for VetoableChangeListenerProxy
      */
     public void testAddVetoableChangeListenerProxy() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         VetoableChangeSupport vcs = new VetoableChangeSupport("bean1");
         VetoableChangeListener vcl = new VetoableChangeListener() {
 
@@ -1916,6 +2233,10 @@ public class VetoableChangeSupportTest e
     
     
     public void testSerializationForm(){
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         ObjectStreamClass objectStreamClass = ObjectStreamClass.lookup(VetoableChangeSupport.class);
         assertNotNull(objectStreamClass.getField("source"));
         assertNotNull(objectStreamClass.getField("children"));

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/make/run-test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/make/run-test.xml?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/make/run-test.xml (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/make/run-test.xml Wed May 26 09:31:07 2010
@@ -31,7 +31,7 @@
 
     <target name="test" depends="test-module" />
 
-    <target name="test-module" depends="test-jre-vm-info">
+    <target name="test-module">
         <convert-test-as-class from="test.case" to="converted.tc.class" />
         <run-hdk-tests module="concurrent" jar="concurrent_tests.jar" />
     </target>

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/src/test/java/AbstractQueuedSynchronizerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/src/test/java/AbstractQueuedSynchronizerTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/src/test/java/AbstractQueuedSynchronizerTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/src/test/java/AbstractQueuedSynchronizerTest.java Wed May 26 09:31:07 2010
@@ -12,6 +12,7 @@ import java.util.*;
 import java.util.concurrent.*;
 import java.util.concurrent.locks.*;
 import java.io.*;
+import tests.support.Support_Excludes;
 
 public class AbstractQueuedSynchronizerTest extends JSR166TestCase {
     public static void main(String[] args) {
@@ -97,6 +98,10 @@ public class AbstractQueuedSynchronizerT
      * isHeldExclusively is false upon construction
      */
     public void testIsHeldExclusively() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	Mutex rl = new Mutex();
         assertFalse(rl.isHeldExclusively());
     }
@@ -105,6 +110,10 @@ public class AbstractQueuedSynchronizerT
      * acquiring released sync succeeds
      */
     public void testAcquire() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	Mutex rl = new Mutex();
         rl.acquire(1);
         assertTrue(rl.isHeldExclusively());
@@ -116,6 +125,10 @@ public class AbstractQueuedSynchronizerT
      * tryAcquire on an released sync succeeds
      */
     public void testTryAcquire() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	Mutex rl = new Mutex();
         assertTrue(rl.tryAcquire(1));
         assertTrue(rl.isHeldExclusively());
@@ -126,6 +139,10 @@ public class AbstractQueuedSynchronizerT
      * hasQueuedThreads reports whether there are waiting threads
      */
     public void testhasQueuedThreads() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         Thread t1 = new Thread(new InterruptedSyncRunnable(sync));
         Thread t2 = new Thread(new InterruptibleSyncRunnable(sync));
@@ -155,6 +172,10 @@ public class AbstractQueuedSynchronizerT
      * isQueued(null) throws NPE
      */
     public void testIsQueuedNPE() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         try {
             sync.isQueued(null);
@@ -167,6 +188,10 @@ public class AbstractQueuedSynchronizerT
      * isQueued reports whether a thread is queued.
      */
     public void testIsQueued() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         Thread t1 = new Thread(new InterruptedSyncRunnable(sync));
         Thread t2 = new Thread(new InterruptibleSyncRunnable(sync));
@@ -201,6 +226,10 @@ public class AbstractQueuedSynchronizerT
      * getFirstQueuedThread returns first waiting thread or null if none
      */
     public void testGetFirstQueuedThread() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         Thread t1 = new Thread(new InterruptedSyncRunnable(sync));
         Thread t2 = new Thread(new InterruptibleSyncRunnable(sync));
@@ -232,6 +261,10 @@ public class AbstractQueuedSynchronizerT
      * hasContended reports false if no thread has ever blocked, else true
      */
     public void testHasContended() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         Thread t1 = new Thread(new InterruptedSyncRunnable(sync));
         Thread t2 = new Thread(new InterruptibleSyncRunnable(sync));
@@ -261,6 +294,10 @@ public class AbstractQueuedSynchronizerT
      * getQueuedThreads includes waiting threads
      */
     public void testGetQueuedThreads() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         Thread t1 = new Thread(new InterruptedSyncRunnable(sync));
         Thread t2 = new Thread(new InterruptibleSyncRunnable(sync));
@@ -293,6 +330,10 @@ public class AbstractQueuedSynchronizerT
      * getExclusiveQueuedThreads includes waiting threads
      */
     public void testGetExclusiveQueuedThreads() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         Thread t1 = new Thread(new InterruptedSyncRunnable(sync));
         Thread t2 = new Thread(new InterruptibleSyncRunnable(sync));
@@ -325,6 +366,10 @@ public class AbstractQueuedSynchronizerT
      * getSharedQueuedThreads does not include exclusively waiting threads
      */
     public void testGetSharedQueuedThreads() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         Thread t1 = new Thread(new InterruptedSyncRunnable(sync));
         Thread t2 = new Thread(new InterruptibleSyncRunnable(sync));
@@ -355,6 +400,10 @@ public class AbstractQueuedSynchronizerT
      * tryAcquireNanos is interruptible.
      */
     public void testInterruptedException2() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
 	sync.acquire(1);
 	Thread t = new Thread(new Runnable() {
@@ -378,6 +427,10 @@ public class AbstractQueuedSynchronizerT
      * TryAcquire on exclusively held sync fails
      */
     public void testTryAcquireWhenSynced() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
 	sync.acquire(1);
 	Thread t = new Thread(new Runnable() {
@@ -398,6 +451,10 @@ public class AbstractQueuedSynchronizerT
      * tryAcquireNanos on an exclusively held sync times out
      */
     public void testAcquireNanos_Timeout() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
 	sync.acquire(1);
 	Thread t = new Thread(new Runnable() {
@@ -423,6 +480,10 @@ public class AbstractQueuedSynchronizerT
      * getState is true when acquired and false when not
      */
     public void testGetState() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
 	sync.acquire(1);
 	assertTrue(sync.isHeldExclusively());
@@ -456,6 +517,10 @@ public class AbstractQueuedSynchronizerT
      * acquireInterruptibly is interruptible.
      */
     public void testAcquireInterruptibly1() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
 	sync.acquire(1);
 	Thread t = new Thread(new InterruptedSyncRunnable(sync));
@@ -475,6 +540,10 @@ public class AbstractQueuedSynchronizerT
      * acquireInterruptibly succeeds when released, else is interruptible
      */
     public void testAcquireInterruptibly2() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
 	try {
             sync.acquireInterruptibly(1);
@@ -496,6 +565,10 @@ public class AbstractQueuedSynchronizerT
      * owns is true for a condition created by sync else false
      */
     public void testOwns() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
         final Mutex sync2 = new Mutex();
@@ -507,6 +580,10 @@ public class AbstractQueuedSynchronizerT
      * Calling await without holding sync throws IllegalMonitorStateException
      */
     public void testAwait_IllegalMonitor() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
         try {
@@ -524,6 +601,10 @@ public class AbstractQueuedSynchronizerT
      * Calling signal without holding sync throws IllegalMonitorStateException
      */
     public void testSignal_IllegalMonitor() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
         try {
@@ -541,6 +622,10 @@ public class AbstractQueuedSynchronizerT
      * awaitNanos without a signal times out
      */
     public void testAwaitNanos_Timeout() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
         try {
@@ -558,6 +643,10 @@ public class AbstractQueuedSynchronizerT
      *  Timed await without a signal times out
      */
     public void testAwait_Timeout() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
         try {
@@ -574,6 +663,10 @@ public class AbstractQueuedSynchronizerT
      * awaitUntil without a signal times out
      */
     public void testAwaitUntil_Timeout() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
         try {
@@ -591,6 +684,10 @@ public class AbstractQueuedSynchronizerT
      * await returns when signalled
      */
     public void testAwait() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
 	Thread t = new Thread(new Runnable() { 
@@ -626,6 +723,10 @@ public class AbstractQueuedSynchronizerT
      * hasWaiters throws NPE if null
      */
     public void testHasWaitersNPE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         try {
             sync.hasWaiters(null);
@@ -640,6 +741,10 @@ public class AbstractQueuedSynchronizerT
      * getWaitQueueLength throws NPE if null
      */
     public void testGetWaitQueueLengthNPE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         try {
             sync.getWaitQueueLength(null);
@@ -655,6 +760,10 @@ public class AbstractQueuedSynchronizerT
      * getWaitingThreads throws NPE if null
      */
     public void testGetWaitingThreadsNPE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         try {
             sync.getWaitingThreads(null);
@@ -670,6 +779,10 @@ public class AbstractQueuedSynchronizerT
      * hasWaiters throws IAE if not owned
      */
     public void testHasWaitersIAE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         final AbstractQueuedSynchronizer.ConditionObject c = (sync.newCondition());
 	final Mutex sync2 = new Mutex();
@@ -686,6 +799,10 @@ public class AbstractQueuedSynchronizerT
      * hasWaiters throws IMSE if not synced
      */
     public void testHasWaitersIMSE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         final AbstractQueuedSynchronizer.ConditionObject c = (sync.newCondition());
         try {
@@ -702,6 +819,10 @@ public class AbstractQueuedSynchronizerT
      * getWaitQueueLength throws IAE if not owned
      */
     public void testGetWaitQueueLengthIAE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         final AbstractQueuedSynchronizer.ConditionObject c = (sync.newCondition());
 	final Mutex sync2 = new Mutex();
@@ -718,6 +839,10 @@ public class AbstractQueuedSynchronizerT
      * getWaitQueueLength throws IMSE if not synced
      */
     public void testGetWaitQueueLengthIMSE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();
         final AbstractQueuedSynchronizer.ConditionObject c = (sync.newCondition());
         try {
@@ -734,6 +859,10 @@ public class AbstractQueuedSynchronizerT
      * getWaitingThreads throws IAE if not owned
      */
     public void testGetWaitingThreadsIAE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = (sync.newCondition());
 	final Mutex sync2 = new Mutex();	
@@ -750,6 +879,10 @@ public class AbstractQueuedSynchronizerT
      * getWaitingThreads throws IMSE if not synced
      */
     public void testGetWaitingThreadsIMSE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = (sync.newCondition());
         try {
@@ -767,6 +900,10 @@ public class AbstractQueuedSynchronizerT
      * hasWaiters returns true when a thread is waiting, else false
      */
     public void testHasWaiters() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
 	Thread t = new Thread(new Runnable() { 
@@ -809,6 +946,10 @@ public class AbstractQueuedSynchronizerT
      * getWaitQueueLength returns number of waiting threads
      */
     public void testGetWaitQueueLength() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
 	Thread t1 = new Thread(new Runnable() { 
@@ -870,6 +1011,10 @@ public class AbstractQueuedSynchronizerT
      * getWaitingThreads returns only and all waiting threads
      */
     public void testGetWaitingThreads() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
 	Thread t1 = new Thread(new Runnable() { 
@@ -935,6 +1080,10 @@ public class AbstractQueuedSynchronizerT
      * awaitUninterruptibly doesn't abort on interrupt
      */
     public void testAwaitUninterruptibly() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
 	Thread t = new Thread(new Runnable() { 
@@ -964,6 +1113,10 @@ public class AbstractQueuedSynchronizerT
      * await is interruptible
      */
     public void testAwait_Interrupt() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
 	Thread t = new Thread(new Runnable() { 
@@ -995,6 +1148,10 @@ public class AbstractQueuedSynchronizerT
      * awaitNanos is interruptible
      */
     public void testAwaitNanos_Interrupt() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
 	Thread t = new Thread(new Runnable() { 
@@ -1026,6 +1183,10 @@ public class AbstractQueuedSynchronizerT
      * awaitUntil is interruptible
      */
     public void testAwaitUntil_Interrupt() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
 	Thread t = new Thread(new Runnable() { 
@@ -1058,6 +1219,10 @@ public class AbstractQueuedSynchronizerT
      * signalAll wakes up all threads
      */
     public void testSignalAll() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final Mutex sync = new Mutex();	
         final AbstractQueuedSynchronizer.ConditionObject c = sync.newCondition();
 	Thread t1 = new Thread(new Runnable() { 
@@ -1108,6 +1273,10 @@ public class AbstractQueuedSynchronizerT
      * toString indicates current state
      */
     public void testToString() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Mutex sync = new Mutex();
         String us = sync.toString();
         assertTrue(us.indexOf("State = 0") >= 0);
@@ -1120,6 +1289,10 @@ public class AbstractQueuedSynchronizerT
      * A serialized AQS deserializes with current state
      */
     public void testSerialization() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Mutex l = new Mutex();
         l.acquire(1);
         assertTrue(l.isHeldExclusively());
@@ -1145,6 +1318,10 @@ public class AbstractQueuedSynchronizerT
      * tryReleaseShared setting state changes getState
      */
     public void testGetStateWithReleaseShared() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final BooleanLatch l = new BooleanLatch();
 	assertFalse(l.isSignalled());
 	l.releaseShared(0);
@@ -1155,6 +1332,10 @@ public class AbstractQueuedSynchronizerT
      * releaseShared has no effect when already signalled
      */
     public void testReleaseShared() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final BooleanLatch l = new BooleanLatch();
 	assertFalse(l.isSignalled());
 	l.releaseShared(0);
@@ -1167,6 +1348,10 @@ public class AbstractQueuedSynchronizerT
      * acquireSharedInterruptibly returns after release, but not before
      */
     public void testAcquireSharedInterruptibly() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final BooleanLatch l = new BooleanLatch();
 
 	Thread t = new Thread(new Runnable() {
@@ -1197,6 +1382,10 @@ public class AbstractQueuedSynchronizerT
      * acquireSharedTimed returns after release
      */
     public void testAsquireSharedTimed() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final BooleanLatch l = new BooleanLatch();
 
 	Thread t = new Thread(new Runnable() {
@@ -1227,6 +1416,10 @@ public class AbstractQueuedSynchronizerT
      * acquireSharedInterruptibly throws IE if interrupted before released
      */
     public void testAcquireSharedInterruptibly_InterruptedException() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         final BooleanLatch l = new BooleanLatch();
         Thread t = new Thread(new Runnable() {
                 public void run() {
@@ -1251,6 +1444,10 @@ public class AbstractQueuedSynchronizerT
      * acquireSharedTimed throws IE if interrupted before released
      */
     public void testAcquireSharedNanos_InterruptedException() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         final BooleanLatch l = new BooleanLatch();
         Thread t = new Thread(new Runnable() {
                 public void run() {
@@ -1276,6 +1473,10 @@ public class AbstractQueuedSynchronizerT
      * acquireSharedTimed times out if not released before timeout
      */
     public void testAcquireSharedNanos_Timeout() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         final BooleanLatch l = new BooleanLatch();
         Thread t = new Thread(new Runnable() {
                 public void run() {

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/src/test/java/ExecutorsTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/src/test/java/ExecutorsTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/src/test/java/ExecutorsTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/src/test/java/ExecutorsTest.java Wed May 26 09:31:07 2010
@@ -12,6 +12,7 @@ import java.util.*;
 import java.util.concurrent.*;
 import java.math.BigInteger;
 import java.security.*;
+import tests.support.Support_Excludes;
 
 public class ExecutorsTest extends JSR166TestCase{
     public static void main(String[] args) {
@@ -65,6 +66,10 @@ public class ExecutorsTest extends JSR16
      * A newCachedThreadPool can execute runnables
      */
     public void testNewCachedThreadPool1() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         ExecutorService e = Executors.newCachedThreadPool();
         e.execute(new NoOpRunnable());
         e.execute(new NoOpRunnable());
@@ -76,6 +81,10 @@ public class ExecutorsTest extends JSR16
      * A newCachedThreadPool with given ThreadFactory can execute runnables
      */
     public void testNewCachedThreadPool2() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         ExecutorService e = Executors.newCachedThreadPool(new SimpleThreadFactory());
         e.execute(new NoOpRunnable());
         e.execute(new NoOpRunnable());
@@ -87,6 +96,10 @@ public class ExecutorsTest extends JSR16
      * A newCachedThreadPool with null ThreadFactory throws NPE
      */
     public void testNewCachedThreadPool3() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             ExecutorService e = Executors.newCachedThreadPool(null);
             shouldThrow();
@@ -100,6 +113,10 @@ public class ExecutorsTest extends JSR16
      * A new SingleThreadExecutor can execute runnables
      */
     public void testNewSingleThreadExecutor1() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         ExecutorService e = Executors.newSingleThreadExecutor();
         e.execute(new NoOpRunnable());
         e.execute(new NoOpRunnable());
@@ -111,6 +128,10 @@ public class ExecutorsTest extends JSR16
      * A new SingleThreadExecutor with given ThreadFactory can execute runnables
      */
     public void testNewSingleThreadExecutor2() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         ExecutorService e = Executors.newSingleThreadExecutor(new SimpleThreadFactory());
         e.execute(new NoOpRunnable());
         e.execute(new NoOpRunnable());
@@ -122,6 +143,10 @@ public class ExecutorsTest extends JSR16
      * A new SingleThreadExecutor with null ThreadFactory throws NPE
      */
     public void testNewSingleThreadExecutor3() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             ExecutorService e = Executors.newSingleThreadExecutor(null);
             shouldThrow();
@@ -134,6 +159,10 @@ public class ExecutorsTest extends JSR16
      * A new SingleThreadExecutor cannot be casted to concrete implementation
      */
     public void testCastNewSingleThreadExecutor() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         ExecutorService e = Executors.newSingleThreadExecutor();
         try {
             ThreadPoolExecutor tpe = (ThreadPoolExecutor)e;
@@ -148,6 +177,10 @@ public class ExecutorsTest extends JSR16
      * A new newFixedThreadPool can execute runnables
      */
     public void testNewFixedThreadPool1() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         ExecutorService e = Executors.newFixedThreadPool(2);
         e.execute(new NoOpRunnable());
         e.execute(new NoOpRunnable());
@@ -159,6 +192,10 @@ public class ExecutorsTest extends JSR16
      * A new newFixedThreadPool with given ThreadFactory can execute runnables
      */
     public void testNewFixedThreadPool2() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory());
         e.execute(new NoOpRunnable());
         e.execute(new NoOpRunnable());
@@ -170,6 +207,10 @@ public class ExecutorsTest extends JSR16
      * A new newFixedThreadPool with null ThreadFactory throws NPE
      */
     public void testNewFixedThreadPool3() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             ExecutorService e = Executors.newFixedThreadPool(2, null);
             shouldThrow();
@@ -182,6 +223,10 @@ public class ExecutorsTest extends JSR16
      * A new newFixedThreadPool with 0 threads throws IAE
      */
     public void testNewFixedThreadPool4() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             ExecutorService e = Executors.newFixedThreadPool(0);
             shouldThrow();
@@ -195,6 +240,10 @@ public class ExecutorsTest extends JSR16
      * An unconfigurable newFixedThreadPool can execute runnables
      */
     public void testunconfigurableExecutorService() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         ExecutorService e = Executors.unconfigurableExecutorService(Executors.newFixedThreadPool(2));
         e.execute(new NoOpRunnable());
         e.execute(new NoOpRunnable());
@@ -206,6 +255,10 @@ public class ExecutorsTest extends JSR16
      * unconfigurableExecutorService(null) throws NPE
      */
     public void testunconfigurableExecutorServiceNPE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             ExecutorService e = Executors.unconfigurableExecutorService(null);
         }
@@ -217,6 +270,10 @@ public class ExecutorsTest extends JSR16
      * unconfigurableScheduledExecutorService(null) throws NPE
      */
     public void testunconfigurableScheduledExecutorServiceNPE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             ExecutorService e = Executors.unconfigurableScheduledExecutorService(null);
         }
@@ -229,6 +286,10 @@ public class ExecutorsTest extends JSR16
      * a newSingleThreadScheduledExecutor successfully runs delayed task
      */
     public void testNewSingleThreadScheduledExecutor() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	try {
             TrackedCallable callable = new TrackedCallable();
             ScheduledExecutorService p1 = Executors.newSingleThreadScheduledExecutor();
@@ -249,6 +310,10 @@ public class ExecutorsTest extends JSR16
      * a newScheduledThreadPool successfully runs delayed task
      */
     public void testnewScheduledThreadPool() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	try {
             TrackedCallable callable = new TrackedCallable();
             ScheduledExecutorService p1 = Executors.newScheduledThreadPool(2);
@@ -269,6 +334,10 @@ public class ExecutorsTest extends JSR16
      * an unconfigurable  newScheduledThreadPool successfully runs delayed task
      */
     public void testunconfigurableScheduledExecutorService() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	try {
             TrackedCallable callable = new TrackedCallable();
             ScheduledExecutorService p1 = Executors.unconfigurableScheduledExecutorService(Executors.newScheduledThreadPool(2));
@@ -289,6 +358,10 @@ public class ExecutorsTest extends JSR16
      *  timeouts from execute will time out if they compute too long.
      */
     public void testTimedCallable() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         int N = 10000;
         ExecutorService executor = Executors.newSingleThreadExecutor();
         List<Callable<BigInteger>> tasks = new ArrayList<Callable<BigInteger>>(N);
@@ -331,6 +404,10 @@ public class ExecutorsTest extends JSR16
      * specified group, priority, daemon status, and name
      */
     public void testDefaultThreadFactory() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         final ThreadGroup egroup = Thread.currentThread().getThreadGroup();
         Runnable r = new Runnable() {
                 public void run() {
@@ -374,6 +451,10 @@ public class ExecutorsTest extends JSR16
      * access control context and context class loader
      */
     public void testPrivilegedThreadFactory() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Policy savedPolicy = null;
         try {
             savedPolicy = Policy.getPolicy();
@@ -443,6 +524,10 @@ public class ExecutorsTest extends JSR16
      * privilegedCallableUsingCurrentClassLoader throws ACE
      */
     public void testCreatePrivilegedCallableUsingCCLWithNoPrivs() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	Policy savedPolicy = null;
         try {
             savedPolicy = Policy.getPolicy();
@@ -478,6 +563,10 @@ public class ExecutorsTest extends JSR16
      * privilegedCallableUsingCurrentClassLoader does not throw ACE
      */
     public void testprivilegedCallableUsingCCLWithPrivs() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	Policy savedPolicy = null;
         try {
             savedPolicy = Policy.getPolicy();
@@ -504,6 +593,10 @@ public class ExecutorsTest extends JSR16
      * Without permissions, calling privilegedCallable throws ACE
      */
     public void testprivilegedCallableWithNoPrivs() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Callable task;
         Policy savedPolicy = null;
         AdjustablePolicy policy = null;
@@ -544,6 +637,10 @@ public class ExecutorsTest extends JSR16
      * With permissions, calling privilegedCallable succeeds
      */
     public void testprivilegedCallableWithPrivs() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	Policy savedPolicy = null;
         try {
             savedPolicy = Policy.getPolicy();
@@ -569,6 +666,10 @@ public class ExecutorsTest extends JSR16
      * callable(Runnable) returns null when called
      */ 
     public void testCallable1() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             Callable c = Executors.callable(new NoOpRunnable());
             assertNull(c.call());
@@ -582,6 +683,10 @@ public class ExecutorsTest extends JSR16
      * callable(Runnable, result) returns result when called
      */ 
     public void testCallable2() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             Callable c = Executors.callable(new NoOpRunnable(), one);
             assertEquals(one, c.call());
@@ -594,6 +699,10 @@ public class ExecutorsTest extends JSR16
      * callable(PrivilegedAction) returns its result when called
      */ 
     public void testCallable3() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             Callable c = Executors.callable(new PrivilegedAction() {
                     public Object run() { return one; }});
@@ -607,6 +716,10 @@ public class ExecutorsTest extends JSR16
      * callable(PrivilegedExceptionAction) returns its result when called
      */ 
     public void testCallable4() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             Callable c = Executors.callable(new PrivilegedExceptionAction() {
                     public Object run() { return one; }});
@@ -621,6 +734,10 @@ public class ExecutorsTest extends JSR16
      * callable(null Runnable) throws NPE
      */ 
     public void testCallableNPE1() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             Runnable r = null;
             Callable c = Executors.callable(r);
@@ -632,6 +749,10 @@ public class ExecutorsTest extends JSR16
      * callable(null, result) throws NPE
      */ 
     public void testCallableNPE2() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             Runnable r = null;
             Callable c = Executors.callable(r, one);
@@ -643,6 +764,10 @@ public class ExecutorsTest extends JSR16
      * callable(null PrivilegedAction) throws NPE
      */ 
     public void testCallableNPE3() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             PrivilegedAction r = null;
             Callable c = Executors.callable(r);
@@ -654,6 +779,10 @@ public class ExecutorsTest extends JSR16
      * callable(null PrivilegedExceptionAction) throws NPE
      */ 
     public void testCallableNPE4() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             PrivilegedExceptionAction r = null;
             Callable c = Executors.callable(r);

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/src/test/java/ReentrantLockTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/src/test/java/ReentrantLockTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/src/test/java/ReentrantLockTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/concurrent/src/test/java/ReentrantLockTest.java Wed May 26 09:31:07 2010
@@ -11,6 +11,7 @@ import java.util.concurrent.locks.*;
 import java.util.concurrent.*;
 import java.util.*;
 import java.io.*;
+import tests.support.Support_Excludes;
 
 public class ReentrantLockTest extends JSR166TestCase {
     public static void main(String[] args) {
@@ -68,6 +69,10 @@ public class ReentrantLockTest extends J
      * Constructor sets given fairness
      */
     public void testConstructor() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	ReentrantLock rl = new ReentrantLock();
         assertFalse(rl.isFair());
 	ReentrantLock r2 = new ReentrantLock(true);
@@ -78,6 +83,10 @@ public class ReentrantLockTest extends J
      * locking an unlocked lock succeeds
      */
     public void testLock() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	ReentrantLock rl = new ReentrantLock();
         rl.lock();
         assertTrue(rl.isLocked());
@@ -88,6 +97,10 @@ public class ReentrantLockTest extends J
      * locking an unlocked fair lock succeeds
      */
     public void testFairLock() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	ReentrantLock rl = new ReentrantLock(true);
         rl.lock();
         assertTrue(rl.isLocked());
@@ -98,6 +111,10 @@ public class ReentrantLockTest extends J
      * Unlocking an unlocked lock throws IllegalMonitorStateException
      */
     public void testUnlock_IllegalMonitorStateException() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	ReentrantLock rl = new ReentrantLock();
 	try {
 	    rl.unlock();
@@ -110,6 +127,10 @@ public class ReentrantLockTest extends J
      * tryLock on an unlocked lock succeeds
      */
     public void testTryLock() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	ReentrantLock rl = new ReentrantLock();
         assertTrue(rl.tryLock());
         assertTrue(rl.isLocked());
@@ -121,6 +142,10 @@ public class ReentrantLockTest extends J
      * hasQueuedThreads reports whether there are waiting threads
      */
     public void testhasQueuedThreads() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
         Thread t1 = new Thread(new InterruptedLockRunnable(lock));
         Thread t2 = new Thread(new InterruptibleLockRunnable(lock));
@@ -150,6 +175,10 @@ public class ReentrantLockTest extends J
      * getQueueLength reports number of waiting threads
      */
     public void testGetQueueLength() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
         Thread t1 = new Thread(new InterruptedLockRunnable(lock));
         Thread t2 = new Thread(new InterruptibleLockRunnable(lock));
@@ -179,6 +208,10 @@ public class ReentrantLockTest extends J
      * getQueueLength reports number of waiting threads
      */
     public void testGetQueueLength_fair() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock(true);
         Thread t1 = new Thread(new InterruptedLockRunnable(lock));
         Thread t2 = new Thread(new InterruptibleLockRunnable(lock));
@@ -208,6 +241,10 @@ public class ReentrantLockTest extends J
      * hasQueuedThread(null) throws NPE
      */
     public void testHasQueuedThreadNPE() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock sync = new ReentrantLock();
         try {
             sync.hasQueuedThread(null);
@@ -220,6 +257,10 @@ public class ReentrantLockTest extends J
      * hasQueuedThread reports whether a thread is queued.
      */
     public void testHasQueuedThread() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock sync = new ReentrantLock();
         Thread t1 = new Thread(new InterruptedLockRunnable(sync));
         Thread t2 = new Thread(new InterruptibleLockRunnable(sync));
@@ -255,6 +296,10 @@ public class ReentrantLockTest extends J
      * getQueuedThreads includes waiting threads
      */
     public void testGetQueuedThreads() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final PublicReentrantLock lock = new PublicReentrantLock();
         Thread t1 = new Thread(new InterruptedLockRunnable(lock));
         Thread t2 = new Thread(new InterruptibleLockRunnable(lock));
@@ -288,6 +333,10 @@ public class ReentrantLockTest extends J
      * timed tryLock is interruptible.
      */
     public void testInterruptedException2() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
 	lock.lock();
 	Thread t = new Thread(new Runnable() {
@@ -311,6 +360,10 @@ public class ReentrantLockTest extends J
      * TryLock on a locked lock fails
      */
     public void testTryLockWhenLocked() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
 	lock.lock();
 	Thread t = new Thread(new Runnable() {
@@ -331,6 +384,10 @@ public class ReentrantLockTest extends J
      * Timed tryLock on a locked lock times out
      */
     public void testTryLock_Timeout() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
 	lock.lock();
 	Thread t = new Thread(new Runnable() {
@@ -355,6 +412,10 @@ public class ReentrantLockTest extends J
      * getHoldCount returns number of recursive holds
      */
     public void testGetHoldCount() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	ReentrantLock lock = new ReentrantLock();
 	for(int i = 1; i <= SIZE; i++) {
 	    lock.lock();
@@ -371,6 +432,10 @@ public class ReentrantLockTest extends J
      * isLocked is true when locked and false when not
      */
     public void testIsLocked() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
 	lock.lock();
 	assertTrue(lock.isLocked());
@@ -404,6 +469,10 @@ public class ReentrantLockTest extends J
      * lockInterruptibly is interruptible.
      */
     public void testLockInterruptibly1() { 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
 	lock.lock();
 	Thread t = new Thread(new InterruptedLockRunnable(lock));
@@ -423,6 +492,10 @@ public class ReentrantLockTest extends J
      * lockInterruptibly succeeds when unlocked, else is interruptible
      */
     public void testLockInterruptibly2() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
 	try {
             lock.lockInterruptibly();
@@ -445,6 +518,10 @@ public class ReentrantLockTest extends J
      * Calling await without holding lock throws IllegalMonitorStateException
      */
     public void testAwait_IllegalMonitor() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
         try {
@@ -462,6 +539,10 @@ public class ReentrantLockTest extends J
      * Calling signal without holding lock throws IllegalMonitorStateException
      */
     public void testSignal_IllegalMonitor() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
         try {
@@ -479,6 +560,10 @@ public class ReentrantLockTest extends J
      * awaitNanos without a signal times out
      */
     public void testAwaitNanos_Timeout() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
         try {
@@ -496,6 +581,10 @@ public class ReentrantLockTest extends J
      *  timed await without a signal times out
      */
     public void testAwait_Timeout() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
         try {
@@ -512,6 +601,10 @@ public class ReentrantLockTest extends J
      * awaitUntil without a signal times out
      */
     public void testAwaitUntil_Timeout() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
         try {
@@ -529,6 +622,10 @@ public class ReentrantLockTest extends J
      * await returns when signalled
      */
     public void testAwait() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
 	Thread t = new Thread(new Runnable() { 
@@ -562,6 +659,10 @@ public class ReentrantLockTest extends J
      * hasWaiters throws NPE if null
      */
     public void testHasWaitersNPE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
         try {
             lock.hasWaiters(null);
@@ -576,6 +677,10 @@ public class ReentrantLockTest extends J
      * getWaitQueueLength throws NPE if null
      */
     public void testGetWaitQueueLengthNPE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
         try {
             lock.getWaitQueueLength(null);
@@ -591,6 +696,10 @@ public class ReentrantLockTest extends J
      * getWaitingThreads throws NPE if null
      */
     public void testGetWaitingThreadsNPE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final PublicReentrantLock lock = new PublicReentrantLock();
         try {
             lock.getWaitingThreads(null);
@@ -606,6 +715,10 @@ public class ReentrantLockTest extends J
      * hasWaiters throws IAE if not owned
      */
     public void testHasWaitersIAE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
         final Condition c = (lock.newCondition());
 	final ReentrantLock lock2 = new ReentrantLock();
@@ -622,6 +735,10 @@ public class ReentrantLockTest extends J
      * hasWaiters throws IMSE if not locked
      */
     public void testHasWaitersIMSE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
         final Condition c = (lock.newCondition());
         try {
@@ -638,6 +755,10 @@ public class ReentrantLockTest extends J
      * getWaitQueueLength throws IAE if not owned
      */
     public void testGetWaitQueueLengthIAE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
         final Condition c = (lock.newCondition());
 	final ReentrantLock lock2 = new ReentrantLock();
@@ -654,6 +775,10 @@ public class ReentrantLockTest extends J
      * getWaitQueueLength throws IMSE if not locked
      */
     public void testGetWaitQueueLengthIMSE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();
         final Condition c = (lock.newCondition());
         try {
@@ -670,6 +795,10 @@ public class ReentrantLockTest extends J
      * getWaitingThreads throws IAE if not owned
      */
     public void testGetWaitingThreadsIAE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final PublicReentrantLock lock = new PublicReentrantLock();	
         final Condition c = (lock.newCondition());
 	final PublicReentrantLock lock2 = new PublicReentrantLock();	
@@ -686,6 +815,10 @@ public class ReentrantLockTest extends J
      * getWaitingThreads throws IMSE if not locked
      */
     public void testGetWaitingThreadsIMSE() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final PublicReentrantLock lock = new PublicReentrantLock();	
         final Condition c = (lock.newCondition());
         try {
@@ -703,6 +836,10 @@ public class ReentrantLockTest extends J
      * hasWaiters returns true when a thread is waiting, else false
      */
     public void testHasWaiters() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
 	Thread t = new Thread(new Runnable() { 
@@ -745,6 +882,10 @@ public class ReentrantLockTest extends J
      * getWaitQueueLength returns number of waiting threads
      */
     public void testGetWaitQueueLength() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
 	Thread t1 = new Thread(new Runnable() { 
@@ -806,6 +947,10 @@ public class ReentrantLockTest extends J
      * getWaitingThreads returns only and all waiting threads
      */
     public void testGetWaitingThreads() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final PublicReentrantLock lock = new PublicReentrantLock();	
         final Condition c = lock.newCondition();
 	Thread t1 = new Thread(new Runnable() { 
@@ -896,6 +1041,10 @@ public class ReentrantLockTest extends J
      * awaitUninterruptibly doesn't abort on interrupt
      */
     public void testAwaitUninterruptibly() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         final ReentrantLock lock = new ReentrantLock();
         final Condition c = lock.newCondition();
         UninterruptableThread thread = new UninterruptableThread(lock, c);
@@ -928,6 +1077,10 @@ public class ReentrantLockTest extends J
      * await is interruptible
      */
     public void testAwait_Interrupt() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
 	Thread t = new Thread(new Runnable() { 
@@ -959,6 +1112,10 @@ public class ReentrantLockTest extends J
      * awaitNanos is interruptible
      */
     public void testAwaitNanos_Interrupt() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
 	Thread t = new Thread(new Runnable() { 
@@ -990,6 +1147,10 @@ public class ReentrantLockTest extends J
      * awaitUntil is interruptible
      */
     public void testAwaitUntil_Interrupt() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
 	Thread t = new Thread(new Runnable() { 
@@ -1022,6 +1183,10 @@ public class ReentrantLockTest extends J
      * signalAll wakes up all threads
      */
     public void testSignalAll() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
 	Thread t1 = new Thread(new Runnable() { 
@@ -1071,6 +1236,10 @@ public class ReentrantLockTest extends J
      * await after multiple reentrant locking preserves lock count
      */
     public void testAwaitLockCount() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	final ReentrantLock lock = new ReentrantLock();	
         final Condition c = lock.newCondition();
 	Thread t1 = new Thread(new Runnable() { 
@@ -1126,6 +1295,10 @@ public class ReentrantLockTest extends J
      * A serialized lock deserializes as unlocked
      */
     public void testSerialization() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         ReentrantLock l = new ReentrantLock();
         l.lock();
         l.unlock();
@@ -1151,6 +1324,10 @@ public class ReentrantLockTest extends J
      * toString indicates current lock state
      */
     public void testToString() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         ReentrantLock lock = new ReentrantLock();
         String us = lock.toString();
         assertTrue(us.indexOf("Unlocked") >= 0);



Mime
View raw message