harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r948377 [6/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/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryManagerMXBeanTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryManagerMXBeanTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryManagerMXBeanTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryManagerMXBeanTest.java Wed May 26 09:31:07 2010
@@ -25,6 +25,7 @@ import java.lang.management.MemoryManage
 import java.util.List;
 
 import junit.framework.TestCase;
+import tests.support.Support_Excludes;
 
 public class MemoryManagerMXBeanTest extends TestCase {
 
@@ -48,6 +49,10 @@ public class MemoryManagerMXBeanTest ext
      * 'java.lang.management.MemoryManagerMXBean.getMemoryPoolNames()'
      */
     public void testGetMemoryPoolNames() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryManagerMXBean mb : allBeans) {
             String[] managedPools = mb.getMemoryPoolNames();
             assertNotNull(managedPools);
@@ -62,6 +67,10 @@ public class MemoryManagerMXBeanTest ext
      * Test method for 'java.lang.management.MemoryManagerMXBean.getName()'
      */
     public void testGetName() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryManagerMXBean mb : allBeans) {
             String name = mb.getName();
             assertNotNull(name);

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryPoolMXBeanTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryPoolMXBeanTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryPoolMXBeanTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryPoolMXBeanTest.java Wed May 26 09:31:07 2010
@@ -27,6 +27,7 @@ import java.lang.management.MemoryUsage;
 import java.util.List;
 
 import junit.framework.TestCase;
+import tests.support.Support_Excludes;
 
 public class MemoryPoolMXBeanTest extends TestCase {
 
@@ -49,6 +50,10 @@ public class MemoryPoolMXBeanTest extend
      * 'java.lang.management.MemoryPoolMXBean.getCollectionUsage()'
      */
     public void testGetCollectionUsage() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             // If this method is not supported then it returns null.
             MemoryUsage mu = mb.getCollectionUsage();
@@ -65,6 +70,10 @@ public class MemoryPoolMXBeanTest extend
      * 'java.lang.management.MemoryPoolMXBean.getCollectionUsageThreshold()'
      */
     public void testGetCollectionUsageThreshold() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             if (mb.isCollectionUsageThresholdSupported()) {
                 assertTrue(mb.getCollectionUsageThreshold() > -1);
@@ -83,6 +92,10 @@ public class MemoryPoolMXBeanTest extend
      * 'java.lang.management.MemoryPoolMXBean.getCollectionUsageThresholdCount()'
      */
     public void testGetCollectionUsageThresholdCount() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             if (mb.isCollectionUsageThresholdSupported()) {
                 assertTrue(mb.getCollectionUsageThresholdCount() > -1);
@@ -101,6 +114,10 @@ public class MemoryPoolMXBeanTest extend
      * 'java.lang.management.MemoryPoolMXBean.getMemoryManagerNames()'
      */
     public void testGetMemoryManagerNames() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             String[] managers = mb.getMemoryManagerNames();
             assertNotNull(managers);
@@ -115,6 +132,10 @@ public class MemoryPoolMXBeanTest extend
      * Test method for 'java.lang.management.MemoryPoolMXBean.getName()'
      */
     public void testGetName() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         allBeans = ManagementFactory.getMemoryPoolMXBeans();
         for (MemoryPoolMXBean mb : allBeans) {
             String name = mb.getName();
@@ -127,6 +148,10 @@ public class MemoryPoolMXBeanTest extend
      * Test method for 'java.lang.management.MemoryPoolMXBean.getPeakUsage()'
      */
     public void testGetPeakUsage() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             if (mb.isValid()) {
                 MemoryUsage mu = mb.getPeakUsage();
@@ -148,6 +173,10 @@ public class MemoryPoolMXBeanTest extend
      * Test method for 'java.lang.management.MemoryPoolMXBean.getType()'
      */
     public void testGetType() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MemoryType[] allTypes = MemoryType.values();
         for (MemoryPoolMXBean mb : allBeans) {
             MemoryType type = mb.getType();
@@ -167,6 +196,10 @@ public class MemoryPoolMXBeanTest extend
      * Test method for 'java.lang.management.MemoryPoolMXBean.getUsage()'
      */
     public void testGetUsage() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             if (mb.isValid()) {
                 MemoryUsage mu = mb.getUsage();
@@ -189,6 +222,10 @@ public class MemoryPoolMXBeanTest extend
      * 'java.lang.management.MemoryPoolMXBean.getUsageThreshold()'
      */
     public void testGetUsageThreshold() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             if (mb.isUsageThresholdSupported()) {
                 assertTrue(mb.getUsageThreshold() > -1);
@@ -207,6 +244,10 @@ public class MemoryPoolMXBeanTest extend
      * 'java.lang.management.MemoryPoolMXBean.getUsageThresholdCount()'
      */
     public void testGetUsageThresholdCount() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             if (mb.isUsageThresholdSupported()) {
                 assertTrue(mb.getUsageThresholdCount() > -1);
@@ -225,6 +266,10 @@ public class MemoryPoolMXBeanTest extend
      * 'java.lang.management.MemoryPoolMXBean.isCollectionUsageThresholdExceeded()'
      */
     public void testIsCollectionUsageThresholdExceeded() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             if (mb.isCollectionUsageThresholdSupported()) {
                 // Not a lot to test here. Maybe it will throw an exception ?
@@ -244,6 +289,10 @@ public class MemoryPoolMXBeanTest extend
      * 'java.lang.management.MemoryPoolMXBean.isUsageThresholdExceeded()'
      */
     public void testIsUsageThresholdExceeded() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             if (mb.isUsageThresholdSupported()) {
                 mb.isUsageThresholdExceeded();
@@ -261,6 +310,10 @@ public class MemoryPoolMXBeanTest extend
      * Test method for 'java.lang.management.MemoryPoolMXBean.resetPeakUsage()'
      */
     public void testResetPeakUsage() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             MemoryUsage current = mb.getUsage();
             mb.resetPeakUsage();
@@ -277,6 +330,10 @@ public class MemoryPoolMXBeanTest extend
      * 'java.lang.management.MemoryPoolMXBean.setCollectionUsageThreshold(long)'
      */
     public void testSetCollectionUsageThreshold() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             if (mb.isCollectionUsageThresholdSupported()) {
                 long before = mb.getCollectionUsageThreshold();
@@ -298,6 +355,10 @@ public class MemoryPoolMXBeanTest extend
      * 'java.lang.management.MemoryPoolMXBean.setCollectionUsageThreshold(long)'
      */
     public void testSetCollectionUsageThresholdWithNegative() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             if (mb.isCollectionUsageThresholdSupported()) {
                 try {
@@ -320,6 +381,10 @@ public class MemoryPoolMXBeanTest extend
      * 'java.lang.management.MemoryPoolMXBean.setUsageThreshold(long)'
      */
     public void testSetUsageThreshold() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             if (mb.isUsageThresholdSupported()) {
                 long before = mb.getUsageThreshold();
@@ -341,6 +406,10 @@ public class MemoryPoolMXBeanTest extend
      * 'java.lang.management.MemoryPoolMXBean.setUsageThreshold(long)'
      */
     public void testSetUsageThresholdWithNegative() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (MemoryPoolMXBean mb : allBeans) {
             if (mb.isUsageThresholdSupported()) {
                 try {

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/RuntimeMXBeanTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/RuntimeMXBeanTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/RuntimeMXBeanTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/RuntimeMXBeanTest.java Wed May 26 09:31:07 2010
@@ -26,6 +26,7 @@ import java.util.List;
 import java.util.Map;
 
 import junit.framework.TestCase;
+import tests.support.Support_Excludes;
 
 public class RuntimeMXBeanTest extends TestCase {
 
@@ -44,6 +45,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getBootClassPath()'
      */
     public void testGetBootClassPath() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         if (mb.isBootClassPathSupported()) {
             String bootclasspath = mb.getBootClassPath();
             assertNotNull(bootclasspath);
@@ -61,6 +66,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getClassPath()'
      */
     public void testGetClassPath() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(mb.getClassPath(), System.getProperty("java.class.path"));
     }
 
@@ -68,6 +77,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getInputArguments()'
      */
     public void testGetInputArguments() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         List<String> args = mb.getInputArguments();
         assertNotNull(args);
         for (String string : args) {
@@ -80,6 +93,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getLibraryPath()'
      */
     public void testGetLibraryPath() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(mb.getLibraryPath(), System
                 .getProperty("java.library.path"));
     }
@@ -89,6 +106,10 @@ public class RuntimeMXBeanTest extends T
      * 'java.lang.management.RuntimeMXBean.getManagementSpecVersion()'
      */
     public void testGetManagementSpecVersion() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         String specVersion = mb.getManagementSpecVersion();
         assertNotNull(specVersion);
         assertTrue(specVersion.length() > 0);
@@ -98,6 +119,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getName()'
      */
     public void testGetName() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         String name = mb.getName();
         assertNotNull(name);
         assertTrue(name.length() > 0);
@@ -107,6 +132,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getSpecName()'
      */
     public void testGetSpecName() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(mb.getSpecName(), System
                 .getProperty("java.vm.specification.name"));
     }
@@ -115,6 +144,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getSpecVendor()'
      */
     public void testGetSpecVendor() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(mb.getSpecVendor(), System
                 .getProperty("java.vm.specification.vendor"));
     }
@@ -123,6 +156,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getSpecVersion()'
      */
     public void testGetSpecVersion() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(mb.getSpecVersion(), System
                 .getProperty("java.vm.specification.version"));
     }
@@ -131,6 +168,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getStartTime()'
      */
     public void testGetStartTime() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertTrue(mb.getStartTime() > -1);
     }
 
@@ -139,6 +180,10 @@ public class RuntimeMXBeanTest extends T
      * 'java.lang.management.RuntimeMXBean.getSystemProperties()'
      */
     public void testGetSystemProperties() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Map<String, String> props = mb.getSystemProperties();
         assertNotNull(props);
         assertTrue(props.size() > 0);
@@ -153,6 +198,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getUptime()'
      */
     public void testGetUptime() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertTrue(mb.getUptime() > -1);
     }
 
@@ -160,6 +209,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getVmName()'
      */
     public void testGetVmName() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(mb.getVmName(), System.getProperty("java.vm.name"));
     }
 
@@ -167,6 +220,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getVmVendor()'
      */
     public void testGetVmVendor() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(mb.getVmVendor(), System.getProperty("java.vm.vendor"));
     }
 
@@ -174,6 +231,10 @@ public class RuntimeMXBeanTest extends T
      * Test method for 'java.lang.management.RuntimeMXBean.getVmVersion()'
      */
     public void testGetVmVersion() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(mb.getVmVersion(), System.getProperty("java.vm.version"));
     }
 }

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/ThreadMXBeanTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/ThreadMXBeanTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/ThreadMXBeanTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/ThreadMXBeanTest.java Wed May 26 09:31:07 2010
@@ -25,6 +25,7 @@ import java.lang.management.ThreadInfo;
 import java.lang.management.ThreadMXBean;
 
 import junit.framework.TestCase;
+import tests.support.Support_Excludes;
 
 public class ThreadMXBeanTest extends TestCase {
 
@@ -44,6 +45,10 @@ public class ThreadMXBeanTest extends Te
      * 'java.lang.management.ThreadMXBean.findMonitorDeadlockedThreads()'
      */
     public void testFindMonitorDeadlockedThreads() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Check that if there are no deadlocked threads we get back
         // a null rather than a zero length array.
         long[] ids = mb.findMonitorDeadlockedThreads();
@@ -56,6 +61,10 @@ public class ThreadMXBeanTest extends Te
      * Test method for 'java.lang.management.ThreadMXBean.getAllThreadIds()'
      */
     public void testGetAllThreadIds() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         int count = mb.getThreadCount();
         long[] ids = mb.getAllThreadIds();
         assertNotNull(ids);
@@ -67,6 +76,10 @@ public class ThreadMXBeanTest extends Te
      * 'java.lang.management.ThreadMXBean.getCurrentThreadCpuTime()'
      */
     public void testGetCurrentThreadCpuTime() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Outcome depends on whether or not CPU time measurement is supported
         // and enabled.
         if (mb.isCurrentThreadCpuTimeSupported()) {
@@ -89,6 +102,10 @@ public class ThreadMXBeanTest extends Te
      * 'java.lang.management.ThreadMXBean.getCurrentThreadUserTime()'
      */
     public void testGetCurrentThreadUserTime() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Outcome depends on whether or not CPU time measurement is supported
         // and enabled.
         if (mb.isCurrentThreadCpuTimeSupported()) {
@@ -111,6 +128,10 @@ public class ThreadMXBeanTest extends Te
      * 'java.lang.management.ThreadMXBean.getDaemonThreadCount()'
      */
     public void testGetDaemonThreadCount() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertTrue(mb.getDaemonThreadCount() > -1);
     }
 
@@ -118,6 +139,10 @@ public class ThreadMXBeanTest extends Te
      * Test method for 'java.lang.management.ThreadMXBean.getPeakThreadCount()'
      */
     public void testGetPeakThreadCount() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertTrue(mb.getPeakThreadCount() > -1);
     }
 
@@ -125,6 +150,10 @@ public class ThreadMXBeanTest extends Te
      * Test method for 'java.lang.management.ThreadMXBean.getThreadCount()'
      */
     public void testGetThreadCount() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertTrue(mb.getThreadCount() > -1);
     }
 
@@ -133,6 +162,10 @@ public class ThreadMXBeanTest extends Te
      * 'java.lang.management.ThreadMXBean.getThreadCpuTime(long)'
      */
     public void testGetThreadCpuTime() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Outcome depends on whether or not CPU time measurement is supported
         // and enabled.
         if (mb.isThreadCpuTimeSupported()) {
@@ -165,6 +198,10 @@ public class ThreadMXBeanTest extends Te
      * Test method for 'java.lang.management.ThreadMXBean.getThreadInfo(long)'
      */
     public void testGetThreadInfoLong() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Should throw exception if a Thread id of 0 or less is input
         try {
             mb.getThreadInfo(0);
@@ -217,6 +254,10 @@ public class ThreadMXBeanTest extends Te
      * Test method for 'java.lang.management.ThreadMXBean.getThreadInfo(long[])'
      */
     public void testGetThreadInfoLongArray() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Should throw exception if a Thread id of 0 or less is input
         try {
             long[] input = new long[] { 0 };
@@ -242,6 +283,10 @@ public class ThreadMXBeanTest extends Te
      * int)'
      */
     public void testGetThreadInfoLongArrayInt() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Should throw exception if a Thread id of 0 or less is input
         try {
             long[] input = new long[] { 0 };
@@ -274,6 +319,10 @@ public class ThreadMXBeanTest extends Te
      * int)'
      */
     public void testGetThreadInfoLongInt() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Should throw exception if a Thread id of 0 or less is input
         try {
             mb.getThreadInfo(0, 0);
@@ -297,6 +346,10 @@ public class ThreadMXBeanTest extends Te
      * 'java.lang.management.ThreadMXBean.getThreadUserTime(long)'
      */
     public void testGetThreadUserTime() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Outcome depends on whether or not CPU time measurement is supported
         // and enabled.
         if (mb.isThreadCpuTimeSupported()) {
@@ -330,6 +383,10 @@ public class ThreadMXBeanTest extends Te
      * 'java.lang.management.ThreadMXBean.getTotalStartedThreadCount()'
      */
     public void testGetTotalStartedThreadCount() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         long before = mb.getTotalStartedThreadCount();
 
         // Create another thread in the VM.
@@ -360,6 +417,10 @@ public class ThreadMXBeanTest extends Te
      * 'java.lang.management.ThreadMXBean.isCurrentThreadCpuTimeSupported()'
      */
     public void testIsCurrentThreadCpuTimeSupported() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Should get the same response as a call to the
         // method isThreadCpuTimeSupported().
         assertEquals(mb.isCurrentThreadCpuTimeSupported(), mb
@@ -371,6 +432,10 @@ public class ThreadMXBeanTest extends Te
      * 'java.lang.management.ThreadMXBean.resetPeakThreadCount()'
      */
     public void testResetPeakThreadCount() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         int currentThreadCount = mb.getThreadCount();
         mb.resetPeakThreadCount();
         assertEquals(currentThreadCount, mb.getPeakThreadCount());
@@ -381,6 +446,10 @@ public class ThreadMXBeanTest extends Te
      * 'java.lang.management.ThreadMXBean.setThreadContentionMonitoringEnabled(boolean)'
      */
     public void testSetThreadContentionMonitoringEnabled() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Response depends on whether or not thread contention
         // monitoring is supported.
         if (mb.isThreadContentionMonitoringSupported()) {
@@ -420,6 +489,10 @@ public class ThreadMXBeanTest extends Te
      * 'java.lang.management.ThreadMXBean.setThreadCpuTimeEnabled(boolean)'
      */
     public void testSetThreadCpuTimeEnabled() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Depends on whether or not Thread CPU timing is actually
         // supported on the current VM.
         if (mb.isThreadCpuTimeSupported()) {

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ClassLoadingMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ClassLoadingMXBeanImplTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ClassLoadingMXBeanImplTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ClassLoadingMXBeanImplTest.java Wed May 26 09:31:07 2010
@@ -35,6 +35,7 @@ import javax.management.MBeanNotificatio
 import javax.management.MBeanOperationInfo;
 
 import org.apache.harmony.lang.management.ClassLoadingMXBeanImpl;
+import tests.support.Support_Excludes;
 
 
 public class ClassLoadingMXBeanImplTest extends

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/CompilationMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/CompilationMXBeanImplTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/CompilationMXBeanImplTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/CompilationMXBeanImplTest.java Wed May 26 09:31:07 2010
@@ -35,6 +35,7 @@ import javax.management.MBeanNotificatio
 import javax.management.MBeanOperationInfo;
 
 import org.apache.harmony.lang.management.CompilationMXBeanImpl;
+import tests.support.Support_Excludes;
 
 
 public class CompilationMXBeanImplTest extends

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/GarbageCollectorMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/GarbageCollectorMXBeanImplTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/GarbageCollectorMXBeanImplTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/GarbageCollectorMXBeanImplTest.java Wed May 26 09:31:07 2010
@@ -38,6 +38,7 @@ import javax.management.MBeanOperationIn
 
 import org.apache.harmony.lang.management.DynamicMXBeanImpl;
 import org.apache.harmony.lang.management.GarbageCollectorMXBeanImpl;
+import tests.support.Support_Excludes;
 
 
 public class GarbageCollectorMXBeanImplTest extends

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/LoggingMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/LoggingMXBeanImplTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/LoggingMXBeanImplTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/LoggingMXBeanImplTest.java Wed May 26 09:31:07 2010
@@ -39,6 +39,7 @@ import javax.management.ReflectionExcept
 
 import org.apache.harmony.lang.management.LoggingMXBeanImpl;
 import org.apache.harmony.lang.management.ManagementUtils;
+import tests.support.Support_Excludes;
 
 
 public class LoggingMXBeanImplTest extends SingleInstanceDynamicMXBeanImplTestBase {

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryMXBeanImplTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryMXBeanImplTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryMXBeanImplTest.java Wed May 26 09:31:07 2010
@@ -44,6 +44,7 @@ import javax.management.openmbean.Compos
 
 import org.apache.harmony.lang.management.ManagementUtils;
 import org.apache.harmony.lang.management.MemoryMXBeanImpl;
+import tests.support.Support_Excludes;
 
 
 public class MemoryMXBeanImplTest extends SingleInstanceDynamicMXBeanImplTestBase {

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryManagerImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryManagerImplTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryManagerImplTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryManagerImplTest.java Wed May 26 09:31:07 2010
@@ -39,6 +39,7 @@ import javax.management.MBeanOperationIn
 import org.apache.harmony.lang.management.DynamicMXBeanImpl;
 import org.apache.harmony.lang.management.GarbageCollectorMXBeanImpl;
 import org.apache.harmony.lang.management.MemoryManagerMXBeanImpl;
+import tests.support.Support_Excludes;
 
 
 public class MemoryManagerImplTest extends MultiInstanceDynamicMXBeanImplTestBase {

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryPoolMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryPoolMXBeanImplTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryPoolMXBeanImplTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryPoolMXBeanImplTest.java Wed May 26 09:31:07 2010
@@ -42,6 +42,7 @@ import javax.management.openmbean.Compos
 
 import org.apache.harmony.lang.management.DynamicMXBeanImpl;
 import org.apache.harmony.lang.management.MemoryPoolMXBeanImpl;
+import tests.support.Support_Excludes;
 
 
 public class MemoryPoolMXBeanImplTest extends
@@ -442,6 +443,10 @@ public class MemoryPoolMXBeanImplTest ex
     }
 
     public void testSetUsageThresholdAttribute() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (DynamicMXBeanImpl mb : mbList) {
             if (((MemoryPoolMXBean) mb).isUsageThresholdSupported()) {
                 long originalUT = (Long) mb.getAttribute("UsageThreshold");
@@ -465,6 +470,10 @@ public class MemoryPoolMXBeanImplTest ex
     }
 
     public void testSetCollectionUsageThresholdAttribute() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (DynamicMXBeanImpl mb : mbList) {
             if (((MemoryPoolMXBean) mb).isCollectionUsageThresholdSupported()) {
                 long originalCUT = (Long) mb
@@ -490,6 +499,10 @@ public class MemoryPoolMXBeanImplTest ex
 
     @Override
     public void testSetAttribute() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         for (DynamicMXBeanImpl mb : mbList) {
             // Good case - set the UsageThreshold value
             if (((Boolean) mb.getAttribute("UsageThresholdSupported"))) {

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/RuntimeMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/RuntimeMXBeanImplTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/RuntimeMXBeanImplTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/RuntimeMXBeanImplTest.java Wed May 26 09:31:07 2010
@@ -40,6 +40,7 @@ import javax.management.MBeanOperationIn
 import javax.management.openmbean.TabularData;
 
 import org.apache.harmony.lang.management.RuntimeMXBeanImpl;
+import tests.support.Support_Excludes;
 
 
 public class RuntimeMXBeanImplTest extends SingleInstanceDynamicMXBeanImplTestBase {

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadInfoTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadInfoTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadInfoTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadInfoTest.java Wed May 26 09:31:07 2010
@@ -31,6 +31,7 @@ import javax.management.openmbean.OpenTy
 import javax.management.openmbean.SimpleType;
 
 import junit.framework.TestCase;
+import tests.support.Support_Excludes;
 
 /**
  * ThreadInfo objects can only be obtained from the ThreadMXBean or else by
@@ -223,6 +224,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.getBlockedCount()'
      */
     public void testGetBlockedCount() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(GOOD_BLOCKED_COUNT, ti.getBlockedCount());
     }
 
@@ -230,6 +235,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.getBlockedTime()'
      */
     public void testGetBlockedTime() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(GOOD_BLOCKED_TIME, ti.getBlockedTime());
     }
 
@@ -237,6 +246,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.getLockOwnerId()'
      */
     public void testGetLockOwnerId() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(GOOD_LOCK_OWNER_ID, ti.getLockOwnerId());
     }
 
@@ -244,6 +257,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.getLockOwnerName()'
      */
     public void testGetLockOwnerName() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(GOOD_LOCK_OWNER_NAME, ti.getLockOwnerName());
     }
 
@@ -251,6 +268,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.getStackTrace()'
      */
     public void testGetStackTrace() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         StackTraceElement[] stack = ti.getStackTrace();
         assertEquals(GOOD_STACK_SIZE, stack.length);
         for (StackTraceElement element : stack) {
@@ -266,6 +287,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.getThreadId()'
      */
     public void testGetThreadId() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(GOOD_THREAD_ID, ti.getThreadId());
     }
 
@@ -273,6 +298,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.getThreadName()'
      */
     public void testGetThreadName() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(GOOD_THREAD_NAME, ti.getThreadName());
     }
 
@@ -280,6 +309,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.getThreadState()'
      */
     public void testGetThreadState() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(GOOD_THREAD_STATE, (ti.getThreadState()));
     }
 
@@ -287,6 +320,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.getWaitedCount()'
      */
     public void testGetWaitedCount() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(GOOD_WAITED_COUNT, ti.getWaitedCount());
     }
 
@@ -294,6 +331,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.getWaitedTime()'
      */
     public void testGetWaitedTime() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(GOOD_WAITED_TIME, ti.getWaitedTime());
     }
 
@@ -301,6 +342,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.isInNative()'
      */
     public void testIsInNative() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(GOOD_IN_NATIVE, ti.isInNative());
     }
 
@@ -308,6 +353,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.isSuspended()'
      */
     public void testIsSuspended() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(GOOD_SUSPENDED, ti.isSuspended());
     }
 
@@ -315,6 +364,10 @@ public class ThreadInfoTest extends Test
      * Test method for 'java.lang.management.ThreadInfo.toString()'
      */
     public void testToString() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertEquals(getGoodToStringVal(), ti.toString());
     }
 
@@ -323,6 +376,10 @@ public class ThreadInfoTest extends Test
      * with more than 13 essential fields
      */
     public void test_from_fields() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Object stackTraceElementData = createGoodStackTraceCompositeData();
         CompositeType stackTraceElementType = createGoodStackTraceElementCompositeType();
         String[] names = { "threadId", "threadName", "threadState",
@@ -380,6 +437,10 @@ public class ThreadInfoTest extends Test
             "lock", 2L, "lockOwner", stackTraceElementData, "additionalValue" };
 
     public void test_from_scenario1() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
                 SimpleType.STRING, SimpleType.BOOLEAN, SimpleType.BOOLEAN,
@@ -414,6 +475,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario2() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[0] = "1";
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.STRING, SimpleType.STRING,
@@ -433,6 +498,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario3() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         int length = 10;
         String[] names = new String[length];
         for (int index = 0; index < length; index++) {
@@ -468,6 +537,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario4() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[0] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
@@ -487,6 +560,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario5() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[1] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
@@ -506,6 +583,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario6() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[2] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
@@ -525,6 +606,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario7() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[3] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
@@ -544,6 +629,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario8() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[4] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
@@ -563,6 +652,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario9() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[5] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
@@ -582,6 +675,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario10() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[6] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
@@ -601,6 +698,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario11() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[7] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
@@ -620,6 +721,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario12() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[8] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
@@ -639,6 +744,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario13() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[9] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
@@ -674,6 +783,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario14() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[10] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
@@ -693,6 +806,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario15() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[11] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,
@@ -729,6 +846,10 @@ public class ThreadInfoTest extends Test
     }
 
     public void test_from_scenario16() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         initialValues[12] = null;
         ArrayType stackTraceArray = new ArrayType(1, stackTraceElementType);
         OpenType[] types = { SimpleType.LONG, SimpleType.STRING,

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadMXBeanImplTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadMXBeanImplTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadMXBeanImplTest.java Wed May 26 09:31:07 2010
@@ -37,6 +37,7 @@ import javax.management.MBeanOperationIn
 import javax.management.openmbean.CompositeData;
 
 import org.apache.harmony.lang.management.ThreadMXBeanImpl;
+import tests.support.Support_Excludes;
 
 
 

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/logging/make/run-test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/logging/make/run-test.xml?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/logging/make/run-test.xml (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/logging/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-selected-hdk-tests module="logging" jar="logging_tests.jar">
             <junit-elements>

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogManagerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogManagerTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogManagerTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/LogManagerTest.java Wed May 26 09:31:07 2010
@@ -38,6 +38,7 @@ import junit.framework.TestCase;
 
 import org.apache.harmony.logging.tests.java.util.logging.HandlerTest.NullOutputStream;
 import org.apache.harmony.logging.tests.java.util.logging.util.EnvironmentHelper;
+import tests.support.Support_Excludes;
 
 /**
  * 
@@ -109,6 +110,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testAddGetLogger() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		Logger log = new MockLogger(FOO, null);
 		Logger foo = mockManager.getLogger(FOO);
 		assertNull(foo);
@@ -142,6 +147,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testAddGetLogger_duplicateName() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// add logger with duplicate name has no effect
 		Logger foo = new MockLogger(FOO, null);
 		Logger foo2 = new MockLogger(FOO, null);
@@ -159,6 +168,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testAddGetLogger_Hierachy() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		Logger foo = new MockLogger("testAddGetLogger_Hierachy.foo", null);
 		Logger child = new MockLogger("testAddGetLogger_Hierachy.foo.child",
 				null);
@@ -202,6 +215,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testAddLoggerReverseOrder() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		Logger root = new MockLogger("testAddLoggerReverseOrder", null);
 		Logger foo = new MockLogger("testAddLoggerReverseOrder.foo", null);
 		Logger fooChild = new MockLogger("testAddLoggerReverseOrder.foo.child",
@@ -237,6 +254,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testAddSimiliarLogger() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		Logger root = new MockLogger("testAddSimiliarLogger", null);
 		Logger foo = new MockLogger("testAddSimiliarLogger.foo", null);
 		Logger similiarFoo = new MockLogger("testAddSimiliarLogger.fop", null);
@@ -271,6 +292,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testAddGetLogger_nameWithSpace() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		Logger foo = new MockLogger(FOO, null);
 		Logger fooBeforeSpace = new MockLogger(FOO+" ", null);
 		Logger fooAfterSpace = new MockLogger(" "+FOO, null);
@@ -287,6 +312,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testAddGetLogger_addRoot() throws IOException {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		Logger foo = new MockLogger(FOO, null);
 		Logger fooChild = new MockLogger(FOO+".child", null);
 		Logger other = new MockLogger("other", null);
@@ -317,6 +346,10 @@ public class LogManagerTest extends Test
 	 * @tests java.util.logging.LogManager#addLogger(Logger)
 	 */
 	public void test_addLoggerLLogger_Security() throws Exception {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// regression test for Harmony-1286
 		SecurityManager originalSecurityManager = System.getSecurityManager();
 		System.setSecurityManager(new SecurityManager());
@@ -330,6 +363,10 @@ public class LogManagerTest extends Test
 	}
 	
 	public void testDefaultLoggerProperties() throws Exception{
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// mock LogManager has no default logger
 		assertNull(mockManager.getLogger(""));
 		assertNull(mockManager.getLogger("global"));
@@ -355,6 +392,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testLoggingPermission() throws IOException {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		System.setSecurityManager(new MockSecurityManagerLogPermission());
 		mockManager.addLogger(new MockLogger("abc", null));
 		mockManager.getLogger("");
@@ -407,6 +448,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testMockGetProperty() throws Exception {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// mock manager doesn't read configuration until you call
 		// readConfiguration()
 		Logger root = new MockLogger("", null);
@@ -425,6 +470,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testGetProperty() throws SecurityException, IOException {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 //      //FIXME: move it to exec
         //        manager.readConfiguration(EnvironmentHelper.PropertiesToInputStream(props));
 //		Logger root = manager.getLogger("");
@@ -448,6 +497,10 @@ public class LogManagerTest extends Test
 
 	public void testReadConfiguration_null() throws SecurityException,
 			IOException {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		try {
 			manager.readConfiguration(null);
 			fail("should throw null pointer exception");
@@ -459,6 +512,10 @@ public class LogManagerTest extends Test
     public void testReadConfiguration() throws SecurityException,
             IOException {
 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         MockConfigLogManager lm = new MockConfigLogManager();
         assertFalse(lm.isCalled);
 
@@ -528,6 +585,10 @@ public class LogManagerTest extends Test
 	 * Class under test for void readConfiguration(InputStream)
 	 */
 	public void testReadConfigurationInputStream() throws IOException {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// mock LogManager
 		InputStream stream = EnvironmentHelper.PropertiesToInputStream(props);
 
@@ -560,6 +621,10 @@ public class LogManagerTest extends Test
 
 	public void testReadConfigurationInputStream_null()
 			throws SecurityException, IOException {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		try {
 			mockManager.readConfiguration(null);
 			fail("should throw null pointer exception");
@@ -569,6 +634,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testReadConfigurationInputStream_root() throws IOException {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		InputStream stream = EnvironmentHelper.PropertiesToInputStream(props);
 		manager.readConfiguration(EnvironmentHelper.PropertiesToInputStream(props));
 
@@ -602,6 +671,10 @@ public class LogManagerTest extends Test
 
     public void testReadConfigurationUpdatesRootLoggersHandlers()
             throws IOException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Properties properties = new Properties();
         LogManager.getLogManager().readConfiguration(
                 EnvironmentHelper.PropertiesToInputStream(properties));
@@ -618,6 +691,10 @@ public class LogManagerTest extends Test
 
     public void testReadConfigurationDoesNotUpdateOtherLoggers()
             throws IOException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Properties properties = new Properties();
         LogManager.getLogManager().readConfiguration(
                 EnvironmentHelper.PropertiesToInputStream(properties));
@@ -634,6 +711,10 @@ public class LogManagerTest extends Test
     }
 
 	public void testAddRemovePropertyChangeListener() throws Exception {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		MockPropertyChangeListener listener1 = new MockPropertyChangeListener();
 		MockPropertyChangeListener listener2 = new MockPropertyChangeListener();
 		// add same listener1 two times
@@ -680,6 +761,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testAddRemovePropertyChangeListener_null() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// seems nothing happened
         try{
             mockManager.addPropertyChangeListener(null);
@@ -690,6 +775,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testReset() throws SecurityException, IOException {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// mock LogManager
 		mockManager.readConfiguration(EnvironmentHelper.PropertiesToInputStream(props));
 		assertNotNull(mockManager.getProperty("handlers"));
@@ -724,6 +813,10 @@ public class LogManagerTest extends Test
 	}
 
 	public void testGlobalPropertyConfig() throws Exception {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
         PrintStream err = System.err;
         try {
             System.setErr(new PrintStream(new NullOutputStream()));
@@ -814,6 +907,10 @@ public class LogManagerTest extends Test
     }
 
     public void testValidConfigClass() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         String oldPropertyValue = System.getProperty(CONFIG_CLASS);
         try {
             System.setProperty(CONFIG_CLASS, this.getClass().getName()
@@ -837,6 +934,10 @@ public class LogManagerTest extends Test
     }
 
     public void testNotExistConfigFile() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         String oldPropertyValue = System.getProperty(CONFIG_FILE);
         System.setProperty(CONFIG_FILE, "not.exist.config.file");
         try {
@@ -856,6 +957,10 @@ public class LogManagerTest extends Test
 
     // regression for HARMONY-3075
     public void testGetLoggingMXBean() throws Exception{
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertNotNull(LogManager.getLoggingMXBean());
     }
     

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/luni/make/run-test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/luni/make/run-test.xml?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/luni/make/run-test.xml (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/luni/make/run-test.xml Wed May 26 09:31:07 2010
@@ -33,7 +33,7 @@
 
     <target name="test-module"
             depends="-test-module,-test-module-impl" />
-    <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="luni" jar="luni_tests_api.jar">
             <excludeorinclude>

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/PackageTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/PackageTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/PackageTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/PackageTest.java Wed May 26 09:31:07 2010
@@ -22,6 +22,7 @@ import java.net.URL;
 import java.net.URLClassLoader;
 
 import tests.support.resource.Support_Resources;
+import tests.support.Support_Excludes;
 
 public class PackageTest extends junit.framework.TestCase {
 
@@ -63,6 +64,10 @@ public class PackageTest extends junit.f
      */
     public void test_helper_Attributes() throws Exception {
 
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Package p = getTestPackage("hyts_all_attributes.jar", "p.C");
         assertEquals(
                 "Package getImplementationTitle returns a wrong string (1)",
@@ -172,6 +177,10 @@ public class PackageTest extends junit.f
      * @tests java.lang.Package#getName()
      */
     public void test_getName() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Package p = getTestPackage("hyts_pq.jar", "p.q.C");
         assertEquals("Package getName returns a wrong string", "p.q", p
                 .getName());
@@ -181,6 +190,10 @@ public class PackageTest extends junit.f
      * @tests java.lang.Package#getPackage(java.lang.String)
      */
     public void test_getPackageLjava_lang_String() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertSame("Package getPackage failed for java.lang", Package
                 .getPackage("java.lang"), Package.getPackage("java.lang"));
 
@@ -192,6 +205,10 @@ public class PackageTest extends junit.f
      * @tests java.lang.Package#getPackages()
      */
     public void test_getPackages() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Package[] pckgs = Package.getPackages();
         boolean found = false;
         for (int i = 0; i < pckgs.length; i++) {
@@ -207,6 +224,10 @@ public class PackageTest extends junit.f
      * @tests java.lang.Package#hashCode()
      */
     public void test_hashCode() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Package p1 = Package.getPackage("java.lang");
         if (p1 != null) {
             assertEquals(p1.hashCode(), "java.lang".hashCode());
@@ -217,6 +238,10 @@ public class PackageTest extends junit.f
      * @tests java.lang.Package#isCompatibleWith(java.lang.String)
      */
     public void test_isCompatibleWithLjava_lang_String() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Package p = getTestPackage("hyts_c.jar", "p.C");
 
         assertTrue("Package isCompatibleWith fails with lower version", p
@@ -267,6 +292,10 @@ public class PackageTest extends junit.f
      * @tests java.lang.Package#isSealed()
      */
     public void test_isSealed() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Package p = getTestPackage("hyts_pq.jar", "p.q.C");
         assertTrue("Package isSealed returns wrong boolean", p.isSealed());
     }
@@ -275,6 +304,10 @@ public class PackageTest extends junit.f
      * @tests java.lang.Package#isSealed(java.net.URL)
      */
     public void test_isSealedLjava_net_URL() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Package p = getTestPackage("hyts_c.jar", "p.C");
         assertFalse("Package isSealed returns wrong boolean (1)", p
                 .isSealed(new URL("file:/" + resPath + "/")));
@@ -286,12 +319,20 @@ public class PackageTest extends junit.f
      * @tests java.lang.Package#toString()
      */
     public void test_toString() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Package p = getTestPackage("hyts_c.jar", "p.C");
         assertTrue("Package toString returns wrong string", p.toString()
                 .length() > 0);
     }
     
     public void test_SealedPackage_forName() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Support_Resources.copyFile(resources, "Package", "hyts_c.jar");
         Support_Resources.copyFile(resources, "Package", "hyts_d.jar");
         Support_Resources.copyFile(resources, "Package", "hyts_d1.jar");

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/SecurityManager2Test.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/SecurityManager2Test.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/SecurityManager2Test.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/SecurityManager2Test.java Wed May 26 09:31:07 2010
@@ -20,10 +20,15 @@ import java.security.Permission;
 
 import junit.framework.TestCase;
 import tests.support.Support_Exec;
+import tests.support.Support_Excludes;
 
 public class SecurityManager2Test extends TestCase {
 
     public void test_SecurityManager_via_SystemProperty() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         String[] arg = new String[] {
                 "-Djava.security.manager=" + MySecurityManager.class.getName(),
                 TestForSystemProperty.class.getName() };

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ThreadTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ThreadTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ThreadTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/ThreadTest.java Wed May 26 09:31:07 2010
@@ -20,6 +20,7 @@ package org.apache.harmony.luni.tests.ja
 import java.lang.Thread.UncaughtExceptionHandler;
 import java.security.Permission;
 import java.util.Map;
+import tests.support.Support_Excludes;
 
 public class ThreadTest extends junit.framework.TestCase {
 
@@ -126,6 +127,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#Thread()
 	 */
 	public void test_Constructor() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method java.lang.Thread()
 
 		Thread t;
@@ -161,6 +166,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#Thread(java.lang.Runnable)
 	 */
 	public void test_ConstructorLjava_lang_Runnable() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
             // Test for method java.lang.Thread(java.lang.Runnable)
             ct = new Thread(new SimpleThread(10));
             ct.start();
@@ -170,6 +179,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#Thread(java.lang.Runnable, java.lang.String)
 	 */
 	public void test_ConstructorLjava_lang_RunnableLjava_lang_String() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method java.lang.Thread(java.lang.Runnable,
 		// java.lang.String)
 		Thread st1 = new Thread(new SimpleThread(1), "SimpleThread1");
@@ -182,6 +195,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#Thread(java.lang.String)
 	 */
 	public void test_ConstructorLjava_lang_String() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method java.lang.Thread(java.lang.String)
 		Thread t = new Thread("Testing");
 		assertEquals("Created tread with incorrect name", 
@@ -193,6 +210,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#Thread(java.lang.ThreadGroup, java.lang.Runnable)
 	 */
 	public void test_ConstructorLjava_lang_ThreadGroupLjava_lang_Runnable() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method java.lang.Thread(java.lang.ThreadGroup,
 		// java.lang.Runnable)
 		ThreadGroup tg = new ThreadGroup("Test Group1");
@@ -211,6 +232,10 @@ public class ThreadTest extends junit.fr
 	 *        java.lang.String)
 	 */
 	public void test_ConstructorLjava_lang_ThreadGroupLjava_lang_RunnableLjava_lang_String() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method java.lang.Thread(java.lang.ThreadGroup,
 		// java.lang.Runnable, java.lang.String)
 		ThreadGroup tg = new ThreadGroup("Test Group2");
@@ -245,6 +270,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#Thread(java.lang.ThreadGroup, java.lang.String)
 	 */
 	public void test_ConstructorLjava_lang_ThreadGroupLjava_lang_String() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method java.lang.Thread(java.lang.ThreadGroup,
 		// java.lang.String)
 		st = new Thread(new SimpleThread(1), "SimpleThread4");
@@ -257,6 +286,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#activeCount()
 	 */
 	public void test_activeCount() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method int java.lang.Thread.activeCount()
 		Thread t = new Thread(new SimpleThread(10));
 		int active = 0;
@@ -275,6 +308,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#checkAccess()
 	 */
 	public void test_checkAccess() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method void java.lang.Thread.checkAccess()
 		ThreadGroup tg = new ThreadGroup("Test Group3");
 		try {
@@ -297,6 +334,10 @@ public class ThreadTest extends junit.fr
      */
     @SuppressWarnings("deprecation")
     public void test_countStackFrames() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         /*
          * Thread.countStackFrames() is unpredictable, so we just test that it
          * doesn't throw an exception.
@@ -308,6 +349,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#currentThread()
 	 */
 	public void test_currentThread() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 	    assertNotNull(Thread.currentThread());
 	}
 
@@ -316,6 +361,10 @@ public class ThreadTest extends junit.fr
 	 */
 	@SuppressWarnings("deprecation")
     public void test_destroy() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 	    try {
 	        new Thread().destroy();
             // FIXME uncomment when IBM VME is updated
@@ -328,6 +377,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#enumerate(java.lang.Thread[])
 	 */
     public void test_enumerate$Ljava_lang_Thread() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         // Test for method int java.lang.Thread.enumerate(java.lang.Thread [])
         // The test has been updated according to HARMONY-1974 JIRA issue.
 
@@ -413,6 +466,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#getContextClassLoader()
 	 */
 	public void test_getContextClassLoader() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method java.lang.ClassLoader
 		// java.lang.Thread.getContextClassLoader()
 		Thread t = new Thread();
@@ -427,6 +484,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#getName()
 	 */
 	public void test_getName() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method java.lang.String java.lang.Thread.getName()
 		st = new Thread(new SimpleThread(1), "SimpleThread6");
 		assertEquals("Returned incorrect thread name", 
@@ -438,6 +499,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#getPriority()
 	 */
 	public void test_getPriority() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method int java.lang.Thread.getPriority()
 		st = new Thread(new SimpleThread(1));
 		st.setPriority(Thread.MAX_PRIORITY);
@@ -450,6 +515,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#getThreadGroup()
 	 */
 	public void test_getThreadGroup() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method java.lang.ThreadGroup
 		// java.lang.Thread.getThreadGroup()
 		ThreadGroup tg = new ThreadGroup("Test Group4");
@@ -491,6 +560,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#interrupt()
 	 */
 	public void test_interrupt() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method void java.lang.Thread.interrupt()
 		final Object lock = new Object();
 		class ChildThread1 extends Thread {
@@ -552,6 +625,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#interrupted()
 	 */
 	public void test_interrupted() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
         assertFalse("Interrupted returned true for non-interrupted thread", Thread
                 .interrupted());
         Thread.currentThread().interrupt();
@@ -563,6 +640,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#isAlive()
 	 */
 	public void test_isAlive() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method boolean java.lang.Thread.isAlive()
 		SimpleThread simple;
 		st = new Thread(simple = new SimpleThread(500));
@@ -587,6 +668,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#isDaemon()
 	 */
 	public void test_isDaemon() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method boolean java.lang.Thread.isDaemon()
 		st = new Thread(new SimpleThread(1), "SimpleThread10");
 		assertTrue("Non-Daemon thread returned true", !st.isDaemon());
@@ -599,6 +684,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#isInterrupted()
 	 */
 	public void test_isInterrupted() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method boolean java.lang.Thread.isInterrupted()
 		class SpinThread implements Runnable {
 			public volatile boolean done = false;
@@ -632,6 +721,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#join()
 	 */
 	public void test_join() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method void java.lang.Thread.join()
 		SimpleThread simple;
 		try {
@@ -663,6 +756,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#join(long)
 	 */
 	public void test_joinJ() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method void java.lang.Thread.join(long)
 		SimpleThread simple;
 		try {
@@ -729,6 +826,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#join(long, int)
 	 */
 	public void test_joinJI() throws Exception {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method void java.lang.Thread.join(long, int)
 		SimpleThread simple;
                 st = new Thread(simple = new SimpleThread(1000), "Squawk1");
@@ -783,6 +884,10 @@ public class ThreadTest extends junit.fr
 	 */
 	@SuppressWarnings("deprecation")
     public void test_resume() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 		// Test for method void java.lang.Thread.resume()
 		int orgval;
 		ResSupThread t;
@@ -814,6 +919,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#run()
 	 */
 	public void test_run() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method void java.lang.Thread.run()
 		class RunThread implements Runnable {
 			boolean didThreadRun = false;
@@ -843,6 +952,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#setDaemon(boolean)
 	 */
 	public void test_setDaemonZ() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method void java.lang.Thread.setDaemon(boolean)
 		st = new Thread(new SimpleThread(1), "SimpleThread14");
 		st.setDaemon(true);
@@ -854,6 +967,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#setName(java.lang.String)
 	 */
 	public void test_setNameLjava_lang_String() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method void java.lang.Thread.setName(java.lang.String)
 		st = new Thread(new SimpleThread(1), "SimpleThread15");
 		st.setName("Bogus Name");
@@ -873,6 +990,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#setPriority(int)
 	 */
 	public void test_setPriorityI() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method void java.lang.Thread.setPriority(int)
 		st = new Thread(new SimpleThread(1));
 		st.setPriority(Thread.MAX_PRIORITY);
@@ -885,6 +1006,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#sleep(long)
 	 */
 	public void test_sleepJ() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method void java.lang.Thread.sleep(long)
 
 		// TODO : Test needs enhancing.
@@ -903,6 +1028,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#sleep(long, int)
 	 */
 	public void test_sleepJI() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method void java.lang.Thread.sleep(long, int)
 
 		// TODO : Test needs revisiting.
@@ -923,6 +1052,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#start()
 	 */
 	public void test_start() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method void java.lang.Thread.start()
 		try {
 			ResSupThread t = new ResSupThread(Thread.currentThread());
@@ -947,6 +1080,10 @@ public class ThreadTest extends junit.fr
 	 */
 	@SuppressWarnings("deprecation")
     public void test_stop() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 		// Test for method void java.lang.Thread.stop()
 		try {
 			Runnable r = new ResSupThread(null);
@@ -975,6 +1112,10 @@ public class ThreadTest extends junit.fr
 	 */
 	@SuppressWarnings("deprecation")
     public void test_stop_subtest0() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 		Thread t = new Thread("t");
 		class MySecurityManager extends SecurityManager {
 			public boolean intest = false;
@@ -1027,6 +1168,10 @@ public class ThreadTest extends junit.fr
 	 */
 	@SuppressWarnings("deprecation")
     public void test_stopLjava_lang_Throwable_subtest0() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 		Thread t = new Thread("t");
 		class MySecurityManager extends SecurityManager {
 			public boolean intest = false;
@@ -1084,6 +1229,10 @@ public class ThreadTest extends junit.fr
 	 */
 	@SuppressWarnings("deprecation")
     public void test_stopLjava_lang_Throwable() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 		// Test for method void java.lang.Thread.stop(java.lang.Throwable)
 		ResSupThread t = new ResSupThread(Thread.currentThread());
 		synchronized (t) {
@@ -1112,6 +1261,10 @@ public class ThreadTest extends junit.fr
 	 */
 	@SuppressWarnings("deprecation")
     public void test_suspend() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
 		// Test for method void java.lang.Thread.suspend()
 		int orgval;
 		ResSupThread t = new ResSupThread(Thread.currentThread());
@@ -1164,6 +1317,10 @@ public class ThreadTest extends junit.fr
 	 * @tests java.lang.Thread#toString()
 	 */
 	public void test_toString() {
+	    if (Support_Excludes.isExcluded()) {
+	        return;
+	    }
+
 		// Test for method java.lang.String java.lang.Thread.toString()
 		ThreadGroup tg = new ThreadGroup("Test Group5");
 		st = new Thread(tg, new SimpleThread(1), "SimpleThread17");
@@ -1183,6 +1340,10 @@ public class ThreadTest extends junit.fr
      * @tests java.lang.Thread#getAllStackTraces()
      */
     public void test_getAllStackTraces() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Map<Thread, StackTraceElement[]> stMap = Thread.getAllStackTraces();
         assertNotNull(stMap);
         //TODO add security-based tests
@@ -1193,6 +1354,10 @@ public class ThreadTest extends junit.fr
      * @tests java.lang.Thread#setDefaultUncaughtExceptionHandler
      */
     public void test_get_setDefaultUncaughtExceptionHandler() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         class Handler implements UncaughtExceptionHandler {
             public void uncaughtException(Thread thread, Throwable ex) {
             }
@@ -1211,6 +1376,10 @@ public class ThreadTest extends junit.fr
      * @tests java.lang.Thread#getStackTrace()
      */
     public void test_getStackTrace() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
         
         assertNotNull(stackTrace);
@@ -1234,6 +1403,10 @@ public class ThreadTest extends junit.fr
      * @tests java.lang.Thread#getState()
      */
     public void test_getState() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         Thread.State state = Thread.currentThread().getState();
         assertNotNull(state);
         assertEquals(Thread.State.RUNNABLE, state);
@@ -1245,6 +1418,10 @@ public class ThreadTest extends junit.fr
      * @tests java.lang.Thread#setUncaughtExceptionHandler
      */
     public void test_get_setUncaughtExceptionHandler() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         class Handler implements UncaughtExceptionHandler {
             public void uncaughtException(Thread thread, Throwable ex) {
             }
@@ -1263,6 +1440,10 @@ public class ThreadTest extends junit.fr
      * @tests java.lang.Thread#getId()
      */
     public void test_getId() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         assertTrue("current thread's ID is not positive", Thread.currentThread().getId() > 0);
         
         //check all the current threads for positive IDs

Modified: harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ExcludedProxyTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ExcludedProxyTest.java?rev=948377&r1=948376&r2=948377&view=diff
==============================================================================
--- harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ExcludedProxyTest.java (original)
+++ harmony/enhanced/java/branches/mrh/classlib/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ExcludedProxyTest.java Wed May 26 09:31:07 2010
@@ -30,6 +30,7 @@ import java.net.URLConnection;
 import tests.support.Support_Configuration;
 import tests.support.resource.Support_Resources;
 import junit.framework.TestCase;
+import tests.support.Support_Excludes;
 
 /*
  * This test is designed for collecting all the testcases which needs a proxy
@@ -43,6 +44,10 @@ public class ExcludedProxyTest extends T
      * @tests java.net.HttpURLConnection#usingProxy()
      */
     public void test_usingProxy() throws Exception {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             System.setProperty("http.proxyHost",
                     Support_Configuration.ProxyServerTestHost);
@@ -117,6 +122,10 @@ public class ExcludedProxyTest extends T
      * @tests java.net.SocketImpl#SocketImpl()
      */
     public void test_Constructor() {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         try {
             try {
                 System.setProperty("socksProxyHost",
@@ -157,6 +166,10 @@ public class ExcludedProxyTest extends T
      * @tests java.net.URL#openConnection(Proxy)
      */
     public void test_openConnectionLjava_net_Proxy() throws IOException {
+        if (Support_Excludes.isExcluded()) {
+            return;
+        }
+
         SocketAddress addr1 = new InetSocketAddress(
                 Support_Configuration.ProxyServerTestHost, 808);
         SocketAddress addr2 = new InetSocketAddress(



Mime
View raw message