harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r496937 [2/2] - in /harmony/enhanced/classlib/trunk/modules/lang-management: ./ META-INF/ make/ src/main/java/com/ src/main/java/java/lang/management/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/harmony/ src/main/j...
Date Wed, 17 Jan 2007 05:01:49 GMT
Added: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryUsage2Test.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryUsage2Test.java?view=auto&rev=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryUsage2Test.java
(added)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryUsage2Test.java
Tue Jan 16 21:01:46 2007
@@ -0,0 +1,177 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ * 
+ */
+
+package org.apache.harmony.lang.management.tests.java.lang.management;
+
+import java.lang.management.MemoryUsage;
+
+import javax.management.openmbean.CompositeData;
+import javax.management.openmbean.CompositeDataSupport;
+import javax.management.openmbean.CompositeType;
+import javax.management.openmbean.OpenDataException;
+import javax.management.openmbean.OpenType;
+import javax.management.openmbean.SimpleType;
+
+import junit.framework.TestCase;
+
+public class MemoryUsage2Test extends TestCase {
+
+    private MemoryUsage mu;
+
+    private static final long GOOD_MU_INIT_VAL = 1024;
+
+    private static final long GOOD_MU_USED_VAL = 2 * 1024;
+
+    private static final long GOOD_MU_COMMITTED_VAL = 5 * 1024;
+
+    private static final long GOOD_MU_MAX_VAL = 10 * 1024;
+
+    @Override
+    protected void setUp() throws Exception {
+        super.setUp();
+        mu = new MemoryUsage(GOOD_MU_INIT_VAL, GOOD_MU_USED_VAL,
+                GOOD_MU_COMMITTED_VAL, GOOD_MU_MAX_VAL);
+    }
+
+    /*
+     * Test method for 'java.lang.management.MemoryUsage.MemoryUsage(long, long,
+     * long, long)'
+     */
+    public void testMemoryUsage() throws Exception {
+        // Expect IllegalArgumentException if the value of init or max is
+        // negative but not -1
+        MemoryUsage memUsage = new MemoryUsage(-1, GOOD_MU_USED_VAL,
+                GOOD_MU_COMMITTED_VAL, -1);
+
+        try {
+            memUsage = new MemoryUsage(-2, GOOD_MU_USED_VAL,
+                    GOOD_MU_COMMITTED_VAL, -1);
+            fail("should have thrown IllegalArgumentException");
+        } catch (IllegalArgumentException ignore) {
+        }
+
+        try {
+            memUsage = new MemoryUsage(GOOD_MU_INIT_VAL, GOOD_MU_USED_VAL,
+                    GOOD_MU_COMMITTED_VAL, -200);
+            fail("should have thrown IllegalArgumentException");
+        } catch (IllegalArgumentException ignore) {
+        }
+
+        // Expect IllegalArgumentException if the value of used or committed
+        // is negative
+        try {
+            memUsage = new MemoryUsage(GOOD_MU_INIT_VAL, -1,
+                    GOOD_MU_COMMITTED_VAL, GOOD_MU_MAX_VAL);
+            fail("should have thrown IllegalArgumentException");
+        } catch (IllegalArgumentException ignore) {
+        }
+
+        try {
+            memUsage = new MemoryUsage(GOOD_MU_INIT_VAL, GOOD_MU_USED_VAL,
+                    -399, GOOD_MU_MAX_VAL);
+            fail("should have thrown IllegalArgumentException");
+        } catch (IllegalArgumentException ignore) {
+        }
+
+        // Expect IllegalArgumentException if the value of used is greater
+        // than the value of committed
+        try {
+            memUsage = new MemoryUsage(GOOD_MU_INIT_VAL, 3 * GOOD_MU_USED_VAL,
+                    GOOD_MU_COMMITTED_VAL, GOOD_MU_MAX_VAL);
+            fail("should have thrown IllegalArgumentException");
+        } catch (IllegalArgumentException ignore) {
+        }
+
+        // Expect IllegalArgumentException if the value of committed is greater
+        // than the value of max...
+        try {
+            memUsage = new MemoryUsage(GOOD_MU_INIT_VAL, GOOD_MU_USED_VAL,
+                    4 * GOOD_MU_COMMITTED_VAL, GOOD_MU_MAX_VAL);
+            fail("should have thrown IllegalArgumentException");
+        } catch (IllegalArgumentException ignore) {
+        }
+
+        // ... but only if the max has been defined
+        memUsage = new MemoryUsage(GOOD_MU_INIT_VAL, GOOD_MU_USED_VAL,
+                4 * GOOD_MU_COMMITTED_VAL, -1);
+    }
+
+    /*
+     * Test method for 'java.lang.management.MemoryUsage.getCommitted()'
+     */
+    public void testGetCommitted() {
+        assertEquals(GOOD_MU_COMMITTED_VAL, mu.getCommitted());
+    }
+
+    /*
+     * Test method for 'java.lang.management.MemoryUsage.getInit()'
+     */
+    public void testGetInit() {
+        assertEquals(GOOD_MU_INIT_VAL, mu.getInit());
+    }
+
+    /*
+     * Test method for 'java.lang.management.MemoryUsage.getMax()'
+     */
+    public void testGetMax() {
+        assertEquals(GOOD_MU_MAX_VAL, mu.getMax());
+    }
+
+    /*
+     * Test method for 'java.lang.management.MemoryUsage.getUsed()'
+     */
+    public void testGetUsed() {
+        assertEquals(GOOD_MU_USED_VAL, mu.getUsed());
+    }
+
+    /*
+     * Test method for 'java.lang.management.MemoryUsage.from(CompositeData)'
+     */
+    public void testFrom() throws Exception {
+        MemoryUsage memUsage = MemoryUsage.from(createGoodCompositeData());
+        assertNotNull(memUsage);
+        assertEquals(GOOD_MU_INIT_VAL, memUsage.getInit());
+        assertEquals(GOOD_MU_USED_VAL, memUsage.getUsed());
+        assertEquals(GOOD_MU_COMMITTED_VAL, memUsage.getCommitted());
+        assertEquals(GOOD_MU_MAX_VAL, memUsage.getMax());
+    }
+
+    private static CompositeData createGoodCompositeData() throws OpenDataException {
+        String[] names = { "init", "used", "committed", "max" };
+        Object[] values = {
+        /* init */new Long(GOOD_MU_INIT_VAL),
+        /* used */new Long(GOOD_MU_USED_VAL),
+        /* committed */new Long(GOOD_MU_COMMITTED_VAL),
+        /* max */new Long(GOOD_MU_MAX_VAL) };
+        CompositeType cType = createGoodMemoryUsageCompositeType();
+            return new CompositeDataSupport(cType, names, values);
+    }
+
+    private static CompositeType createGoodMemoryUsageCompositeType() throws OpenDataException
{
+            String[] typeNames = { "init", "used", "committed", "max" };
+            String[] typeDescs = { "init", "used", "committed", "max" };
+            OpenType[] typeTypes = { SimpleType.LONG, SimpleType.LONG,
+                    SimpleType.LONG, SimpleType.LONG };
+            return new CompositeType(MemoryUsage.class.getName(),
+                    MemoryUsage.class.getName(), typeNames, typeDescs,
+                    typeTypes);
+    }
+
+}

Propchange: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryUsage2Test.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryUsageTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryUsageTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryUsageTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/MemoryUsageTest.java
Tue Jan 16 21:01:46 2007
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.apache.harmony.langmanagement.tests.java.lang.management;
+package org.apache.harmony.lang.management.tests.java.lang.management;
 
 import java.lang.management.MemoryUsage;
 

Copied: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/OperatingSystemMXBeanTest.java
(from r496931, harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/tests/java/lang/management/OperatingSystemMXBeanTest.java)
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/OperatingSystemMXBeanTest.java?view=diff&rev=496937&p1=harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/tests/java/lang/management/OperatingSystemMXBeanTest.java&r1=496931&p2=harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/OperatingSystemMXBeanTest.java&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/tests/java/lang/management/OperatingSystemMXBeanTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/OperatingSystemMXBeanTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package tests.java.lang.management;
+package org.apache.harmony.lang.management.tests.java.lang.management;
 
 import java.lang.management.ManagementFactory;
 import java.lang.management.OperatingSystemMXBean;

Copied: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/RuntimeMXBeanTest.java
(from r496931, harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/tests/java/lang/management/RuntimeMXBeanTest.java)
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/RuntimeMXBeanTest.java?view=diff&rev=496937&p1=harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/tests/java/lang/management/RuntimeMXBeanTest.java&r1=496931&p2=harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/RuntimeMXBeanTest.java&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/tests/java/lang/management/RuntimeMXBeanTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/RuntimeMXBeanTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package tests.java.lang.management;
+package org.apache.harmony.lang.management.tests.java.lang.management;
 
 import java.lang.management.ManagementFactory;
 import java.lang.management.RuntimeMXBean;

Copied: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/ThreadMXBeanTest.java
(from r496931, harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/tests/java/lang/management/ThreadMXBeanTest.java)
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/ThreadMXBeanTest.java?view=diff&rev=496937&p1=harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/tests/java/lang/management/ThreadMXBeanTest.java&r1=496931&p2=harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/ThreadMXBeanTest.java&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/tests/java/lang/management/ThreadMXBeanTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/api/java/org/apache/harmony/lang/management/tests/java/lang/management/ThreadMXBeanTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package tests.java.lang.management;
+package org.apache.harmony.lang.management.tests.java.lang.management;
 
 import java.lang.management.ManagementFactory;
 import java.lang.management.ThreadInfo;

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/AttributeData.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/AttributeData.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/AttributeData.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/AttributeData.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 /**
  * Helper class

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ClassLoadingMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ClassLoadingMXBeanImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ClassLoadingMXBeanImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ClassLoadingMXBeanImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.lang.management.ManagementFactory;
 import java.util.Hashtable;
@@ -34,7 +34,8 @@
 import javax.management.MBeanNotificationInfo;
 import javax.management.MBeanOperationInfo;
 
-import com.ibm.lang.management.ClassLoadingMXBeanImpl;
+import org.apache.harmony.lang.management.ClassLoadingMXBeanImpl;
+
 
 public class ClassLoadingMXBeanImplTest extends
         SingleInstanceDynamicMXBeanImplTest {

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/CompilationMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/CompilationMXBeanImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/CompilationMXBeanImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/CompilationMXBeanImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.lang.management.ManagementFactory;
 import java.util.Hashtable;
@@ -34,7 +34,8 @@
 import javax.management.MBeanNotificationInfo;
 import javax.management.MBeanOperationInfo;
 
-import com.ibm.lang.management.CompilationMXBeanImpl;
+import org.apache.harmony.lang.management.CompilationMXBeanImpl;
+
 
 public class CompilationMXBeanImplTest extends
         SingleInstanceDynamicMXBeanImplTest {

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/DynamicMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/DynamicMXBeanImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/DynamicMXBeanImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/DynamicMXBeanImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.util.Map;
 

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/GarbageCollectorMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/GarbageCollectorMXBeanImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/GarbageCollectorMXBeanImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/GarbageCollectorMXBeanImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.lang.management.GarbageCollectorMXBean;
 import java.lang.management.ManagementFactory;
@@ -36,8 +36,9 @@
 import javax.management.MBeanNotificationInfo;
 import javax.management.MBeanOperationInfo;
 
-import com.ibm.lang.management.DynamicMXBeanImpl;
-import com.ibm.lang.management.GarbageCollectorMXBeanImpl;
+import org.apache.harmony.lang.management.DynamicMXBeanImpl;
+import org.apache.harmony.lang.management.GarbageCollectorMXBeanImpl;
+
 
 public class GarbageCollectorMXBeanImplTest extends
         MultiInstanceDynamicMXBeanImplTest {

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/LoggingMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/LoggingMXBeanImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/LoggingMXBeanImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/LoggingMXBeanImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.util.Enumeration;
 import java.util.Hashtable;
@@ -37,8 +37,9 @@
 import javax.management.MBeanOperationInfo;
 import javax.management.ReflectionException;
 
-import com.ibm.lang.management.LoggingMXBeanImpl;
-import com.ibm.lang.management.ManagementUtils;
+import org.apache.harmony.lang.management.LoggingMXBeanImpl;
+import org.apache.harmony.lang.management.ManagementUtils;
+
 
 public class LoggingMXBeanImplTest extends SingleInstanceDynamicMXBeanImplTest {
 

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryMXBeanImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryMXBeanImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryMXBeanImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.lang.management.ManagementFactory;
 import java.lang.management.MemoryNotificationInfo;
@@ -42,8 +42,9 @@
 import javax.management.ObjectName;
 import javax.management.openmbean.CompositeData;
 
-import com.ibm.lang.management.ManagementUtils;
-import com.ibm.lang.management.MemoryMXBeanImpl;
+import org.apache.harmony.lang.management.ManagementUtils;
+import org.apache.harmony.lang.management.MemoryMXBeanImpl;
+
 
 public class MemoryMXBeanImplTest extends SingleInstanceDynamicMXBeanImplTest {
 

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryManagerImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryManagerImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryManagerImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryManagerImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.lang.management.ManagementFactory;
 import java.lang.management.MemoryManagerMXBean;
@@ -36,9 +36,10 @@
 import javax.management.MBeanNotificationInfo;
 import javax.management.MBeanOperationInfo;
 
-import com.ibm.lang.management.DynamicMXBeanImpl;
-import com.ibm.lang.management.GarbageCollectorMXBeanImpl;
-import com.ibm.lang.management.MemoryManagerMXBeanImpl;
+import org.apache.harmony.lang.management.DynamicMXBeanImpl;
+import org.apache.harmony.lang.management.GarbageCollectorMXBeanImpl;
+import org.apache.harmony.lang.management.MemoryManagerMXBeanImpl;
+
 
 public class MemoryManagerImplTest extends MultiInstanceDynamicMXBeanImplTest {
 

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryPoolMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryPoolMXBeanImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryPoolMXBeanImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MemoryPoolMXBeanImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.lang.management.ManagementFactory;
 import java.lang.management.MemoryPoolMXBean;
@@ -40,8 +40,9 @@
 import javax.management.ReflectionException;
 import javax.management.openmbean.CompositeData;
 
-import com.ibm.lang.management.DynamicMXBeanImpl;
-import com.ibm.lang.management.MemoryPoolMXBeanImpl;
+import org.apache.harmony.lang.management.DynamicMXBeanImpl;
+import org.apache.harmony.lang.management.MemoryPoolMXBeanImpl;
+
 
 public class MemoryPoolMXBeanImplTest extends
         MultiInstanceDynamicMXBeanImplTest {

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MultiInstanceDynamicMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MultiInstanceDynamicMXBeanImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MultiInstanceDynamicMXBeanImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/MultiInstanceDynamicMXBeanImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,14 +18,15 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.util.List;
 
 import javax.management.AttributeList;
 import javax.management.ReflectionException;
 
-import com.ibm.lang.management.DynamicMXBeanImpl;
+import org.apache.harmony.lang.management.DynamicMXBeanImpl;
+
 
 public abstract class MultiInstanceDynamicMXBeanImplTest extends
         DynamicMXBeanImplTest {

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/OperatingSystemMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/OperatingSystemMXBeanImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/OperatingSystemMXBeanImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/OperatingSystemMXBeanImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.lang.management.ManagementFactory;
 import java.util.Hashtable;
@@ -34,7 +34,8 @@
 import javax.management.MBeanOperationInfo;
 import javax.management.NotificationEmitter;
 
-import com.ibm.lang.management.OperatingSystemMXBeanImpl;
+import org.apache.harmony.lang.management.OperatingSystemMXBeanImpl;
+
 
 public class OperatingSystemMXBeanImplTest extends
         SingleInstanceDynamicMXBeanImplTest {

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/RuntimeMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/RuntimeMXBeanImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/RuntimeMXBeanImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/RuntimeMXBeanImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.lang.management.ManagementFactory;
 import java.util.ArrayList;
@@ -39,7 +39,8 @@
 import javax.management.MBeanOperationInfo;
 import javax.management.openmbean.TabularData;
 
-import com.ibm.lang.management.RuntimeMXBeanImpl;
+import org.apache.harmony.lang.management.RuntimeMXBeanImpl;
+
 
 public class RuntimeMXBeanImplTest extends SingleInstanceDynamicMXBeanImplTest {
 

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/SimpleTestListener.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/SimpleTestListener.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/SimpleTestListener.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/SimpleTestListener.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import javax.management.Notification;
 import javax.management.NotificationListener;

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/SingleInstanceDynamicMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/SingleInstanceDynamicMXBeanImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/SingleInstanceDynamicMXBeanImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/SingleInstanceDynamicMXBeanImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,12 +18,13 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import javax.management.AttributeList;
 import javax.management.ReflectionException;
 
-import com.ibm.lang.management.DynamicMXBeanImpl;
+import org.apache.harmony.lang.management.DynamicMXBeanImpl;
+
 
 public abstract class SingleInstanceDynamicMXBeanImplTest extends
         DynamicMXBeanImplTest {

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadInfoTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadInfoTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadInfoTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadInfoTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.lang.management.ThreadInfo;
 

Modified: harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadMXBeanImplTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadMXBeanImplTest.java?view=diff&rev=496937&r1=496931&r2=496937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadMXBeanImplTest.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/lang-management/src/test/impl/java/org/apache/harmony/lang/management/ThreadMXBeanImplTest.java
Tue Jan 16 21:01:46 2007
@@ -18,7 +18,7 @@
  * 
  */
 
-package com.ibm.lang.management;
+package org.apache.harmony.lang.management;
 
 import java.lang.management.ManagementFactory;
 import java.util.Hashtable;
@@ -36,8 +36,9 @@
 import javax.management.MBeanOperationInfo;
 import javax.management.openmbean.CompositeData;
 
+import org.apache.harmony.lang.management.ThreadMXBeanImpl;
+
 
-import com.ibm.lang.management.ThreadMXBeanImpl;
 
 public class ThreadMXBeanImplTest extends SingleInstanceDynamicMXBeanImplTest {
 



Mime
View raw message