harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r442596 - /incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/
Date Tue, 12 Sep 2006 14:43:11 GMT
Author: smishura
Date: Tue Sep 12 07:43:10 2006
New Revision: 442596

URL: http://svn.apache.org/viewvc?view=rev&rev=442596
Log:
Set eol-style=native

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharacterCodingExceptionTest.java
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/IllegalCharsetNameExceptionTest.java
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/MalformedInputExceptionTest.java
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UnmappableCharacterExceptionTest.java
  (contents, props changed)
    incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UnsupportedCharsetExceptionTest.java
  (contents, props changed)

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharacterCodingExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharacterCodingExceptionTest.java?view=diff&rev=442596&r1=442595&r2=442596
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharacterCodingExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharacterCodingExceptionTest.java
Tue Sep 12 07:43:10 2006
@@ -1,56 +1,56 @@
-/* Copyright 2004 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 tests.api.java.nio.charset;
-
-import java.io.IOException;
-import java.nio.charset.CharacterCodingException;
-
-import junit.framework.TestCase;
-import tests.util.SerializationTester;
-
-/**
- * Test CharacterCodingException
- */
-public class CharacterCodingExceptionTest extends TestCase {
-
-	public void testConstructor() {
-		CharacterCodingException ex = new CharacterCodingException();
-		assertTrue(ex instanceof IOException);
-		assertNull(ex.getCause());
-		assertNull(ex.getMessage());
-	}
-
-	/*
-	 * Test serialization/deserialization.
-	 */
-	public void testSerialization() throws Exception {
-		CharacterCodingException ex = new CharacterCodingException();
-
-		CharacterCodingException deEx = (CharacterCodingException) SerializationTester
-				.getDeserilizedObject(ex);
-	}
-
-	/*
-	 * Test serialization/deserialization.
-	 */
-	public void testSerializationCompatibility() throws Exception {
-		CharacterCodingException ex = new CharacterCodingException();
-
-		CharacterCodingException deEx = (CharacterCodingException) SerializationTester
-				.readObject(ex,
-						"tests/api/java/nio/charset/CharacterCodingException.ser");
-	}
-}
+/* Copyright 2004 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 tests.api.java.nio.charset;
+
+import java.io.IOException;
+import java.nio.charset.CharacterCodingException;
+
+import junit.framework.TestCase;
+import tests.util.SerializationTester;
+
+/**
+ * Test CharacterCodingException
+ */
+public class CharacterCodingExceptionTest extends TestCase {
+
+	public void testConstructor() {
+		CharacterCodingException ex = new CharacterCodingException();
+		assertTrue(ex instanceof IOException);
+		assertNull(ex.getCause());
+		assertNull(ex.getMessage());
+	}
+
+	/*
+	 * Test serialization/deserialization.
+	 */
+	public void testSerialization() throws Exception {
+		CharacterCodingException ex = new CharacterCodingException();
+
+		CharacterCodingException deEx = (CharacterCodingException) SerializationTester
+				.getDeserilizedObject(ex);
+	}
+
+	/*
+	 * Test serialization/deserialization.
+	 */
+	public void testSerializationCompatibility() throws Exception {
+		CharacterCodingException ex = new CharacterCodingException();
+
+		CharacterCodingException deEx = (CharacterCodingException) SerializationTester
+				.readObject(ex,
+						"tests/api/java/nio/charset/CharacterCodingException.ser");
+	}
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/CharacterCodingExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/IllegalCharsetNameExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/IllegalCharsetNameExceptionTest.java?view=diff&rev=442596&r1=442595&r2=442596
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/IllegalCharsetNameExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/IllegalCharsetNameExceptionTest.java
Tue Sep 12 07:43:10 2006
@@ -1,76 +1,76 @@
-/* Copyright 2004 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 tests.api.java.nio.charset;
-
-import java.nio.charset.IllegalCharsetNameException;
-
-import junit.framework.TestCase;
-import tests.util.SerializationTester;
-
-/**
- * Test class IllegalCharsetNameException.
- */
-public class IllegalCharsetNameExceptionTest extends TestCase {
-
-	public void testConstructor() {
-		IllegalCharsetNameException ex = new IllegalCharsetNameException(
-				"impossible");
-		assertTrue(ex instanceof IllegalArgumentException);
-		assertNull(ex.getCause());
-		assertEquals(ex.getCharsetName(), "impossible");
-		assertTrue(ex.getMessage().indexOf("impossible") != -1);
-
-		ex = new IllegalCharsetNameException("ascii");
-		assertNull(ex.getCause());
-		assertEquals(ex.getCharsetName(), "ascii");
-		assertTrue(ex.getMessage().indexOf("ascii") != -1);
-
-		ex = new IllegalCharsetNameException("");
-		assertNull(ex.getCause());
-		assertEquals(ex.getCharsetName(), "");
-		ex.getMessage();
-
-		ex = new IllegalCharsetNameException(null);
-		assertNull(ex.getCause());
-		assertEquals(ex.getCharsetName(), null);
-		assertTrue(ex.getMessage().indexOf("null") != -1);
-
-	}
-
-	/*
-	 * Test serialization/deserialization.
-	 */
-	public void testSerialization() throws Exception {
-		IllegalCharsetNameException ex = new IllegalCharsetNameException(
-				"charsetName");
-
-		IllegalCharsetNameException deEx = (IllegalCharsetNameException) SerializationTester
-				.getDeserilizedObject(ex);
-	}
-
-	/*
-	 * Test serialization/deserialization
-	 */
-	public void testSerializationCompatibility() throws Exception {
-		IllegalCharsetNameException ex = new IllegalCharsetNameException(
-				"charsetName");
-
-		IllegalCharsetNameException deEx = (IllegalCharsetNameException) SerializationTester
-				.readObject(ex,
-						"tests/api/java/nio/charset/IllegalCharsetNameException.ser");
-	}
-
-}
+/* Copyright 2004 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 tests.api.java.nio.charset;
+
+import java.nio.charset.IllegalCharsetNameException;
+
+import junit.framework.TestCase;
+import tests.util.SerializationTester;
+
+/**
+ * Test class IllegalCharsetNameException.
+ */
+public class IllegalCharsetNameExceptionTest extends TestCase {
+
+	public void testConstructor() {
+		IllegalCharsetNameException ex = new IllegalCharsetNameException(
+				"impossible");
+		assertTrue(ex instanceof IllegalArgumentException);
+		assertNull(ex.getCause());
+		assertEquals(ex.getCharsetName(), "impossible");
+		assertTrue(ex.getMessage().indexOf("impossible") != -1);
+
+		ex = new IllegalCharsetNameException("ascii");
+		assertNull(ex.getCause());
+		assertEquals(ex.getCharsetName(), "ascii");
+		assertTrue(ex.getMessage().indexOf("ascii") != -1);
+
+		ex = new IllegalCharsetNameException("");
+		assertNull(ex.getCause());
+		assertEquals(ex.getCharsetName(), "");
+		ex.getMessage();
+
+		ex = new IllegalCharsetNameException(null);
+		assertNull(ex.getCause());
+		assertEquals(ex.getCharsetName(), null);
+		assertTrue(ex.getMessage().indexOf("null") != -1);
+
+	}
+
+	/*
+	 * Test serialization/deserialization.
+	 */
+	public void testSerialization() throws Exception {
+		IllegalCharsetNameException ex = new IllegalCharsetNameException(
+				"charsetName");
+
+		IllegalCharsetNameException deEx = (IllegalCharsetNameException) SerializationTester
+				.getDeserilizedObject(ex);
+	}
+
+	/*
+	 * Test serialization/deserialization
+	 */
+	public void testSerializationCompatibility() throws Exception {
+		IllegalCharsetNameException ex = new IllegalCharsetNameException(
+				"charsetName");
+
+		IllegalCharsetNameException deEx = (IllegalCharsetNameException) SerializationTester
+				.readObject(ex,
+						"tests/api/java/nio/charset/IllegalCharsetNameException.ser");
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/IllegalCharsetNameExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/MalformedInputExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/MalformedInputExceptionTest.java?view=diff&rev=442596&r1=442595&r2=442596
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/MalformedInputExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/MalformedInputExceptionTest.java
Tue Sep 12 07:43:10 2006
@@ -1,71 +1,71 @@
-/* Copyright 2004 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 tests.api.java.nio.charset;
-
-import java.nio.charset.CharacterCodingException;
-import java.nio.charset.MalformedInputException;
-
-import junit.framework.TestCase;
-import tests.util.SerializationTester;
-
-/**
- * Test class MalformedInputException.
- */
-public class MalformedInputExceptionTest extends TestCase {
-
-	public void testConstructor() {
-		MalformedInputException ex = new MalformedInputException(3);
-		assertTrue(ex instanceof CharacterCodingException);
-		assertNull(ex.getCause());
-		assertEquals(ex.getInputLength(), 3);
-		assertTrue(ex.getMessage().indexOf("3") != -1);
-
-		ex = new MalformedInputException(-3);
-		assertNull(ex.getCause());
-		assertEquals(ex.getInputLength(), -3);
-		assertTrue(ex.getMessage().indexOf("-3") != -1);
-
-		ex = new MalformedInputException(0);
-		assertNull(ex.getCause());
-		assertEquals(ex.getInputLength(), 0);
-		assertTrue(ex.getMessage().indexOf("0") != -1);
-	}
-
-	/*
-	 * Test serialization/deserialization.
-	 */
-	public void testSerialization() throws Exception {
-		MalformedInputException ex = new MalformedInputException(11);
-
-		MalformedInputException deEx = (MalformedInputException) SerializationTester
-				.getDeserilizedObject(ex);
-		assertEquals(11, deEx.getInputLength());
-	}
-
-	/*
-	 * Test serialization/deserialization compatibility with reference
-	 * implementation.
-	 */
-	public void testSerializationCompatibility() throws Exception {
-		MalformedInputException ex = new MalformedInputException(11);
-
-		MalformedInputException deEx = (MalformedInputException) SerializationTester
-				.readObject(ex,
-						"tests/api/java/nio/charset/MalformedInputException.ser");
-		assertEquals(11, deEx.getInputLength());
-	}
-
-}
+/* Copyright 2004 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 tests.api.java.nio.charset;
+
+import java.nio.charset.CharacterCodingException;
+import java.nio.charset.MalformedInputException;
+
+import junit.framework.TestCase;
+import tests.util.SerializationTester;
+
+/**
+ * Test class MalformedInputException.
+ */
+public class MalformedInputExceptionTest extends TestCase {
+
+	public void testConstructor() {
+		MalformedInputException ex = new MalformedInputException(3);
+		assertTrue(ex instanceof CharacterCodingException);
+		assertNull(ex.getCause());
+		assertEquals(ex.getInputLength(), 3);
+		assertTrue(ex.getMessage().indexOf("3") != -1);
+
+		ex = new MalformedInputException(-3);
+		assertNull(ex.getCause());
+		assertEquals(ex.getInputLength(), -3);
+		assertTrue(ex.getMessage().indexOf("-3") != -1);
+
+		ex = new MalformedInputException(0);
+		assertNull(ex.getCause());
+		assertEquals(ex.getInputLength(), 0);
+		assertTrue(ex.getMessage().indexOf("0") != -1);
+	}
+
+	/*
+	 * Test serialization/deserialization.
+	 */
+	public void testSerialization() throws Exception {
+		MalformedInputException ex = new MalformedInputException(11);
+
+		MalformedInputException deEx = (MalformedInputException) SerializationTester
+				.getDeserilizedObject(ex);
+		assertEquals(11, deEx.getInputLength());
+	}
+
+	/*
+	 * Test serialization/deserialization compatibility with reference
+	 * implementation.
+	 */
+	public void testSerializationCompatibility() throws Exception {
+		MalformedInputException ex = new MalformedInputException(11);
+
+		MalformedInputException deEx = (MalformedInputException) SerializationTester
+				.readObject(ex,
+						"tests/api/java/nio/charset/MalformedInputException.ser");
+		assertEquals(11, deEx.getInputLength());
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/MalformedInputExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UnmappableCharacterExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UnmappableCharacterExceptionTest.java?view=diff&rev=442596&r1=442595&r2=442596
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UnmappableCharacterExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UnmappableCharacterExceptionTest.java
Tue Sep 12 07:43:10 2006
@@ -1,72 +1,72 @@
-/* Copyright 2004 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 tests.api.java.nio.charset;
-
-import java.nio.charset.CharacterCodingException;
-import java.nio.charset.UnmappableCharacterException;
-
-import junit.framework.TestCase;
-import tests.util.SerializationTester;
-
-/**
- * Test class UnmappableCharacterException.
- */
-public class UnmappableCharacterExceptionTest extends TestCase {
-
-	public void testConstructor() {
-		UnmappableCharacterException ex = new UnmappableCharacterException(3);
-		assertTrue(ex instanceof CharacterCodingException);
-		assertNull(ex.getCause());
-		assertEquals(ex.getInputLength(), 3);
-		assertTrue(ex.getMessage().indexOf("3") != -1);
-
-		ex = new UnmappableCharacterException(-3);
-		assertNull(ex.getCause());
-		assertEquals(ex.getInputLength(), -3);
-		assertTrue(ex.getMessage().indexOf("-3") != -1);
-
-		ex = new UnmappableCharacterException(0);
-		assertNull(ex.getCause());
-		assertEquals(ex.getInputLength(), 0);
-		assertTrue(ex.getMessage().indexOf("0") != -1);
-
-	}
-
-	/*
-	 * Test serialization/deserialization.
-	 */
-	public void testSerialization() throws Exception {
-		UnmappableCharacterException ex = new UnmappableCharacterException(11);
-
-		UnmappableCharacterException deEx = (UnmappableCharacterException) SerializationTester
-				.getDeserilizedObject(ex);
-		assertEquals(11, deEx.getInputLength());
-	}
-
-	/*
-	 * Test serialization/deserialization compatibility with reference
-	 * implementation.
-	 */
-	public void testSerializationCompatibility() throws Exception {
-		UnmappableCharacterException ex = new UnmappableCharacterException(11);
-
-		UnmappableCharacterException deEx = (UnmappableCharacterException) SerializationTester
-				.readObject(ex,
-						"tests/api/java/nio/charset/UnmappableCharacterException.ser");
-		assertEquals(11, deEx.getInputLength());
-	}
-
-}
+/* Copyright 2004 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 tests.api.java.nio.charset;
+
+import java.nio.charset.CharacterCodingException;
+import java.nio.charset.UnmappableCharacterException;
+
+import junit.framework.TestCase;
+import tests.util.SerializationTester;
+
+/**
+ * Test class UnmappableCharacterException.
+ */
+public class UnmappableCharacterExceptionTest extends TestCase {
+
+	public void testConstructor() {
+		UnmappableCharacterException ex = new UnmappableCharacterException(3);
+		assertTrue(ex instanceof CharacterCodingException);
+		assertNull(ex.getCause());
+		assertEquals(ex.getInputLength(), 3);
+		assertTrue(ex.getMessage().indexOf("3") != -1);
+
+		ex = new UnmappableCharacterException(-3);
+		assertNull(ex.getCause());
+		assertEquals(ex.getInputLength(), -3);
+		assertTrue(ex.getMessage().indexOf("-3") != -1);
+
+		ex = new UnmappableCharacterException(0);
+		assertNull(ex.getCause());
+		assertEquals(ex.getInputLength(), 0);
+		assertTrue(ex.getMessage().indexOf("0") != -1);
+
+	}
+
+	/*
+	 * Test serialization/deserialization.
+	 */
+	public void testSerialization() throws Exception {
+		UnmappableCharacterException ex = new UnmappableCharacterException(11);
+
+		UnmappableCharacterException deEx = (UnmappableCharacterException) SerializationTester
+				.getDeserilizedObject(ex);
+		assertEquals(11, deEx.getInputLength());
+	}
+
+	/*
+	 * Test serialization/deserialization compatibility with reference
+	 * implementation.
+	 */
+	public void testSerializationCompatibility() throws Exception {
+		UnmappableCharacterException ex = new UnmappableCharacterException(11);
+
+		UnmappableCharacterException deEx = (UnmappableCharacterException) SerializationTester
+				.readObject(ex,
+						"tests/api/java/nio/charset/UnmappableCharacterException.ser");
+		assertEquals(11, deEx.getInputLength());
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UnmappableCharacterExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UnsupportedCharsetExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UnsupportedCharsetExceptionTest.java?view=diff&rev=442596&r1=442595&r2=442596
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UnsupportedCharsetExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UnsupportedCharsetExceptionTest.java
Tue Sep 12 07:43:10 2006
@@ -1,74 +1,74 @@
-/* Copyright 2004 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 tests.api.java.nio.charset;
-
-import java.nio.charset.UnsupportedCharsetException;
-
-import junit.framework.TestCase;
-import tests.util.SerializationTester;
-
-/**
- * Test class UnsupportedCharsetException.
- */
-public class UnsupportedCharsetExceptionTest extends TestCase {
-
-	public void testConstructor() {
-		UnsupportedCharsetException ex = new UnsupportedCharsetException(
-				"impossible");
-		assertTrue(ex instanceof IllegalArgumentException);
-		assertNull(ex.getCause());
-		assertEquals(ex.getCharsetName(), "impossible");
-		assertTrue(ex.getMessage().indexOf("impossible") != -1);
-
-		ex = new UnsupportedCharsetException("ascii");
-		assertNull(ex.getCause());
-		assertEquals(ex.getCharsetName(), "ascii");
-		assertTrue(ex.getMessage().indexOf("ascii") != -1);
-
-		ex = new UnsupportedCharsetException("");
-		assertNull(ex.getCause());
-		assertEquals(ex.getCharsetName(), "");
-		ex.getMessage();
-
-		ex = new UnsupportedCharsetException(null);
-		assertNull(ex.getCause());
-		assertEquals(ex.getCharsetName(), null);
-		assertTrue(ex.getMessage().indexOf("null") != -1);
-	}
-
-	/*
-	 * Test serialization/deserialization.
-	 */
-	public void testSerialization() throws Exception {
-		UnsupportedCharsetException ex = new UnsupportedCharsetException(
-				"charsetName");
-
-		UnsupportedCharsetException deEx = (UnsupportedCharsetException) SerializationTester
-				.getDeserilizedObject(ex);
-	}
-
-	/*
-	 * Test serialization/deserialization.
-	 */
-	public void testSerializationCompatibility() throws Exception {
-		UnsupportedCharsetException ex = new UnsupportedCharsetException(
-				"charsetName");
-
-		UnsupportedCharsetException deEx = (UnsupportedCharsetException) SerializationTester
-				.readObject(ex,
-						"tests/api/java/nio/charset/UnsupportedCharsetException.ser");
-	}
-}
+/* Copyright 2004 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 tests.api.java.nio.charset;
+
+import java.nio.charset.UnsupportedCharsetException;
+
+import junit.framework.TestCase;
+import tests.util.SerializationTester;
+
+/**
+ * Test class UnsupportedCharsetException.
+ */
+public class UnsupportedCharsetExceptionTest extends TestCase {
+
+	public void testConstructor() {
+		UnsupportedCharsetException ex = new UnsupportedCharsetException(
+				"impossible");
+		assertTrue(ex instanceof IllegalArgumentException);
+		assertNull(ex.getCause());
+		assertEquals(ex.getCharsetName(), "impossible");
+		assertTrue(ex.getMessage().indexOf("impossible") != -1);
+
+		ex = new UnsupportedCharsetException("ascii");
+		assertNull(ex.getCause());
+		assertEquals(ex.getCharsetName(), "ascii");
+		assertTrue(ex.getMessage().indexOf("ascii") != -1);
+
+		ex = new UnsupportedCharsetException("");
+		assertNull(ex.getCause());
+		assertEquals(ex.getCharsetName(), "");
+		ex.getMessage();
+
+		ex = new UnsupportedCharsetException(null);
+		assertNull(ex.getCause());
+		assertEquals(ex.getCharsetName(), null);
+		assertTrue(ex.getMessage().indexOf("null") != -1);
+	}
+
+	/*
+	 * Test serialization/deserialization.
+	 */
+	public void testSerialization() throws Exception {
+		UnsupportedCharsetException ex = new UnsupportedCharsetException(
+				"charsetName");
+
+		UnsupportedCharsetException deEx = (UnsupportedCharsetException) SerializationTester
+				.getDeserilizedObject(ex);
+	}
+
+	/*
+	 * Test serialization/deserialization.
+	 */
+	public void testSerializationCompatibility() throws Exception {
+		UnsupportedCharsetException ex = new UnsupportedCharsetException(
+				"charsetName");
+
+		UnsupportedCharsetException deEx = (UnsupportedCharsetException) SerializationTester
+				.readObject(ex,
+						"tests/api/java/nio/charset/UnsupportedCharsetException.ser");
+	}
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/nio_char/src/test/java/tests/api/java/nio/charset/UnsupportedCharsetExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message