harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mloe...@apache.org
Subject svn commit: r412641 [14/32] - in /incubator/harmony/enhanced/classlib/trunk/modules/beans/src: main/java/java/beans/ main/java/java/beans/beancontext/ test/java-internal/java/beans/beancontext/ test/java/org/apache/harmony/beans/tests/ test/java/org/ap...
Date Thu, 08 Jun 2006 03:40:30 GMT
Modified: incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/IntrospectionExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/IntrospectionExceptionTest.java?rev=412641&r1=412640&r2=412641&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/IntrospectionExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/IntrospectionExceptionTest.java
Wed Jun  7 20:40:24 2006
@@ -1,68 +1,68 @@
-/* Copyright 2005 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.beans.tests.java.beans;
-
-import java.beans.IntrospectionException;
-import java.io.IOException;
-
-import tests.util.SerializationTester;
-
-import junit.framework.TestCase;
-
-/**
- * Unit test of IntrospectionException.
- */
-
-public class IntrospectionExceptionTest extends TestCase {
-
-    public void testConstructor() {
-        String message = "IntrospectionExceptionTest";
-        IntrospectionException e = new IntrospectionException(message);
-        assertSame(message, e.getMessage());
-    }
-
-    public void testConstructor_MessageNull() {
-        IntrospectionException e = new IntrospectionException(null);
-        assertNull(e.getMessage());
-    }
-
-    public void testSerialization() throws IOException, ClassNotFoundException {
-        String message = "IntrospectionExceptionTest";
-        IntrospectionException e = new IntrospectionException(message);
-        assertSame(message, e.getMessage());
-
-        IntrospectionException de = (IntrospectionException) SerializationTester
-                .getDeserilizedObject(e);
-        assertEquals(message, de.getMessage());
-    }
-
-    public void testSerialization_Compatibility() throws Exception {
-        String message = "IntrospectionExceptionTest";
-        IntrospectionException e = new IntrospectionException(message);
-        assertSame(message, e.getMessage());
-
-        IntrospectionException de = (IntrospectionException) SerializationTester
-                .readObject(e,
-                        "serialization/java/beans/IntrospectionException.ser");
-        assertEquals(message, de.getMessage());
-    }
-    
-    public void testIntrospectionExceptionMessage() {
-        // Regression for HARMONY-235
-        IntrospectionException e = new IntrospectionException("test message");
-        assertEquals("test message", e.getMessage());
-    }
-}
+/* Copyright 2005 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.beans.tests.java.beans;
+
+import java.beans.IntrospectionException;
+import java.io.IOException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+/**
+ * Unit test of IntrospectionException.
+ */
+
+public class IntrospectionExceptionTest extends TestCase {
+
+    public void testConstructor() {
+        String message = "IntrospectionExceptionTest";
+        IntrospectionException e = new IntrospectionException(message);
+        assertSame(message, e.getMessage());
+    }
+
+    public void testConstructor_MessageNull() {
+        IntrospectionException e = new IntrospectionException(null);
+        assertNull(e.getMessage());
+    }
+
+    public void testSerialization() throws IOException, ClassNotFoundException {
+        String message = "IntrospectionExceptionTest";
+        IntrospectionException e = new IntrospectionException(message);
+        assertSame(message, e.getMessage());
+
+        IntrospectionException de = (IntrospectionException) SerializationTester
+                .getDeserilizedObject(e);
+        assertEquals(message, de.getMessage());
+    }
+
+    public void testSerialization_Compatibility() throws Exception {
+        String message = "IntrospectionExceptionTest";
+        IntrospectionException e = new IntrospectionException(message);
+        assertSame(message, e.getMessage());
+
+        IntrospectionException de = (IntrospectionException) SerializationTester
+                .readObject(e,
+                        "serialization/java/beans/IntrospectionException.ser");
+        assertEquals(message, de.getMessage());
+    }
+    
+    public void testIntrospectionExceptionMessage() {
+        // Regression for HARMONY-235
+        IntrospectionException e = new IntrospectionException("test message");
+        assertEquals("test message", e.getMessage());
+    }
+}



Mime
View raw message