You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by py...@apache.org on 2006/08/11 12:22:52 UTC
svn commit: r430753 - in
/incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test:
java/org/apache/harmony/tests/java/lang/instrument/
resources/serialization/org/apache/harmony/tests/java/lang/instrument/
Author: pyang
Date: Fri Aug 11 03:22:51 2006
New Revision: 430753
URL: http://svn.apache.org/viewvc?rev=430753&view=rev
Log:
Patch applied for HARMONY-1098 ([classlib][instrument]Add tests for UnmodifiableClassException and IllegalClassFormatException)
Added:
incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/AllTests.java
incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.java
incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java
incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/resources/serialization/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.golden.ser (with props)
incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/resources/serialization/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.golden.ser (with props)
Added: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/AllTests.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/AllTests.java?rev=430753&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/AllTests.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/AllTests.java Fri Aug 11 03:22:51 2006
@@ -0,0 +1,34 @@
+/* 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.Test;
+import junit.framework.TestSuite;
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(
+ "Test for org.apache.harmony.tests.java.lang.instrument");
+ //$JUnit-BEGIN$
+ suite.addTestSuite(IllegalClassFormatExceptionTest.class);
+ suite.addTestSuite(UnmodifiableClassExceptionTest.class);
+ suite.addTestSuite(ClassDefinitionTest.class);
+ //$JUnit-END$
+ return suite;
+ }
+
+}
Added: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.java?rev=430753&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.java Fri Aug 11 03:22:51 2006
@@ -0,0 +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.IllegalClassFormatException;
+
+import junit.framework.TestCase;
+
+import org.apache.harmony.testframework.serialization.SerializationTest;
+
+public class IllegalClassFormatExceptionTest extends TestCase {
+
+ /**
+ * @tests serialization/deserialization compatibility.
+ */
+ public void test_serialization() throws Exception {
+ IllegalClassFormatException object = new IllegalClassFormatException();
+ SerializationTest.verifySelf(object);
+ }
+
+ /**
+ * @tests serialization/deserialization compatibility with RI.
+ */
+ public void test_compatibilitySerialization() throws Exception {
+ IllegalClassFormatException object = new IllegalClassFormatException();
+ SerializationTest.verifyGolden(this, object);
+ }
+}
Added: 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?rev=430753&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/java/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.java Fri Aug 11 03:22:51 2006
@@ -0,0 +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);
+ }
+}
Added: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/resources/serialization/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.golden.ser
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/resources/serialization/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.golden.ser?rev=430753&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/resources/serialization/org/apache/harmony/tests/java/lang/instrument/IllegalClassFormatExceptionTest.golden.ser
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/resources/serialization/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.golden.ser
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/resources/serialization/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.golden.ser?rev=430753&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/harmony/enhanced/classlib/trunk/modules/instrument/src/test/resources/serialization/org/apache/harmony/tests/java/lang/instrument/UnmodifiableClassExceptionTest.golden.ser
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream