harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ghar...@apache.org
Subject svn commit: r396852 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni: make/common/ src/main/java/java/util/ src/main/java/org/apache/harmony/luni/util/ src/test/java/tests/api/java/util/ src/test/resources/serialization/java/util/
Date Tue, 25 Apr 2006 11:46:02 GMT
Author: gharley
Date: Tue Apr 25 04:45:53 2006
New Revision: 396852

URL: http://svn.apache.org/viewcvs?rev=396852&view=rev
Log:
HARMONY-384 : Java 5 Enhancement: several new exceptions in java.util package

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatPrecisionException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatWidthException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MissingFormatArgumentException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MissingFormatWidthException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatConversionException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatFlagsException.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatPrecisionExceptionTest.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatWidthExceptionTest.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/MissingFormatArgumentExceptionTest.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/MissingFormatWidthExceptionTest.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatConversionExceptionTest.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatFlagsExceptionTest.java   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatPrecisionException.ser   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/IllegalFormatWidthException.ser   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/MissingFormatArgumentException.ser   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/MissingFormatWidthException.ser   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/UnknownFormatConversionException.ser   (with props)
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/resources/serialization/java/util/UnknownFormatFlagsException.ser   (with props)
Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/make/common/build.xml
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/ExternalMessages.properties
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/AllTests.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/make/common/build.xml
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/make/common/build.xml?rev=396852&r1=396851&r2=396852&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/make/common/build.xml (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/make/common/build.xml Tue Apr 25 04:45:53 2006
@@ -17,7 +17,8 @@
 
 <project name="Common_LUNI_Build">
 
-    <target name="compile.java" description="Compile LUNI java code">
+    <target name="compile.java" description="Compile LUNI java code"
+    	depends="copy.resources">
         <echo message="Compiling LUNI classes from ${hy.luni.src.main.java}" />
 
         <mkdir dir="${hy.luni.bin.main}" />
@@ -87,7 +88,7 @@
             <jvmarg value="-Djava.security.policy=../../../../support/src/test/resources/config/testing.policy" />
 
             <!-- Required for running the java.net unit tests -->
-            <jvmarg value="-Dtest.ini.file=../../../../src/test/resources/config/localhosttest.ini" />
+            <jvmarg value="-Dtest.ini.file=../../../../support/src/test/resources/config/localhosttest.ini" />
 
             <env key="JAVA_HOME" value="${test.jre.home}" />
 
@@ -147,7 +148,12 @@
     </target>
 
     <target name="copy.resources">
-        <!-- Nothing for LUNI -->
+    	<mkdir dir="${hy.luni.bin.main}" />
+        <copy todir="${hy.luni.bin.main}" includeemptydirs="false">
+            <fileset dir="${hy.luni.src.main.java}">
+                <exclude name="**/*.java" />
+            </fileset>
+        </copy>
     </target>
 
     <target name="copy.test.resources">

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatPrecisionException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatPrecisionException.java?rev=396852&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatPrecisionException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatPrecisionException.java Tue Apr 25 04:45:53 2006
@@ -0,0 +1,59 @@
+/* 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 when the precision is a negative
+ * other than -1, or the conversion does not support a precision or other cases
+ * when the precision is not supported.
+ * 
+ */
+
+public class IllegalFormatPrecisionException extends IllegalFormatException {
+	private static final long serialVersionUID = 18711008L;
+
+	private int p;
+
+	/**
+	 * Constructs a IllegalFormatPrecisionException with specified precision.
+	 * 
+	 * @param p
+	 *            The precision.
+	 */
+	public IllegalFormatPrecisionException(int p) {
+		this.p = p;
+	}
+
+	/**
+	 * Returns the precision associated with the exception.
+	 * 
+	 * @return the precision.
+	 */
+	public int getPrecision() {
+		return p;
+	}
+
+	/**
+	 * Returns the message of the exception.
+	 * 
+	 * @return The message of the exception.
+	 */
+	public String getMessage() {
+		return String.valueOf(p);
+	}
+
+}

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

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatWidthException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatWidthException.java?rev=396852&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatWidthException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/IllegalFormatWidthException.java Tue Apr 25 04:45:53 2006
@@ -0,0 +1,58 @@
+/* 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 when the width is a negative other
+ * than -1, or the conversion does not support a width or other cases when the
+ * width is not supported.
+ * 
+ */
+public class IllegalFormatWidthException extends IllegalFormatException {
+
+	private static final long serialVersionUID = 16660902L;
+
+	private int w;
+
+	/**
+	 * Constructs a IllegalFormatWidthException with specified width.
+	 * 
+	 * @param w
+	 *            The width.
+	 */
+	public IllegalFormatWidthException(int w) {
+		this.w = w;
+	}
+
+	/**
+	 * Returns the width associated with the exception.
+	 * 
+	 * @return the width.
+	 */
+	public int getWidth() {
+		return w;
+	}
+
+	/**
+	 * Returns the message of the exception.
+	 * 
+	 * @return The message of the exception.
+	 */
+	public String getMessage() {
+		return String.valueOf(w);
+	}
+}

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

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MissingFormatArgumentException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MissingFormatArgumentException.java?rev=396852&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MissingFormatArgumentException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MissingFormatArgumentException.java Tue Apr 25 04:45:53 2006
@@ -0,0 +1,59 @@
+/* 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 no corresponding argument
+ * with the specified conversion or an argument index that refers to an
+ * unexisting argument.
+ */
+public class MissingFormatArgumentException extends IllegalFormatException {
+	private static final long serialVersionUID = 19190115L;
+
+	private String s;
+
+	/**
+	 * Constructs an MissingFormatArgumentException with the specified
+	 * conversion that lacks the argument.
+	 * 
+	 * @param s
+	 *            The specified conversion that lacks the argument.
+	 */
+	public MissingFormatArgumentException(String s) {
+		if (null == s) {
+			throw new NullPointerException();
+		}
+		this.s = s;
+	}
+
+	/**
+	 * Returns the conversion associated with the exception.
+	 * 
+	 * @return The conversion associated with the exception.
+	 */
+	public String getFormatSpecifier() {
+		return s;
+	}
+
+	/**
+	 * Returns the message of the exception.
+	 * 
+	 * @return The message of the exception.
+	 */
+	public String getMessage() {
+        return org.apache.harmony.luni.util.Msg.getString("K0348", s);
+    }
+}

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

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MissingFormatWidthException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MissingFormatWidthException.java?rev=396852&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MissingFormatWidthException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/MissingFormatWidthException.java Tue Apr 25 04:45:53 2006
@@ -0,0 +1,61 @@
+/* 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 the format width is missing but
+ * is required.
+ * 
+ * 
+ */
+public class MissingFormatWidthException extends IllegalFormatException {
+	private static final long serialVersionUID = 15560123L;
+
+	private String s;
+
+	/**
+	 * Constructs a MissingFormatWidthException with the specified format
+	 * specifier.
+	 * 
+	 * @param s
+	 *            The specified format specifier.
+	 */
+	public MissingFormatWidthException(String s) {
+		if (null == s) {
+			throw new NullPointerException();
+		}
+		this.s = s;
+	}
+
+	/**
+	 * Returns the format specifier associated with the exception.
+	 * 
+	 * @return The format specifier associated with the exception.
+	 */
+	public String getFormatSpecifier() {
+		return s;
+	}
+
+	/**
+	 * Returns the message of the exception.
+	 * 
+	 * @return The message of the exception.
+	 */
+	public String getMessage() {
+		return s;
+	}
+
+}

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

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatConversionException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatConversionException.java?rev=396852&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatConversionException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatConversionException.java Tue Apr 25 04:45:53 2006
@@ -0,0 +1,59 @@
+/* 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 the format conversion is
+ * unknown.
+ * 
+ * 
+ */
+public class UnknownFormatConversionException extends IllegalFormatException {
+	private static final long serialVersionUID = 19060418L;
+
+	private String s;
+
+	/**
+	 * Constructs an UnknownFormatConversionException with the unknown format
+	 * conversion.
+	 * 
+	 * @param s
+	 *            The unknown format conversion
+	 */
+	public UnknownFormatConversionException(String s) {
+		if (null == s) {
+			throw new NullPointerException();
+		}
+		this.s = s;
+	}
+
+	/**
+	 * Returns the conversion associated with the exception.
+	 * 
+	 * @return The conversion associated with the exception.
+	 */
+	public String getConversion() {
+		return s;
+	}
+
+	/**
+	 * Returns the message of the exception.
+	 * 
+	 * @return The message of the exception.
+	 */
+	public String getMessage() {
+        return org.apache.harmony.luni.util.Msg.getString("K0349", s);
+    }
+}

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

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatFlagsException.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatFlagsException.java?rev=396852&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatFlagsException.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/util/UnknownFormatFlagsException.java Tue Apr 25 04:45:53 2006
@@ -0,0 +1,58 @@
+/* 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 is an unknown flag.
+ * 
+ */
+public class UnknownFormatFlagsException extends IllegalFormatException {
+
+	private static final long serialVersionUID = 19370506L;
+
+	private String flags;
+
+	/**
+	 * Constructs an UnknownFormatFlagsException with the specified flags.
+	 * 
+	 * @param f
+	 *            The specified flags.
+	 */
+	public UnknownFormatFlagsException(String f) {
+		if (null == f) {
+			throw new NullPointerException();
+		}
+		flags = f;
+	}
+
+	/**
+	 * Returns the flags associated with the exception.
+	 * 
+	 * @return The flags associated with the excepiton.
+	 */
+	public String getFlags() {
+		return flags;
+	}
+
+	/**
+	 * Returns the message associated with the exception.
+	 * 
+	 * @return The message associated with the exception.
+	 */
+	public String getMessage() {
+        return org.apache.harmony.luni.util.Msg.getString("K034a", flags);
+    }
+}

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

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/ExternalMessages.properties
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/ExternalMessages.properties?rev=396852&r1=396851&r2=396852&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/ExternalMessages.properties (original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/ExternalMessages.properties Tue Apr 25 04:45:53 2006
@@ -278,3 +278,6 @@
 K0346=Unmatched braces in the pattern
 KA000=Line too long
 K0347=seek position is negative
+K0348=Format specifier '{0}'
+K0349=Conversion is '{0}'
+K034a=The flags are {0}

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=396852&r1=396851&r2=396852&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 Tue Apr 25 04:45:53 2006
@@ -57,12 +57,16 @@
 		suite.addTestSuite(IdentityHashMap2Test.class);
 		suite.addTestSuite(IllegalFormatCodePointExceptionTest.class);
 		suite.addTestSuite(IllegalFormatConversionExceptionTest.class);
-		suite.addTestSuite(IllegalFormatFlagsExceptionTest.class);	
+		suite.addTestSuite(IllegalFormatFlagsExceptionTest.class);
+		suite.addTestSuite(IllegalFormatPrecisionExceptionTest.class);
+		suite.addTestSuite(IllegalFormatWidthExceptionTest.class);
 		suite.addTestSuite(LinkedHashMapTest.class);
 		suite.addTestSuite(LinkedHashSetTest.class);
 		suite.addTestSuite(LinkedListTest.class);
 		suite.addTestSuite(ListResourceBundleTest.class);
 		suite.addTestSuite(LocaleTest.class);
+		suite.addTestSuite(MissingFormatArgumentExceptionTest.class);
+		suite.addTestSuite(MissingFormatWidthExceptionTest.class);
 		suite.addTestSuite(MissingResourceExceptionTest.class);
 		suite.addTestSuite(NoSuchElementExceptionTest.class);
 		suite.addTestSuite(ObservableTest.class);
@@ -80,6 +84,8 @@
 		suite.addTestSuite(TooManyListenersExceptionTest.class);
 		suite.addTestSuite(TreeMapTest.class);
 		suite.addTestSuite(TreeSetTest.class);
+		suite.addTestSuite(UnknownFormatConversionExceptionTest.class);
+		suite.addTestSuite(UnknownFormatFlagsExceptionTest.class);
 		suite.addTestSuite(VectorTest.class);
 		suite.addTestSuite(WeakHashMapTest.class);
 		// $JUnit-END$

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatPrecisionExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatPrecisionExceptionTest.java?rev=396852&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatPrecisionExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatPrecisionExceptionTest.java Tue Apr 25 04:45:53 2006
@@ -0,0 +1,87 @@
+/* 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.IllegalFormatPrecisionException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+public class IllegalFormatPrecisionExceptionTest extends TestCase {
+
+	private static final String SERIALIZATION_FILE_NAME = "serialization/java/util/IllegalFormatPrecisionException.ser";
+
+	/**
+	 * @tests java.util.IllegalFormatPrecisionException#IllegalFormatPrecisionException(int)
+	 */
+	public void test_illegalFormatPrecisionException() {
+		IllegalFormatPrecisionException illegalFormatPrecisionException = new IllegalFormatPrecisionException(
+				Integer.MIN_VALUE);
+		assertEquals(Integer.MIN_VALUE, illegalFormatPrecisionException
+				.getPrecision());
+	}
+
+	/**
+	 * @tests java.util.IllegalFormatPrecisionException#getPrecision()
+	 */
+	public void test_getPrecision() {
+		int precision = 12345;
+		IllegalFormatPrecisionException illegalFormatPrecisionException = new IllegalFormatPrecisionException(
+				precision);
+		assertEquals(precision, illegalFormatPrecisionException.getPrecision());
+	}
+
+	/**
+	 * @tests method for 'java.util.IllegalFormatPrecisionException#getMessage()
+	 */
+	public void test_getMessage() {
+		int precision = 12345;
+		IllegalFormatPrecisionException illegalFormatPrecisionException = new IllegalFormatPrecisionException(
+				precision);
+		assertTrue(null != illegalFormatPrecisionException.getMessage());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation.
+	 */
+	public void test_serialization() throws Exception {
+		int precision = 12345;
+		IllegalFormatPrecisionException srcIllegalFormatPrecisionException = new IllegalFormatPrecisionException(
+				precision);
+		IllegalFormatPrecisionException destIllegalFormatPrecisionException = (IllegalFormatPrecisionException) SerializationTester
+				.getDeserilizedObject(srcIllegalFormatPrecisionException);
+		assertEquals(srcIllegalFormatPrecisionException.getPrecision(),
+				destIllegalFormatPrecisionException.getPrecision());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation compatibility with RI.
+	 */
+	public void test_serializationCompatibility() throws Exception {
+		int precision = 12345;
+		IllegalFormatPrecisionException srcIllegalFormatPrecisionException = new IllegalFormatPrecisionException(
+				precision);
+		IllegalFormatPrecisionException destIllegalFormatPrecisionException = (IllegalFormatPrecisionException) SerializationTester
+				.readObject(srcIllegalFormatPrecisionException,
+						SERIALIZATION_FILE_NAME);
+		assertEquals(srcIllegalFormatPrecisionException.getPrecision(),
+				destIllegalFormatPrecisionException.getPrecision());
+
+	}
+
+}

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

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatWidthExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatWidthExceptionTest.java?rev=396852&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatWidthExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/IllegalFormatWidthExceptionTest.java Tue Apr 25 04:45:53 2006
@@ -0,0 +1,89 @@
+/* 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.IllegalFormatWidthException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+public class IllegalFormatWidthExceptionTest extends TestCase {
+
+	private static final String SERIALIZATION_FILE_NAME = "serialization/java/util/IllegalFormatWidthException.ser";
+
+	/**
+	 * @tests java.util.IllegalFormatWidthException#IllegalFormatWidthException(int)
+	 */
+	public void test_illegalFormatWidthException() {
+		int width = Integer.MAX_VALUE;
+		IllegalFormatWidthException illegalFormatWidthException = new IllegalFormatWidthException(
+				width);
+		assertEquals(width, illegalFormatWidthException.getWidth());
+
+	}
+
+	/**
+	 * @tests java.util.IllegalFormatWidthException#getWidth()
+	 */
+	public void test_getWidth() {
+		int width = 12345;
+		IllegalFormatWidthException illegalFormatWidthException = new IllegalFormatWidthException(
+				width);
+		assertEquals(width, illegalFormatWidthException.getWidth());
+
+	}
+
+	/**
+	 * @tests java.util.IllegalFormatWidthException#getMessage()
+	 */
+	public void test_getMessage() {
+		int width = 12345;
+		IllegalFormatWidthException illegalFormatWidthException = new IllegalFormatWidthException(
+				width);
+		assertTrue(null != illegalFormatWidthException.getMessage());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation.
+	 */
+	public void test_serialization() throws Exception {
+		int width = 12345;
+		IllegalFormatWidthException srcIllegalFormatWidthException = new IllegalFormatWidthException(
+				width);
+		IllegalFormatWidthException destIllegalFormatWidthException = (IllegalFormatWidthException) SerializationTester
+				.getDeserilizedObject(srcIllegalFormatWidthException);
+		assertEquals(srcIllegalFormatWidthException.getWidth(),
+				destIllegalFormatWidthException.getWidth());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation compatibility with RI.
+	 */
+	public void test_serializationCompatibility() throws Exception {
+		int width = 12345;
+		IllegalFormatWidthException srcIllegalFormatWidthException = new IllegalFormatWidthException(
+				width);
+		IllegalFormatWidthException destIllegalFormatWidthException = (IllegalFormatWidthException) SerializationTester
+				.readObject(srcIllegalFormatWidthException,
+						SERIALIZATION_FILE_NAME);
+		assertEquals(srcIllegalFormatWidthException.getWidth(),
+				destIllegalFormatWidthException.getWidth());
+
+	}
+
+}

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

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/MissingFormatArgumentExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/MissingFormatArgumentExceptionTest.java?rev=396852&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/MissingFormatArgumentExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/MissingFormatArgumentExceptionTest.java Tue Apr 25 04:45:53 2006
@@ -0,0 +1,93 @@
+/* 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.MissingFormatArgumentException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+public class MissingFormatArgumentExceptionTest extends TestCase {
+
+	private static final String SERIALIZATION_FILE_NAME = "serialization/java/util/MissingFormatArgumentException.ser";
+
+	/**
+	 * @tests java.util.MissingFormatArgumentException#MissingFormatArgumentException(String)
+	 */
+	public void test_missingFormatArgumentException() {
+
+		try {
+			MissingFormatArgumentException missingFormatArgumentException = new MissingFormatArgumentException(
+					null);
+			fail("should throw NullPointerExcepiton.");
+		} catch (NullPointerException e) {
+			// expected
+		}
+
+	}
+
+	/**
+	 * @tests java.util.MissingFormatArgumentException#getFormatSpecifier()
+	 */
+	public void test_getFormatSpecifier() {
+		String s = "MYTESTSTRING";
+		MissingFormatArgumentException missingFormatArgumentException = new MissingFormatArgumentException(
+				s);
+		assertEquals(s, missingFormatArgumentException.getFormatSpecifier());
+	}
+
+	/**
+	 * @tests java.util.MissingFormatArgumentException#getMessage()
+	 */
+	public void test_getMessage() {
+		String s = "MYTESTSTRING";
+		MissingFormatArgumentException missingFormatArgumentException = new MissingFormatArgumentException(
+				s);
+		assertTrue(null != missingFormatArgumentException.getMessage());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation.
+	 */
+	public void test_serialization() throws Exception {
+		String s = "MYTESTSTRING";
+		MissingFormatArgumentException srcMissingFormatArgumentException = new MissingFormatArgumentException(
+				s);
+		MissingFormatArgumentException destMissingFormatArgumentException = (MissingFormatArgumentException) SerializationTester
+				.getDeserilizedObject(srcMissingFormatArgumentException);
+		assertEquals(srcMissingFormatArgumentException.getFormatSpecifier(),
+				destMissingFormatArgumentException.getFormatSpecifier());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation compatibility with RI.
+	 */
+	public void test_serializationCompatibility() throws Exception {
+		String s = "MYTESTSTRING";
+		MissingFormatArgumentException srcMissingFormatArgumentException = new MissingFormatArgumentException(
+				s);
+		MissingFormatArgumentException destMissingFormatArgumentException = (MissingFormatArgumentException) SerializationTester
+				.readObject(srcMissingFormatArgumentException,
+						SERIALIZATION_FILE_NAME);
+		assertEquals(srcMissingFormatArgumentException.getFormatSpecifier(),
+				destMissingFormatArgumentException.getFormatSpecifier());
+
+	}
+
+}

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

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/MissingFormatWidthExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/MissingFormatWidthExceptionTest.java?rev=396852&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/MissingFormatWidthExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/MissingFormatWidthExceptionTest.java Tue Apr 25 04:45:53 2006
@@ -0,0 +1,93 @@
+/* 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.MissingFormatWidthException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+public class MissingFormatWidthExceptionTest extends TestCase {
+
+	private static final String SERIALIZATION_FILE_NAME = "serialization/java/util/MissingFormatWidthException.ser";
+
+	/**
+	 * @tests java.util.MissingFormatWidthException#MissingFormatWidthException(String)
+	 */
+	public void test_missingFormatWidthException() {
+		try {
+			String s = null;
+			MissingFormatWidthException missingFormatWidthException = new MissingFormatWidthException(
+					s);
+			fail("should throw NullPointerExcepiton");
+		} catch (NullPointerException e) {
+			// expected
+		}
+
+	}
+
+	/**
+	 * @tests java.util.MissingFormatWidthException#getFormatSpecifier()
+	 */
+	public void test_getFormatSpecifier() {
+		String s = "MYTESTSTRING";
+		MissingFormatWidthException missingFormatWidthException = new MissingFormatWidthException(
+				s);
+		assertEquals(s, missingFormatWidthException.getFormatSpecifier());
+
+	}
+
+	/**
+	 * @tests java.util.MissingFormatWidthException#getMessage()
+	 */
+	public void test_getMessage() {
+		String s = "MYTESTSTRING";
+		MissingFormatWidthException missingFormatWidthException = new MissingFormatWidthException(
+				s);
+		assertTrue(null != missingFormatWidthException.getMessage());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation.
+	 */
+	public void test_serialization() throws Exception {
+		String s = "MYTESTSTRING";
+		MissingFormatWidthException srcMissingFormatWidthException = new MissingFormatWidthException(
+				s);
+		MissingFormatWidthException destMissingFormatWidthException = (MissingFormatWidthException) SerializationTester
+				.getDeserilizedObject(srcMissingFormatWidthException);
+		assertEquals(srcMissingFormatWidthException.getFormatSpecifier(),
+				destMissingFormatWidthException.getFormatSpecifier());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation compatibility with RI.
+	 */
+	public void test_serializationCompatibility() throws Exception {
+		String s = "MYTESTSTRING";
+		MissingFormatWidthException srcMissingFormatWidthException = new MissingFormatWidthException(
+				s);
+		MissingFormatWidthException destMissingFormatWidthException = (MissingFormatWidthException) SerializationTester
+				.readObject(srcMissingFormatWidthException,
+						SERIALIZATION_FILE_NAME);
+		assertEquals(srcMissingFormatWidthException.getFormatSpecifier(),
+				destMissingFormatWidthException.getFormatSpecifier());
+
+	}
+
+}

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

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatConversionExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatConversionExceptionTest.java?rev=396852&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatConversionExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatConversionExceptionTest.java Tue Apr 25 04:45:53 2006
@@ -0,0 +1,96 @@
+/* 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.UnknownFormatConversionException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+public class UnknownFormatConversionExceptionTest extends TestCase {
+
+	private static final String SERIALIZATION_FILE_NAME = "serialization/java/util/UnknownFormatConversionException.ser";
+
+	/**
+	 * @tests java.util.UnknownFormatConversionException#UnknownFormatConversionException(String)
+	 */
+	public void test_unknownFormatConversionException() {
+
+		// RI 5.0 will not throw NullPointerException, it is the bug according
+		// to spec.
+		try {
+			String s = null;
+			UnknownFormatConversionException UnknownFormatConversionException = new UnknownFormatConversionException(
+					s);
+			fail("should throw NullPointerExcepiton");
+		} catch (NullPointerException e) {
+			// expected
+		}
+
+	}
+
+	/**
+	 * @tests java.util.UnknownFormatConversionException#getConversion()
+	 */
+	public void test_getConversion() {
+		String s = "MYTESTSTRING";
+		UnknownFormatConversionException UnknownFormatConversionException = new UnknownFormatConversionException(
+				s);
+		assertEquals(s, UnknownFormatConversionException.getConversion());
+
+	}
+
+	/**
+	 * @tests java.util.UnknownFormatConversionException#getMessage()
+	 */
+	public void test_getMessage() {
+		String s = "MYTESTSTRING";
+		UnknownFormatConversionException UnknownFormatConversionException = new UnknownFormatConversionException(
+				s);
+		assertTrue(null != UnknownFormatConversionException.getMessage());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation.
+	 */
+	public void test_serialization() throws Exception {
+		String s = "MYTESTSTRING";
+		UnknownFormatConversionException srcUnknownFormatConversionException = new UnknownFormatConversionException(
+				s);
+		UnknownFormatConversionException destUnknownFormatConversionException = (UnknownFormatConversionException) SerializationTester
+				.getDeserilizedObject(srcUnknownFormatConversionException);
+		assertEquals(srcUnknownFormatConversionException.getConversion(),
+				destUnknownFormatConversionException.getConversion());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation compatibility with RI.
+	 */
+	public void test_serializationCompatibility() throws Exception {
+		String s = "MYTESTSTRING";
+		UnknownFormatConversionException srcUnknownFormatConversionException = new UnknownFormatConversionException(
+				s);
+		UnknownFormatConversionException destUnknownFormatConversionException = (UnknownFormatConversionException) SerializationTester
+				.readObject(srcUnknownFormatConversionException,
+						SERIALIZATION_FILE_NAME);
+		assertEquals(srcUnknownFormatConversionException.getConversion(),
+				destUnknownFormatConversionException.getConversion());
+
+	}
+
+}

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

Added: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatFlagsExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatFlagsExceptionTest.java?rev=396852&view=auto
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatFlagsExceptionTest.java (added)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/tests/api/java/util/UnknownFormatFlagsExceptionTest.java Tue Apr 25 04:45:53 2006
@@ -0,0 +1,93 @@
+/* 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.UnknownFormatFlagsException;
+
+import tests.util.SerializationTester;
+
+import junit.framework.TestCase;
+
+public class UnknownFormatFlagsExceptionTest extends TestCase {
+
+	private static final String SERIALIZATION_FILE_NAME = "serialization/java/util/UnknownFormatFlagsException.ser";
+
+	/**
+	 * @tests java.util.UnknownFormatFlagsException#UnknownFormatFlagsException(String)
+	 */
+	public void test_unknownFormatFlagsException() {
+
+		try {
+			String s = null;
+			UnknownFormatFlagsException UnknownFormatFlagsException = new UnknownFormatFlagsException(
+					s);
+			fail("should throw NullPointerExcepiton");
+		} catch (NullPointerException e) {
+			// expected
+		}
+
+	}
+
+	/**
+	 * @tests java.util.UnknownFormatFlagsException#getFlags()
+	 */
+	public void test_getFlags() {
+		String s = "MYTESTSTRING";
+		UnknownFormatFlagsException UnknownFormatFlagsException = new UnknownFormatFlagsException(
+				s);
+		assertEquals(s, UnknownFormatFlagsException.getFlags());
+	}
+
+	/**
+	 * @tests java.util.UnknownFormatFlagsException#getMessage()
+	 */
+	public void test_getMessage() {
+		String s = "MYTESTSTRING";
+		UnknownFormatFlagsException UnknownFormatFlagsException = new UnknownFormatFlagsException(
+				s);
+		assertNotNull(UnknownFormatFlagsException.getMessage());
+	}
+
+	/**
+	 * @tests serialization/deserilazation.
+	 */
+	public void test_serialization() throws Exception {
+		String s = "MYTESTSTRING";
+		UnknownFormatFlagsException srcUnknownFormatFlagsException = new UnknownFormatFlagsException(
+				s);
+		UnknownFormatFlagsException destUnknownFormatFlagsException = (UnknownFormatFlagsException) SerializationTester
+				.getDeserilizedObject(srcUnknownFormatFlagsException);
+		assertEquals(srcUnknownFormatFlagsException.getFlags(),
+				destUnknownFormatFlagsException.getFlags());
+
+	}
+
+	/**
+	 * @tests serialization/deserilazation compatibility with RI.
+	 */
+	public void test_serializationCompatibility() throws Exception {
+		String s = "MYTESTSTRING";
+		UnknownFormatFlagsException srcUnknownFormatFlagsException = new UnknownFormatFlagsException(
+				s);
+		UnknownFormatFlagsException destUnknownFormatFlagsException = (UnknownFormatFlagsException) SerializationTester
+				.readObject(srcUnknownFormatFlagsException,
+						SERIALIZATION_FILE_NAME);
+		assertEquals(srcUnknownFormatFlagsException.getFlags(),
+				destUnknownFormatFlagsException.getFlags());
+
+	}
+
+}

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

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

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

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

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

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

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

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

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

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

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

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

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



Mime
View raw message