harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r396023 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src: main/java/java/util/ test/java/tests/api/java/util/ test/resources/serialization/java/util/
Date Fri, 21 Apr 2006 22:20:54 GMT
Author: tellison
Date: Fri Apr 21 15:20:51 2006
New Revision: 396023

URL: http://svn.apache.org/viewcvs?rev=396023&view=rev
Log:
Apply patch HARMONY-326 (Java 5 Enhancement: several new exceptions in java.util package)

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/DuplicateFormatFlagsException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormatFlagsConversionMismatchException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormatterClosedException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatCodePointException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatConversionException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatFlagsException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/DuplicateFormatFlagsExceptionTest.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/FormatFlagsConversionMismatchExceptionTest.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/FormatterClosedExceptionTest.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatCodePointExceptionTest.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatConversionExceptionTest.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatFlagsExceptionTest.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/DuplicateFormatFlagsException.ser   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/FormatFlagsConversionMismatchException.ser   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/FormatterClosedException.ser   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatCodePointException.ser   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatConversionException.ser   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatFlagsException.ser   (with props)
Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/AllTests.java

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/DuplicateFormatFlagsException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/DuplicateFormatFlagsException.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/DuplicateFormatFlagsException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/DuplicateFormatFlagsException.java Fri Apr 21 15:20:51 2006
@@ -0,0 +1,62 @@
+/* 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 java.util;
+
+/**
+ * The unchecked exception will be thrown out if there are duplicate flags given
+ * out in the format specifier.
+ */
+public class DuplicateFormatFlagsException extends IllegalFormatException {
+	private static final long serialVersionUID = 18890531L;
+
+	private String flags;
+
+	/**
+	 * Constructs a DuplicateFormatFlagsException which flags is specified.
+	 * 
+	 * @param f
+	 *            The format flags that contian a duplicate flag.
+	 */
+	public DuplicateFormatFlagsException(String f) {
+		if (null == f) {
+			throw new NullPointerException();
+		}
+		flags = f;
+	}
+
+	/**
+	 * Returns the format flags that contian a duplicate flag.
+	 * 
+	 * @return The format flags that contian a duplicate flag.
+	 */
+	public String getFlags() {
+		return flags;
+	}
+
+	/**
+	 * Returns the message string of the DuplicateFormatFlagsException.
+	 * 
+	 * @return The message string of the DuplicateFormatFlagsException.
+	 */
+	public String getMessage() {
+		StringBuilder buffer = new StringBuilder();
+		buffer.append("Flags of the DuplicateFormatFlagsException is'");
+		buffer.append(flags);
+		buffer.append("'");
+		return buffer.toString();
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/DuplicateFormatFlagsException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormatFlagsConversionMismatchException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormatFlagsConversionMismatchException.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormatFlagsConversionMismatchException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormatFlagsConversionMismatchException.java Fri Apr 21 15:20:51 2006
@@ -0,0 +1,81 @@
+/* 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 java.util;
+
+import java.io.Serializable;
+
+/**
+ * The unchecked exception will be thrown out if a conversion and flags are
+ * incompatible.
+ */
+public class FormatFlagsConversionMismatchException extends
+		IllegalFormatException implements Serializable {
+
+	private static final long serialVersionUID = 19120414L;
+
+	private String f;
+
+	private char c;
+
+	/**
+	 * Construct a FormatFlagsConversionMismatchException with the flags and
+	 * conversion specified.
+	 * 
+	 * @param f
+	 *            The flags
+	 * @param c
+	 *            The conversion
+	 */
+	public FormatFlagsConversionMismatchException(String f, char c) {
+		if (null == f) {
+			throw new NullPointerException();
+		}
+		this.f = f;
+		this.c = c;
+	}
+
+	/**
+	 * Returns the incompatible format flag.
+	 * 
+	 * @return The incompatible format flag.
+	 */
+	public String getFlags() {
+		return f;
+	}
+
+	/**
+	 * Returns the incompatible Conversion.
+	 * 
+	 * @return The incompatible Conversion.
+	 */
+	public char getConversion() {
+		return c;
+	}
+
+	/**
+	 * Returns the message string of the FormatFlagsConversionMismatchException.
+	 * 
+	 * @return The message string of the FormatFlagsConversionMismatchException.
+	 */
+	public String getMessage() {
+		StringBuilder buffer = new StringBuilder();
+		buffer.append("Mismatched Convertor =");
+		buffer.append(c);
+		buffer.append(", Flags= ");
+		buffer.append(f);
+		return buffer.toString();
+	}
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormatFlagsConversionMismatchException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormatterClosedException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormatterClosedException.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormatterClosedException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormatterClosedException.java Fri Apr 21 15:20: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 java.util;
+
+import java.io.Serializable;
+
+/**
+ * The unchecked exception will be thrown out if the formatter has been closed.
+ * 
+ */
+public class FormatterClosedException extends IllegalStateException implements
+		Serializable {
+	private static final long serialVersionUID = 18111216L;
+
+	/**
+	 * Constucts an instance of FormatterClosedException.
+	 * 
+	 */
+	public FormatterClosedException() {
+	}
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/FormatterClosedException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatCodePointException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatCodePointException.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatCodePointException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatCodePointException.java Fri Apr 21 15:20:51 2006
@@ -0,0 +1,65 @@
+/* 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 java.util;
+
+import java.io.Serializable;
+
+/**
+ * The unchecked exception will be thrown out if an invalid Unicode code point,
+ * which is Character.isValidCodePoint(int), is passed as a parameter to
+ * Formatter.
+ */
+public class IllegalFormatCodePointException extends IllegalFormatException
+		implements Serializable {
+	private static final long serialVersionUID = 19080630L;
+
+	private int c;
+
+	/**
+	 * Constructs an IllegalFormatCodePointException which is specified by the
+	 * invalid Unicode code point.
+	 * 
+	 * @param c
+	 *            The invalid Unicode code point.
+	 */
+	public IllegalFormatCodePointException(int c) {
+		this.c = c;
+	}
+
+	/**
+	 * Return the invalid Unicode code point.
+	 * 
+	 * @return The invalid Unicode code point.
+	 */
+	public int getCodePoint() {
+		return c;
+	}
+
+	/**
+	 * Return the message string of the IllegalFormatCodePointException.
+	 * 
+	 * @retun The message string of the IllegalFormatCodePointException.
+	 */
+	public String getMessage() {
+		StringBuilder buffer = new StringBuilder();
+		buffer.append("Code point is ");
+		char[] chars = Character.toChars(c);
+		for (int i = 0; i < chars.length; i++) {
+			buffer.append(chars[i]);
+		}
+		return buffer.toString();
+	}
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatCodePointException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatConversionException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatConversionException.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatConversionException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatConversionException.java Fri Apr 21 15:20:51 2006
@@ -0,0 +1,80 @@
+/* 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 java.util;
+
+import java.io.Serializable;
+
+/**
+ * The unchecked exception will be thrown out when the parameter is incompatible
+ * with the corresponding format specifier.
+ */
+public class IllegalFormatConversionException extends IllegalFormatException
+		implements Serializable {
+	private static final long serialVersionUID = 17000126L;
+
+	private char c;
+
+	private Class arg;
+
+	/**
+	 * Constructs an IllegalFormatConversionException with the class of the
+	 * mismatched conversion and corresponding parameter.
+	 * 
+	 * @param c
+	 *            The class of the mismatched conversion.
+	 * @param arg
+	 *            The corresponding parameter.
+	 */
+	public IllegalFormatConversionException(char c, Class arg) {
+		this.c = c;
+		if (arg == null) {
+			throw new NullPointerException();
+		}
+		this.arg = arg;
+	}
+
+	/**
+	 * Return the class of the mismatched parameter.
+	 * 
+	 * @return The class of the mismatched parameter.
+	 */
+	public Class getArgumentClass() {
+		return arg;
+	}
+
+	/**
+	 * Return the incompatible conversion.
+	 * 
+	 * @return The incompatible conversion.
+	 */
+	public char getConversion() {
+		return c;
+	}
+
+	/**
+	 * Return the message string of the IllegalFormatConversionException.
+	 * 
+	 * @retun The message string of the IllegalFormatConversionException.
+	 */
+	public String getMessage() {
+		StringBuilder buffer = new StringBuilder();
+		buffer.append(c);
+		buffer.append(" is incompatible with ");
+		buffer.append(arg.getName());
+		return buffer.toString();
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatConversionException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatException.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatException.java Fri Apr 21 15:20:51 2006
@@ -0,0 +1,36 @@
+/* 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 java.util;
+
+import java.io.Serializable;
+
+/**
+ * Unchecked Exception that is to be thrown out when a format string that
+ * contains either an illegal syntax or format specifier is transferred as a
+ * parameter. Only subclass that is inherited explicitly from this exception is
+ * allowed to be instantialized.
+ * 
+ * 
+ */
+public class IllegalFormatException extends IllegalArgumentException implements
+		Serializable {
+
+	private static final long serialVersionUID = 18830826L;
+
+	// the constructor is not callable from outside from the package
+	IllegalFormatException() {
+		// do nothing
+	}
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatFlagsException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatFlagsException.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatFlagsException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatFlagsException.java Fri Apr 21 15:20:51 2006
@@ -0,0 +1,67 @@
+/* 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 java.util;
+
+import java.io.Serializable;
+
+/**
+ * 
+ * The unchecked exception will be thrown out if the combination of the format
+ * flags is illegal.
+ * 
+ */
+public class IllegalFormatFlagsException extends IllegalFormatException
+		implements Serializable {
+	private static final long serialVersionUID = 790824L;
+
+	private String flags;
+
+	/**
+	 * Constructs an IllegalFormatFlagsException with the specified flags.
+	 * 
+	 * @param f
+	 *            The specified flags.
+	 */
+	public IllegalFormatFlagsException(String f) {
+		if (null == f) {
+			throw new NullPointerException();
+		}
+		flags = f;
+	}
+
+	/**
+	 * Return the flags that are illegal.
+	 * 
+	 * @return The flags that are illegal.
+	 */
+	public String getFlags() {
+		return flags;
+	}
+
+	/**
+	 * Return the message string of the IllegalFormatFlagsException.
+	 * 
+	 * @retun The message string of the IllegalFormatFlagsException.
+	 */
+	public String getMessage() {
+		StringBuilder buffer = new StringBuilder();
+		buffer.append("Flags = '");
+		buffer.append(flags);
+		buffer.append("'");
+		return buffer.toString();
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatFlagsException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/AllTests.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/AllTests.java?rev=396023&r1=396022&r2=396023&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/AllTests.java (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/AllTests.java Fri Apr 21 15:20:51 2006
@@ -1,4 +1,4 @@
-/* Copyright 2004 The Apache Software Foundation or its licensors, as applicable
+/* Copyright 2004, 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.
@@ -43,15 +43,21 @@
 		suite.addTestSuite(ConcurrentModificationExceptionTest.class);
 		suite.addTestSuite(CurrencyTest.class);
 		suite.addTestSuite(DateTest.class);
+		suite.addTestSuite(DuplicateFormatFlagsExceptionTest.class);
 		suite.addTestSuite(EmptyStackExceptionTest.class);
 		suite.addTestSuite(EventObjectTest.class);
+		suite.addTestSuite(FormatFlagsConversionMismatchExceptionTest.class);
         suite.addTestSuite(FormattableFlagsTest.class);
+        suite.addTestSuite(FormatterClosedExceptionTest.class);
 		suite.addTestSuite(GregorianCalendarTest.class);
 		suite.addTestSuite(HashMapTest.class);
 		suite.addTestSuite(HashSetTest.class);
 		suite.addTestSuite(HashtableTest.class);
 		suite.addTestSuite(IdentityHashMapTest.class);
 		suite.addTestSuite(IdentityHashMap2Test.class);
+		suite.addTestSuite(IllegalFormatCodePointExceptionTest.class);
+		suite.addTestSuite(IllegalFormatConversionExceptionTest.class);
+		suite.addTestSuite(IllegalFormatFlagsExceptionTest.class);	
 		suite.addTestSuite(LinkedHashMapTest.class);
 		suite.addTestSuite(LinkedHashSetTest.class);
 		suite.addTestSuite(LinkedListTest.class);

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/DuplicateFormatFlagsExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/DuplicateFormatFlagsExceptionTest.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/DuplicateFormatFlagsExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/DuplicateFormatFlagsExceptionTest.java Fri Apr 21 15:20:51 2006
@@ -0,0 +1,84 @@
+/* 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 tests.api.java.util;
+
+import java.util.DuplicateFormatFlagsException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+public class DuplicateFormatFlagsExceptionTest extends TestCase {
+
+	private static final String SERIALIZATION_FILE_NAME = "serialization/java/util/DuplicateFormatFlagsException.ser"; //$NON-NLS-1$
+
+	/**
+	 * @tests java.util.DuplicateFormatFlagsException#DuplicateFormatFlagsException(String)
+	 */
+	public void test_duplicateFormatFlagsException() {
+		try {
+			DuplicateFormatFlagsException duplicateFormatException = new DuplicateFormatFlagsException(
+					null);
+			fail("should throw NullPointerException.");
+		} catch (NullPointerException e) {
+			// desired
+		}
+
+	}
+
+	/**
+	 * @tests java.util.DuplicateFormatFlagsException#getFlags()
+	 */
+	public void test_getFlags() {
+		String strFlags = "MYTESTFLAGS";
+		DuplicateFormatFlagsException duplicateFormatException = new DuplicateFormatFlagsException(
+				strFlags);
+		assertEquals(strFlags, duplicateFormatException.getFlags());
+	}
+
+	/**
+	 * @tests java.util.DuplicateFormatFlagsException#getMessage()
+	 */
+	public void test_getMessage() {
+		String strFlags = "MYTESTFLAGS";
+		DuplicateFormatFlagsException duplicateFormatException = new DuplicateFormatFlagsException(
+				strFlags);
+		assertTrue(null != duplicateFormatException.getFlags());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation.
+	 */
+	public void test_serialization() throws Exception {
+		DuplicateFormatFlagsException srcDuplicateFormatFlagsException = new DuplicateFormatFlagsException(
+				"TESTDESC");
+		DuplicateFormatFlagsException destDuplicateFormatFlagsException = (DuplicateFormatFlagsException) SerializationTester
+				.getDeserilizedObject(srcDuplicateFormatFlagsException);
+	}
+
+	/**
+	 * @tests serialization/deserilazation compatibility with RI.
+	 */
+	public void test_serializationCompatibility() throws Exception {
+		DuplicateFormatFlagsException srcDuplicateFormatFlagsException = new DuplicateFormatFlagsException(
+				"TESTDESC");
+		DuplicateFormatFlagsException destDuplicateFormatFlagsException = (DuplicateFormatFlagsException) SerializationTester
+				.readObject(srcDuplicateFormatFlagsException,
+						SERIALIZATION_FILE_NAME);
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/DuplicateFormatFlagsExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/FormatFlagsConversionMismatchExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/FormatFlagsConversionMismatchExceptionTest.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/FormatFlagsConversionMismatchExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/FormatFlagsConversionMismatchExceptionTest.java Fri Apr 21 15:20:51 2006
@@ -0,0 +1,108 @@
+/* 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 tests.api.java.util;
+
+import java.util.FormatFlagsConversionMismatchException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+public class FormatFlagsConversionMismatchExceptionTest extends TestCase {
+
+	private static final String SERIALIZATION_FILE_NAME = "serialization/java/util/FormatFlagsConversionMismatchException.ser"; //$NON-NLS-1$
+
+	/**
+	 * @tests java.util.FormatFlagsConversionMismatchException#FormatFlagsConversionMismatchException(String,
+	 *        char)
+	 */
+	public void test_formatFlagsConversionMismatchException() {
+		try {
+			FormatFlagsConversionMismatchException formatFlagsConversionMismatchException = new FormatFlagsConversionMismatchException(
+					null, ' ');
+			fail("should throw NullPointerException.");
+		} catch (NullPointerException e) {
+			// expected
+		}
+
+	}
+
+	/**
+	 * @tests java.util.FormatFlagsConversionMismatchException#getFlags()
+	 */
+	public void test_getFlags() {
+		String flags = "MYTESTFLAGS";
+		char conversion = 'T';
+		FormatFlagsConversionMismatchException formatFlagsConversionMismatchException = new FormatFlagsConversionMismatchException(
+				flags, conversion);
+		assertEquals(flags, formatFlagsConversionMismatchException.getFlags());
+	}
+
+	/**
+	 * @tests java.util.FormatFlagsConversionMismatchException#getConversion()
+	 */
+	public void test_getConversion() {
+		String flags = "MYTESTFLAGS";
+		char conversion = 'T';
+		FormatFlagsConversionMismatchException formatFlagsConversionMismatchException = new FormatFlagsConversionMismatchException(
+				flags, conversion);
+		assertEquals(conversion, formatFlagsConversionMismatchException
+				.getConversion());
+
+	}
+
+	/**
+	 * @tests java.util.FormatFlagsConversionMismatchException#getMessage()
+	 */
+	public void test_getMessage() {
+		String flags = "MYTESTFLAGS";
+		char conversion = 'T';
+		FormatFlagsConversionMismatchException formatFlagsConversionMismatchException = new FormatFlagsConversionMismatchException(
+				flags, conversion);
+		assertTrue(null != formatFlagsConversionMismatchException.getMessage());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation.
+	 */
+	public void test_serialization() throws Exception {
+		String flags = "MYTESTFLAGS";
+		char conversion = 'T';
+		FormatFlagsConversionMismatchException srcFormatFlagsConversionMismatchException = new FormatFlagsConversionMismatchException(
+				flags,conversion);
+		FormatFlagsConversionMismatchException destFormatFlagsConversionMismatchException = (FormatFlagsConversionMismatchException) SerializationTester
+				.getDeserilizedObject(srcFormatFlagsConversionMismatchException);
+		assertEquals(srcFormatFlagsConversionMismatchException.getFlags(),destFormatFlagsConversionMismatchException.getFlags());
+		assertEquals(srcFormatFlagsConversionMismatchException.getConversion(),destFormatFlagsConversionMismatchException.getConversion());
+	}
+
+	/**
+	 * @tests serialization/deserilazation compatibility with RI.
+	 */
+	public void test_serializationCompatibility() throws Exception {
+		String flags = "MYTESTFLAGS";
+		char conversion = 'T';
+		FormatFlagsConversionMismatchException srcFormatFlagsConversionMismatchException = new FormatFlagsConversionMismatchException(
+				flags,conversion);
+		FormatFlagsConversionMismatchException destFormatFlagsConversionMismatchException = (FormatFlagsConversionMismatchException) SerializationTester
+				.readObject(srcFormatFlagsConversionMismatchException,
+						SERIALIZATION_FILE_NAME);
+		assertEquals(srcFormatFlagsConversionMismatchException.getFlags(),destFormatFlagsConversionMismatchException.getFlags());
+		assertEquals(srcFormatFlagsConversionMismatchException.getConversion(),destFormatFlagsConversionMismatchException.getConversion());
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/FormatFlagsConversionMismatchExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/FormatterClosedExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/FormatterClosedExceptionTest.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/FormatterClosedExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/FormatterClosedExceptionTest.java Fri Apr 21 15:20:51 2006
@@ -0,0 +1,55 @@
+/* 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 tests.api.java.util;
+
+import java.util.FormatterClosedException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+public class FormatterClosedExceptionTest extends TestCase {
+
+	private static final String SERIALIZATION_FILE_NAME = "serialization/java/util/FormatterClosedException.ser"; //$NON-NLS-1$
+
+	/**
+	 * @tests java.util.FormatterClosedException#FormatterClosedException
+	 */
+	public void test_formatterClosedException() {
+		FormatterClosedException formatterClosedException = new FormatterClosedException();
+		assertTrue(null != formatterClosedException);
+	}
+
+	/**
+	 * @tests serialization/deserilazation.
+	 */
+	public void test_serialization() throws Exception {
+		FormatterClosedException srcFormatterClosedException = new FormatterClosedException();
+		FormatterClosedException destFormatterClosedException = (FormatterClosedException) SerializationTester
+				.getDeserilizedObject(srcFormatterClosedException);
+	}
+
+	/**
+	 * @tests serialization/deserilazation compatibility with RI.
+	 */
+	public void test_serializationCompatibility() throws Exception {
+		FormatterClosedException srcFormatterClosedException = new FormatterClosedException();
+		FormatterClosedException destFormatterClosedException = (FormatterClosedException) SerializationTester
+				.readObject(srcFormatterClosedException,
+						SERIALIZATION_FILE_NAME);
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/FormatterClosedExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatCodePointExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatCodePointExceptionTest.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatCodePointExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatCodePointExceptionTest.java Fri Apr 21 15:20:51 2006
@@ -0,0 +1,84 @@
+/* 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 tests.api.java.util;
+
+import java.util.IllegalFormatCodePointException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+public class IllegalFormatCodePointExceptionTest extends TestCase {
+
+	private static final String SERIALIZATION_FILE_NAME = "serialization/java/util/IllegalFormatCodePointException.ser";
+
+	/**
+	 * @tests java.util.IllegalFormatCodePointException.IllegalFormatCodePointException(int)
+	 */
+	public void test_illegalFormatCodePointException() {
+		IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
+				-1);
+		assertTrue(null != illegalFormatCodePointException);
+	}
+
+	/**
+	 * @tests java.util.IllegalFormatCodePointException.getCodePoint()
+	 */
+	public void test_getCodePoint() {
+		int codePoint = 12345;
+		IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
+				codePoint);
+		assertEquals(codePoint, illegalFormatCodePointException.getCodePoint());
+	}
+
+	/**
+	 * @tests java.util.IllegalFormatCodePointException.getMessage()
+	 */
+	public void test_getMessage() {
+		int codePoint = 12345;
+		IllegalFormatCodePointException illegalFormatCodePointException = new IllegalFormatCodePointException(
+				codePoint);
+		assertTrue(null != illegalFormatCodePointException.getMessage());
+	}
+
+	/**
+	 * @tests serialization/deserilazation.
+	 */
+	public void test_serialization() throws Exception {
+		int codePoint = 12345;
+		IllegalFormatCodePointException srcIllegalFormatCodePointException = new IllegalFormatCodePointException(
+				codePoint);
+		IllegalFormatCodePointException destIllegalFormatCodePointException = (IllegalFormatCodePointException) SerializationTester
+				.getDeserilizedObject(srcIllegalFormatCodePointException);
+		assertEquals(srcIllegalFormatCodePointException.getCodePoint(),
+				destIllegalFormatCodePointException.getCodePoint());
+	}
+
+	/**
+	 * @tests serialization/deserilazation compatibility with RI.
+	 */
+	public void test_serializationCompatibility() throws Exception {
+		int codePoint = 12345;
+		IllegalFormatCodePointException srcIllegalFormatCodePointException = new IllegalFormatCodePointException(
+				codePoint);
+		IllegalFormatCodePointException destIllegalFormatCodePointException = (IllegalFormatCodePointException) SerializationTester
+				.readObject(srcIllegalFormatCodePointException,
+						SERIALIZATION_FILE_NAME);
+		assertEquals(srcIllegalFormatCodePointException.getCodePoint(),
+				destIllegalFormatCodePointException.getCodePoint());
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatCodePointExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatConversionExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatConversionExceptionTest.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatConversionExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatConversionExceptionTest.java Fri Apr 21 15:20:51 2006
@@ -0,0 +1,113 @@
+/* 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 tests.api.java.util;
+
+import java.util.IllegalFormatConversionException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+public class IllegalFormatConversionExceptionTest extends TestCase {
+
+	private static final String SERIALIZATION_FILE_NAME = "serialization/java/util/IllegalFormatConversionException.ser";
+
+	/**
+	 * @tests java.util.IllegalFormatConversionException#IllegalFormatConversionException(char,
+	 *        Class)
+	 */
+	public void test_illegalFormatConversionException() {
+		try {
+			IllegalFormatConversionException illegalFormatConversionException = new IllegalFormatConversionException(
+					' ', null);
+			fail("should throw NullPointerExcetpion.");
+		} catch (NullPointerException e) {
+			// desired
+		}
+
+	}
+
+	/**
+	 * @tests java.util.IllegalFormatConversionException#getArgumentClass()
+	 */
+	public void test_getArgumentClass() {
+		char c = '*';
+		Class argClass = String.class;
+		IllegalFormatConversionException illegalFormatConversionException = new IllegalFormatConversionException(
+				c, argClass);
+		assertEquals(argClass, illegalFormatConversionException
+				.getArgumentClass());
+
+	}
+
+	/**
+	 * @tests java.util.IllegalFormatConversionException#getConversion()
+	 */
+	public void test_getConversion() {
+		char c = '*';
+		Class argClass = String.class;
+		IllegalFormatConversionException illegalFormatConversionException = new IllegalFormatConversionException(
+				c, argClass);
+		assertEquals(c, illegalFormatConversionException.getConversion());
+
+	}
+
+	/**
+	 * @tests java.util.IllegalFormatConversionException#getMessage()
+	 */
+	public void test_getMessage() {
+		char c = '*';
+		Class argClass = String.class;
+		IllegalFormatConversionException illegalFormatConversionException = new IllegalFormatConversionException(
+				c, argClass);
+		assertTrue(null != illegalFormatConversionException.getMessage());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation.
+	 */
+	public void test_serialization() throws Exception {
+		char c = '*';
+		Class argClass = String.class;
+		IllegalFormatConversionException srcIllegalFormatConversionException = new IllegalFormatConversionException(
+				c, argClass);
+		IllegalFormatConversionException destIllegalFormatConversionException = (IllegalFormatConversionException) SerializationTester
+				.getDeserilizedObject(srcIllegalFormatConversionException);
+		assertEquals(srcIllegalFormatConversionException.getArgumentClass(),
+				destIllegalFormatConversionException.getArgumentClass());
+		assertEquals(srcIllegalFormatConversionException.getConversion(),
+				destIllegalFormatConversionException.getConversion());
+	}
+
+	/**
+	 * @tests serialization/deserilazation compatibility with RI.
+	 */
+	public void test_serializationCompatibility() throws Exception {
+		char c = '*';
+		Class argClass = String.class;
+		IllegalFormatConversionException srcIllegalFormatConversionException = new IllegalFormatConversionException(
+				c, argClass);
+		IllegalFormatConversionException destIllegalFormatConversionException = (IllegalFormatConversionException) SerializationTester
+				.readObject(srcIllegalFormatConversionException,
+						SERIALIZATION_FILE_NAME);
+		assertEquals(srcIllegalFormatConversionException.getArgumentClass(),
+				destIllegalFormatConversionException.getArgumentClass());
+		assertEquals(srcIllegalFormatConversionException.getConversion(),
+				destIllegalFormatConversionException.getConversion());
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatConversionExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatFlagsExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatFlagsExceptionTest.java?rev=396023&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatFlagsExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatFlagsExceptionTest.java Fri Apr 21 15:20:51 2006
@@ -0,0 +1,91 @@
+/* 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 tests.api.java.util;
+
+import java.util.IllegalFormatFlagsException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+public class IllegalFormatFlagsExceptionTest extends TestCase {
+
+	private static final String SERIALIZATION_FILE_NAME = "serialization/java/util/IllegalFormatFlagsException.ser";
+
+	/**
+	 * @tests java.util.IllegalFormatFlagsException#IllegalFormatFlagsException(String)
+	 */
+	public void test_illegalFormatFlagsException() {
+		try {
+			IllegalFormatFlagsException illegalFormatFlagsException = new IllegalFormatFlagsException(
+					null);
+			fail("should throw NullPointerException");
+		} catch (NullPointerException e) {
+			// expected
+		}
+	}
+
+	/**
+	 * @tests java.util.IllegalFormatFlagsException.getFlags()
+	 */
+	public void test_getFlags() {
+		String flags = "TESTFLAGS";
+		IllegalFormatFlagsException illegalFormatFlagsException = new IllegalFormatFlagsException(
+				flags);
+		assertEquals(flags, illegalFormatFlagsException.getFlags());
+	}
+
+	/**
+	 * @tests java.util.IllegalFormatFlagsException.getMessage()
+	 */
+	public void test_getMessage() {
+		String flags = "TESTFLAGS";
+		IllegalFormatFlagsException illegalFormatFlagsException = new IllegalFormatFlagsException(
+				flags);
+		assertTrue(null != illegalFormatFlagsException.getMessage());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation.
+	 */
+	public void test_serialization() throws Exception {
+		String flags = "TESTFLAGS";
+		IllegalFormatFlagsException srcIllegalFormatFlagsException = new IllegalFormatFlagsException(
+				flags);
+		IllegalFormatFlagsException destIllegalFormatFlagsException = (IllegalFormatFlagsException) SerializationTester
+				.getDeserilizedObject(srcIllegalFormatFlagsException);
+		assertEquals(srcIllegalFormatFlagsException.getFlags(),
+				destIllegalFormatFlagsException.getFlags());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation compatibility with RI.
+	 */
+	public void test_serializationCompatibility() throws Exception {
+		String flags = "TESTFLAGS";
+		IllegalFormatFlagsException srcIllegalFormatFlagsException = new IllegalFormatFlagsException(
+				flags);		
+		IllegalFormatFlagsException destIllegalFormatFlagsException = (IllegalFormatFlagsException) SerializationTester
+				.readObject(srcIllegalFormatFlagsException,
+						SERIALIZATION_FILE_NAME);
+		assertEquals(srcIllegalFormatFlagsException.getFlags(),
+				destIllegalFormatFlagsException.getFlags());
+
+	}
+
+}

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatFlagsExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/DuplicateFormatFlagsException.ser
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/DuplicateFormatFlagsException.ser?rev=396023&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/DuplicateFormatFlagsException.ser
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/FormatFlagsConversionMismatchException.ser
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/FormatFlagsConversionMismatchException.ser?rev=396023&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/FormatFlagsConversionMismatchException.ser
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/FormatterClosedException.ser
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/FormatterClosedException.ser?rev=396023&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/FormatterClosedException.ser
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatCodePointException.ser
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatCodePointException.ser?rev=396023&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatCodePointException.ser
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatConversionException.ser
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatConversionException.ser?rev=396023&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatConversionException.ser
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatFlagsException.ser
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatFlagsException.ser?rev=396023&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatFlagsException.ser
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message