harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r446488 [3/3] - in /incubator/harmony/enhanced/classlib/trunk/modules/instrument: ./ .settings/ META-INF/ make/ src/main/java/java/lang/instrument/ src/main/java/org/apache/harmony/instrument/internal/ src/main/native/instrument/shared/ src...
Date Fri, 15 Sep 2006 03:00:02 GMT
Modified: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/InstrumentTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/InstrumentTest.java?view=diff&rev=446488&r1=446487&r2=446488
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/InstrumentTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/InstrumentTest.java
Thu Sep 14 20:00:01 2006
@@ -1,206 +1,206 @@
-/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable
- * 
- * Licensed 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.tests.java.lang.instrument;
-
-import junit.framework.AssertionFailedError;
-import junit.framework.TestCase;
-import tests.support.Support_Exec;
-
-public class InstrumentTest extends TestCase {
-
-    /**
-     * @tests try to add a null Transformer
-     */
-    public void test_addTransformer_null() throws Exception {
-        String[] arg = new String[2];
-        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_addTransformer_null.jar";
-        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
-        String[] path = new String[1];
-        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_addTransformer_null.jar";
-        String result = Support_Exec.execJava(arg, path, true);
-        assertEquals("", result);
-    }
-
-    /**
-     * @tests try to remove a null Transformer
-     */
-    public void test_removeTransformer_null() throws Exception {
-        String[] arg = new String[2];
-        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_removeTransformer_null.jar";
-        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
-        String[] path = new String[1];
-        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_removeTransformer_null.jar";
-        String result = Support_Exec.execJava(arg, path, true);
-        assertEquals("", result);
-    }
-
-    /**
-     * @tests try to remove a non-exists Transformer
-     */
-    public void test_removeTransformer_notExists() throws Exception {
-        String[] arg = new String[2];
-        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_removeTransformer_notExists.jar";
-        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
-        String[] path = new String[1];
-        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_removeTransformer_notExists.jar";
-        String result = Support_Exec.execJava(arg, path, true);
-        assertEquals("", result);
-    }
-
-    /**
-     * @tests try to load a class that does not exist
-     */
-    public void test_loadClass_null() throws Exception {
-        String[] arg = new String[2];
-        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/loading_class.jar";
-        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
-        String[] path = new String[1];
-        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/loading_class.jar";
-        try {
-            Support_Exec.execJava(arg, path, true);
-            fail("Should fail here!");
-        } catch (AssertionFailedError e) {
-            // class loader changes, can not load classes
-            assertTrue(-1 != e.getMessage().indexOf("NoClassDefFoundError"));
-        }
-    }
-
-    /**
-     * @tests try to use a new ClassLoader
-     */
-    public void test_new_classLoader_Exists() throws Exception {
-        String[] arg = new String[2];
-        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/new_classloader.jar";
-        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
-        String[] path = new String[1];
-        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/new_classloader.jar";
-        String result = Support_Exec.execJava(arg, path, true);
-        assertNotNull(result);
-    }
-
-    /**
-     * @tests test if attribute of "Premain-Class" is null
-     */
-    public void test_Property_Premain_null() throws Exception {
-        String[] arg = new String[2];
-        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Property_Premain_null.jar";
-        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
-        String[] path = new String[1];
-        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Property_Premain_null.jar";
-        try {
-            Support_Exec.execJava(arg, path, true);
-            fail("Should fail here!");
-        } catch (AssertionFailedError e) {
-            // expected
-            assertTrue(-1 != e.getMessage().indexOf("Failed")
-                    || -1 != e.getMessage().indexOf("error"));
-            assertTrue(-1 != e.getMessage().indexOf("Premain-Class"));
-            assertTrue(-1 != e.getMessage().indexOf("attribute"));
-        }
-    }
-
-    /**
-     * @tests test if attributes of "Can-Redefine-Classes" and "Boot-Class-Path"
-     *        is null
-     */
-    public void test_Property_other_null() throws Exception {
-        String[] arg = new String[2];
-        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Property_other_null.jar";
-        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
-        String[] path = new String[1];
-        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Property_other_null.jar";
-        String result = Support_Exec.execJava(arg, path, true);
-        assertNotNull(result);
-    }
-
-    /**
-     * @tests test if the attributes is case-sensitive
-     */
-    public void test_Properity_case_sensitive() throws Exception {
-        String[] arg = new String[2];
-        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Properity_case_sensitive.jar";
-        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
-        String[] path = new String[1];
-        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Properity_case_sensitive.jar";
-        String result = Support_Exec.execJava(arg, path, true);
-        assertEquals("", result);
-    }
-
-    /**
-     * @tests test if the jar file is bad
-     */
-    public void test_BadFormatJar() throws Exception {
-        String[] arg = new String[2];
-        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/BadFormatJar.jar";
-        arg[1] = "";
-        String[] path = new String[1];
-        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/BadFormatJar.jar";
-        try {
-            Support_Exec.execJava(arg, path, true);
-            fail("Should fail here!");
-        } catch (AssertionFailedError e) {
-            // expected
-            assertTrue(-1 != e.getMessage().indexOf("error")
-                    || -1 != e.getMessage().indexOf("Error"));
-            assertTrue(-1 != e.getMessage().indexOf("open"));
-            assertTrue(-1 != e.getMessage().indexOf("file"));
-        }
-    }
-
-    /**
-     * @tests test if premain class is null
-     */
-    public void test_Premain_Class_null() throws Exception {
-        String[] arg = new String[2];
-        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_Class_null.jar";
-        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
-        String[] path = new String[1];
-        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_Class_null.jar";
-        try {
-            Support_Exec.execJava(arg, path, true);
-            fail("Should fail here!");
-        } catch (AssertionFailedError e) {
-            // expected
-            assertTrue(-1 != e.getMessage().indexOf("ClassNotFoundException"));
-        }
-    }
-
-    /**
-     * @tests test transforming all classes to a zero byte
-     */
-    public void test_zero_byte_transformer() throws Exception {
-        String[] arg = new String[2];
-        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/zero_byte_class.jar";
-        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
-        String[] path = new String[1];
-        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/zero_byte_class.jar";
-        String result = Support_Exec.execJava(arg, path, true);
-        assertEquals("", result);
-    }
-
-    /**
-     * @tests test if complied by version 1.4
-     */
-    public void test_old_version() throws Exception {
-        String[] arg = new String[2];
-        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/old_version_class.jar";
-        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
-        String[] path = new String[1];
-        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/old_version_class.jar";
-        String result = Support_Exec.execJava(arg, path, true);
-        assertEquals("", result);
-    }
-}
+/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed 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.tests.java.lang.instrument;
+
+import junit.framework.AssertionFailedError;
+import junit.framework.TestCase;
+import tests.support.Support_Exec;
+
+public class InstrumentTest extends TestCase {
+
+    /**
+     * @tests try to add a null Transformer
+     */
+    public void test_addTransformer_null() throws Exception {
+        String[] arg = new String[2];
+        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_addTransformer_null.jar";
+        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
+        String[] path = new String[1];
+        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_addTransformer_null.jar";
+        String result = Support_Exec.execJava(arg, path, true);
+        assertEquals("", result);
+    }
+
+    /**
+     * @tests try to remove a null Transformer
+     */
+    public void test_removeTransformer_null() throws Exception {
+        String[] arg = new String[2];
+        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_removeTransformer_null.jar";
+        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
+        String[] path = new String[1];
+        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_removeTransformer_null.jar";
+        String result = Support_Exec.execJava(arg, path, true);
+        assertEquals("", result);
+    }
+
+    /**
+     * @tests try to remove a non-exists Transformer
+     */
+    public void test_removeTransformer_notExists() throws Exception {
+        String[] arg = new String[2];
+        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_removeTransformer_notExists.jar";
+        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
+        String[] path = new String[1];
+        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_removeTransformer_notExists.jar";
+        String result = Support_Exec.execJava(arg, path, true);
+        assertEquals("", result);
+    }
+
+    /**
+     * @tests try to load a class that does not exist
+     */
+    public void test_loadClass_null() throws Exception {
+        String[] arg = new String[2];
+        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/loading_class.jar";
+        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
+        String[] path = new String[1];
+        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/loading_class.jar";
+        try {
+            Support_Exec.execJava(arg, path, true);
+            fail("Should fail here!");
+        } catch (AssertionFailedError e) {
+            // class loader changes, can not load classes
+            assertTrue(-1 != e.getMessage().indexOf("NoClassDefFoundError"));
+        }
+    }
+
+    /**
+     * @tests try to use a new ClassLoader
+     */
+    public void test_new_classLoader_Exists() throws Exception {
+        String[] arg = new String[2];
+        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/new_classloader.jar";
+        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
+        String[] path = new String[1];
+        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/new_classloader.jar";
+        String result = Support_Exec.execJava(arg, path, true);
+        assertNotNull(result);
+    }
+
+    /**
+     * @tests test if attribute of "Premain-Class" is null
+     */
+    public void test_Property_Premain_null() throws Exception {
+        String[] arg = new String[2];
+        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Property_Premain_null.jar";
+        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
+        String[] path = new String[1];
+        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Property_Premain_null.jar";
+        try {
+            Support_Exec.execJava(arg, path, true);
+            fail("Should fail here!");
+        } catch (AssertionFailedError e) {
+            // expected
+            assertTrue(-1 != e.getMessage().indexOf("Failed")
+                    || -1 != e.getMessage().indexOf("error"));
+            assertTrue(-1 != e.getMessage().indexOf("Premain-Class"));
+            assertTrue(-1 != e.getMessage().indexOf("attribute"));
+        }
+    }
+
+    /**
+     * @tests test if attributes of "Can-Redefine-Classes" and "Boot-Class-Path"
+     *        is null
+     */
+    public void test_Property_other_null() throws Exception {
+        String[] arg = new String[2];
+        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Property_other_null.jar";
+        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
+        String[] path = new String[1];
+        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Property_other_null.jar";
+        String result = Support_Exec.execJava(arg, path, true);
+        assertNotNull(result);
+    }
+
+    /**
+     * @tests test if the attributes is case-sensitive
+     */
+    public void test_Properity_case_sensitive() throws Exception {
+        String[] arg = new String[2];
+        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Properity_case_sensitive.jar";
+        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
+        String[] path = new String[1];
+        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Properity_case_sensitive.jar";
+        String result = Support_Exec.execJava(arg, path, true);
+        assertEquals("", result);
+    }
+
+    /**
+     * @tests test if the jar file is bad
+     */
+    public void test_BadFormatJar() throws Exception {
+        String[] arg = new String[2];
+        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/BadFormatJar.jar";
+        arg[1] = "";
+        String[] path = new String[1];
+        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/BadFormatJar.jar";
+        try {
+            Support_Exec.execJava(arg, path, true);
+            fail("Should fail here!");
+        } catch (AssertionFailedError e) {
+            // expected
+            assertTrue(-1 != e.getMessage().indexOf("error")
+                    || -1 != e.getMessage().indexOf("Error"));
+            assertTrue(-1 != e.getMessage().indexOf("open"));
+            assertTrue(-1 != e.getMessage().indexOf("file"));
+        }
+    }
+
+    /**
+     * @tests test if premain class is null
+     */
+    public void test_Premain_Class_null() throws Exception {
+        String[] arg = new String[2];
+        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_Class_null.jar";
+        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
+        String[] path = new String[1];
+        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/Premain_Class_null.jar";
+        try {
+            Support_Exec.execJava(arg, path, true);
+            fail("Should fail here!");
+        } catch (AssertionFailedError e) {
+            // expected
+            assertTrue(-1 != e.getMessage().indexOf("ClassNotFoundException"));
+        }
+    }
+
+    /**
+     * @tests test transforming all classes to a zero byte
+     */
+    public void test_zero_byte_transformer() throws Exception {
+        String[] arg = new String[2];
+        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/zero_byte_class.jar";
+        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
+        String[] path = new String[1];
+        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/zero_byte_class.jar";
+        String result = Support_Exec.execJava(arg, path, true);
+        assertEquals("", result);
+    }
+
+    /**
+     * @tests test if complied by version 1.4
+     */
+    public void test_old_version() throws Exception {
+        String[] arg = new String[2];
+        arg[0] = "-javaagent:src/test/resources/jars/org/apache/harmony/tests/instrument/old_version_class.jar";
+        arg[1] = "org/apache/harmony/tests/java/lang/instrument/TestMain";
+        String[] path = new String[1];
+        path[0] = "src/test/resources/jars/org/apache/harmony/tests/instrument/old_version_class.jar";
+        String result = Support_Exec.execJava(arg, path, true);
+        assertEquals("", result);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/InstrumentTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/TestMain.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/TestMain.java?view=diff&rev=446488&r1=446487&r2=446488
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/TestMain.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/TestMain.java
Thu Sep 14 20:00:01 2006
@@ -1,26 +1,26 @@
-/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable
- * 
- * Licensed 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.tests.java.lang.instrument;
-
-/*
- * For instrument test only
- */
-public class TestMain {
-    public static void main(String[] args) {
-        // do nothing, only as execuable main class
-        return;
-    }
-}
+/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed 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.tests.java.lang.instrument;
+
+/*
+ * For instrument test only
+ */
+public class TestMain {
+    public static void main(String[] args) {
+        // do nothing, only as execuable main class
+        return;
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/TestMain.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java?view=diff&rev=446488&r1=446487&r2=446488
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java
Thu Sep 14 20:00:01 2006
@@ -1,41 +1,41 @@
-/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable
- * 
- * Licensed 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.tests.java.lang.instrument;
-
-import java.lang.instrument.UnmodifiableClassException;
-
-import junit.framework.TestCase;
-
-import org.apache.harmony.testframework.serialization.SerializationTest;
-
-public class UnmodifiableClassExceptionTest extends TestCase {
-
-    /**
-     * @tests serialization/deserialization compatibility.
-     */
-    public void test_serialization() throws Exception {
-        UnmodifiableClassException object = new UnmodifiableClassException();
-        SerializationTest.verifySelf(object);
-    }
-
-    /**
-     * @tests serialization/deserialization compatibility with RI.
-     */
-    public void test_compatibilitySerialization() throws Exception {
-        UnmodifiableClassException object = new UnmodifiableClassException();
-        SerializationTest.verifyGolden(this, object);
-    }
-}
+/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable
+ * 
+ * Licensed 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.tests.java.lang.instrument;
+
+import java.lang.instrument.UnmodifiableClassException;
+
+import junit.framework.TestCase;
+
+import org.apache.harmony.testframework.serialization.SerializationTest;
+
+public class UnmodifiableClassExceptionTest extends TestCase {
+
+    /**
+     * @tests serialization/deserialization compatibility.
+     */
+    public void test_serialization() throws Exception {
+        UnmodifiableClassException object = new UnmodifiableClassException();
+        SerializationTest.verifySelf(object);
+    }
+
+    /**
+     * @tests serialization/deserialization compatibility with RI.
+     */
+    public void test_compatibilitySerialization() throws Exception {
+        UnmodifiableClassException object = new UnmodifiableClassException();
+        SerializationTest.verifyGolden(this, object);
+    }
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message