sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1406234 - in /sis/branches/JDK7/sis-utility/src: main/java/org/apache/sis/internal/util/ main/java/org/apache/sis/measure/ main/java/org/apache/sis/util/ main/java/org/apache/sis/util/resources/ test/java/org/apache/sis/internal/util/ test...
Date Tue, 06 Nov 2012 17:28:08 GMT
Author: desruisseaux
Date: Tue Nov  6 17:28:07 2012
New Revision: 1406234

URL: http://svn.apache.org/viewvc?rev=1406234&view=rev
Log:
Removed Exceptions.createParseException(...) from public API, because too convolved.
This forced us to move LocalizedParseException to the internal package. This is a consequence
of the need to use a different error message for the upcomming TreeTableFormat class.

Added:
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/LocalizedException.java
      - copied, changed from r1406200, sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/LocalizedException.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/LocalizedParseException.java
      - copied, changed from r1406200, sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/LocalizedParseException.java
    sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/internal/util/LocalizedParseExceptionTest.java
  (with props)
Removed:
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/LocalizedException.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/LocalizedParseException.java
Modified:
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/AngleFormat.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/Exceptions.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.java
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.properties
    sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors_fr.properties
    sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/test/suite/UtilityTestSuite.java

Copied: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/LocalizedException.java
(from r1406200, sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/LocalizedException.java)
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/LocalizedException.java?p2=sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/LocalizedException.java&p1=sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/LocalizedException.java&r1=1406200&r2=1406234&rev=1406234&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/LocalizedException.java
(original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/LocalizedException.java
Tue Nov  6 17:28:07 2012
@@ -14,9 +14,10 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.sis.util;
+package org.apache.sis.internal.util;
 
 import java.util.Locale;
+import org.apache.sis.util.Localized;
 
 
 /**
@@ -38,9 +39,9 @@ import java.util.Locale;
  * @version 0.3
  * @module
  *
- * @see Exceptions#getLocalizedMessage(Throwable, Locale)
+ * @see org.apache.sis.util.Exceptions#getLocalizedMessage(Throwable, Locale)
  */
-interface LocalizedException extends Localized {
+public interface LocalizedException extends Localized {
     /**
      * The locale of the string returned by {@link #getLocalizedMessage()}.
      *

Copied: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/LocalizedParseException.java
(from r1406200, sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/LocalizedParseException.java)
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/LocalizedParseException.java?p2=sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/LocalizedParseException.java&p1=sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/LocalizedParseException.java&r1=1406200&r2=1406234&rev=1406234&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/LocalizedParseException.java
(original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/internal/util/LocalizedParseException.java
Tue Nov  6 17:28:07 2012
@@ -14,11 +14,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.sis.util;
+package org.apache.sis.internal.util;
 
 import java.util.Locale;
-import java.text.ParseException;
 import java.text.ParsePosition;
+import java.text.ParseException;
+import org.apache.sis.util.Arrays;
+import org.apache.sis.util.CharSequences;
+import org.apache.sis.util.Workaround;
 import org.apache.sis.util.resources.Errors;
 
 
@@ -26,12 +29,23 @@ import org.apache.sis.util.resources.Err
  * A {@link ParseException} in which {@link #getLocalizedMessage()} returns the message in
the
  * parser locale.
  *
+ * {@section Special cases}
+ * This class has special cases for the following classes:
+ *
+ * <ul>
+ *   <li>{@link org.apache.sis.util.tree.TreeTable.Node}, for {@code TreeTableFormat}
needs.</li>
+ * </ul>
+ *
+ * Those special cases are checked in the {@link #specialCase(Object)} method and may change
+ * without notice in any future SIS version. Ideally we should use package-private classes,
+ * but this is not always practical.
+ *
  * @author  Martin Desruisseaux (Geomatys)
  * @since   0.3
  * @version 0.3
  * @module
  */
-final class LocalizedParseException extends ParseException implements LocalizedException
{
+public final class LocalizedParseException extends ParseException implements LocalizedException
{
     /**
      * For cross-version compatibility.
      */
@@ -61,13 +75,30 @@ final class LocalizedParseException exte
      * @param arguments   The value of {@link #arguments(String, ParsePosition)}.
      * @param errorOffset The position where the error is found while parsing.
      */
-    LocalizedParseException(final Locale locale, final Object[] arguments, final int errorOffset)
{
-        super(message(locale, arguments), errorOffset);
+    public LocalizedParseException(final Locale locale, final Object[] arguments, final int
errorOffset) {
+        super(message(null, arguments), errorOffset);
         this.locale    = locale;
         this.arguments = arguments;
     }
 
     /**
+     * If the given class is one of the hard-coded special cases, returns the key of the
+     * error message to use for that case. Otherwise returns -1. The list of special cases
+     * is an undocumented feature for SIS internal usage only, and may change in any future
+     * version.
+     *
+     * @param  type The {@link Class} of the object for which to format an error message.
+     * @return The resource keys for the given class, or -1 if the given type is not a special
case.
+     */
+    private static int specialCase(final Object type) {
+        if (type == org.apache.sis.util.collection.TreeTable.Node.class) {
+            return Errors.Keys.NodeHasNoParent_1;
+        }
+        // More special cases may be added here in any future version.
+        return -1;
+    }
+
+    /**
      * Workaround for RFE #4093999
      * ("Relax constraint on placement of this()/super() call in constructors").
      *
@@ -78,13 +109,17 @@ final class LocalizedParseException exte
      * @return The {@code arguments} value to give to the constructor.
      */
     @Workaround(library="JDK", version="1.7")
-    static Object[] arguments(final Class<?> type, String text, final int offset, final
int errorOffset) {
+    public static Object[] arguments(final Class<?> type, CharSequence text, final
int offset, final int errorOffset) {
         if (errorOffset >= text.length()) {
             return new Object[] {text};
         }
-        final String erroneous = CharSequences.token(text, errorOffset).toString();
-        text = text.substring(offset);
-        if (erroneous.isEmpty()) {
+        final CharSequence erroneous = CharSequences.token(text, errorOffset);
+        switch (specialCase(type)) {
+            case Errors.Keys.NodeHasNoParent_1: return new Object[] {type, erroneous};
+            // More special cases may be added here in any future version.
+        }
+        text = text.subSequence(offset, text.length());
+        if (erroneous.length() == 0) {
             return new Object[] {type, text};
         }
         return new Object[] {type, text, erroneous};
@@ -93,13 +128,17 @@ final class LocalizedParseException exte
     /**
      * Formats the error message using the given locale and arguments.
      */
-    private static String message(final Locale locale, final Object[] arguments) {
-        final int key;
-        switch (arguments.length) {
-            case 1: key = Errors.Keys.UnexpectedEndOfString_1;    break;
-            case 2: key = Errors.Keys.UnparsableStringForClass_2; break;
-            case 3: key = Errors.Keys.UnparsableStringForClass_3; break;
-            default: throw new AssertionError();
+    private static String message(final Locale locale, Object[] arguments) {
+        int key = specialCase(arguments[0]);
+        if (key >= 0) {
+            arguments = Arrays.remove(arguments, 0, 1);
+        } else {
+            switch (arguments.length) {
+                case 1: key = Errors.Keys.UnexpectedEndOfString_1;    break;
+                case 2: key = Errors.Keys.UnparsableStringForClass_2; break;
+                case 3: key = Errors.Keys.UnparsableStringForClass_3; break;
+                default: throw new AssertionError();
+            }
         }
         return Errors.getResources(locale).getString(key, arguments);
     }

Modified: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/AngleFormat.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/AngleFormat.java?rev=1406234&r1=1406233&r2=1406234&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/AngleFormat.java (original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/measure/AngleFormat.java Tue
Nov  6 17:28:07 2012
@@ -29,9 +29,9 @@ import net.jcip.annotations.NotThreadSaf
 
 import org.apache.sis.util.Debug;
 import org.apache.sis.util.Localized;
-import org.apache.sis.util.Exceptions;
 import org.apache.sis.util.ArgumentChecks;
 import org.apache.sis.util.resources.Errors;
+import org.apache.sis.internal.util.LocalizedParseException;
 
 import static java.lang.Math.abs;
 import static java.lang.Math.rint;
@@ -920,6 +920,9 @@ scan:   for (int i=0; i<length;) {
                 it.addFieldLimit(Field.forCode(field), hasMore
                         ? (Number) Integer.valueOf((int) Math.round(value))
                         : (Number) Float.valueOf((float) value), startPosition);
+                // The 'valueOf(…)' was for information purpose only. We use Float instead
of Double
+                // because we don't want to give a false impression of accuracy (when formatting
the
+                // seconds field, at least the 10 last bits of the double value are non-significant).
             } else {
                 toAppendTo = numberFormat.format(value, toAppendTo, dummyFieldPosition());
                 if (suffix != null) {
@@ -1532,8 +1535,11 @@ BigBoss:    switch (skipSuffix(source, p
     public Angle parse(final String source) throws ParseException {
         final ParsePosition pos = new ParsePosition(0);
         final Angle angle = parse(source, pos, true);
-        if (skipSpaces(source, pos.getIndex()) != source.length()) {
-            throw Exceptions.createParseException(locale, Angle.class, source, pos);
+        final int offset = pos.getIndex();
+        if (skipSpaces(source, offset) != source.length()) {
+            final int errorOffset = Math.max(offset, pos.getErrorIndex());
+            throw new LocalizedParseException(locale, LocalizedParseException.arguments(
+                    Angle.class, source, offset, errorOffset), errorOffset);
         }
         return angle;
     }

Modified: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/Exceptions.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/Exceptions.java?rev=1406234&r1=1406233&r2=1406234&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/Exceptions.java (original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/Exceptions.java Tue Nov
 6 17:28:07 2012
@@ -20,8 +20,7 @@ import java.util.Set;
 import java.util.HashSet;
 import java.util.Locale;
 import java.sql.SQLException;
-import java.text.ParsePosition;
-import java.text.ParseException;
+import org.apache.sis.internal.util.LocalizedException;
 
 
 /**
@@ -40,34 +39,6 @@ public final class Exceptions extends St
     }
 
     /**
-     * Creates a {@link ParseException} with a localized message built from the given parsing
-     * information. The exception returned by this method contains the error message in two
-     * languages:
-     *
-     * <ul>
-     *   <li>{@link ParseException#getMessage()} returns the message in the default
locale.</li>
-     *   <li>{@link ParseException#getLocalizedMessage()} returns the message in the
locale given
-     *       in argument to this method. This is usually the {@link java.text.Format} locale,
-     *       which is presumed to be the end-user locale.</li>
-     * </ul>
-     *
-     * @param  locale The locale for {@link ParseException#getLocalizedMessage()}.
-     * @param  type   The type of objects parsed by the {@link java.text.Format}.
-     * @param  text   The text that {@code Format} failed to parse.
-     * @param  pos    Index of the {@linkplain ParsePosition#getIndex() first parsed character},
-     *                together with the {@linkplain ParsePosition#getErrorIndex() error index}.
-     * @return The localized exception.
-     */
-    public static ParseException createParseException(final Locale locale, final Class<?>
type,
-            final String text, final ParsePosition pos)
-    {
-        final int offset = pos.getIndex();
-        final int errorOffset = Math.max(offset, pos.getErrorIndex());
-        return new LocalizedParseException(locale,
-                LocalizedParseException.arguments(type, text, offset, errorOffset), errorOffset);
-    }
-
-    /**
      * Returns the message of the given exception, localized in the given locale if possible.
      * Some exceptions created by SIS can format a message in different locales. This method
      * will return such localized message if possible, or fallback on the standard

Modified: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.java?rev=1406234&r1=1406233&r2=1406234&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.java
(original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.java
Tue Nov  6 17:28:07 2012
@@ -127,6 +127,11 @@ public final class Errors extends Indexe
         public static final int NegativeArgument_2 = 8;
 
         /**
+         * Node “{0}” has no parent.
+         */
+        public static final int NodeHasNoParent_1 = 34;
+
+        /**
          * Argument ‘{0}’ shall not be NaN (Not-a-Number).
          */
         public static final int NotANumber_1 = 9;

Modified: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.properties
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.properties?rev=1406234&r1=1406233&r2=1406234&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.properties
(original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors.properties
Tue Nov  6 17:28:07 2012
@@ -30,6 +30,7 @@ IndexOutOfBounds_1              = Index 
 KeyCollision_1                  = A different value is already associated to the \u201c{0}\u201d
key.
 MandatoryAttribute_2            = Attribute \u201c{0}\u201d is mandatory for an object of
type \u2018{1}\u2019.
 NegativeArgument_2              = Argument \u2018{0}\u2019 shall not be negative. The given
value was {1}.
+NodeHasNoParent_1               = Node \u201c{0}\u201d has no parent.
 NotANumber_1                    = Argument \u2018{0}\u2019 shall not be NaN (Not-a-Number).
 NotAPrimitiveWrapper_1          = Class \u2018{0}\u2019 is not a primitive type wrapper.
 NullArgument_1                  = Argument \u2018{0}\u2019 shall not be null.

Modified: sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors_fr.properties
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors_fr.properties?rev=1406234&r1=1406233&r2=1406234&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors_fr.properties
(original)
+++ sis/branches/JDK7/sis-utility/src/main/java/org/apache/sis/util/resources/Errors_fr.properties
Tue Nov  6 17:28:07 2012
@@ -30,6 +30,7 @@ IndexOutOfBounds_1              = L\u201
 KeyCollision_1                  = Une valeur diff\u00e9rente est d\u00e9j\u00e0 associ\u00e9e
\u00e0 la cl\u00e9 \u201c{0}\u201d.
 MandatoryAttribute_2            = L\u2019attribut \u201c{0}\u201d est obligatoire pour un
objet de type \u2018{1}\u2019.
 NegativeArgument_2              = L\u2019argument \u2018{0}\u2019 ne doit pas \u00eatre n\u00e9gatif.
La valeur donn\u00e9e \u00e9tait {1}.
+NodeHasNoParent_1               = Le n\u0153ud \u201c{0}\u201d n\u2019a pas de parent.
 NotANumber_1                    = L\u2019argument \u2018{0}\u2019 ne doit pas \u00eatre NaN
(Not-a-Number).
 NotAPrimitiveWrapper_1          = La classe \u2018{0}\u2019 n\u2019est pas un adaptateur
d\u2019un type primitif.
 NullArgument_1                  = L\u2019argument \u2018{0}\u2019 ne doit pas \u00eatre nul.

Added: sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/internal/util/LocalizedParseExceptionTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/internal/util/LocalizedParseExceptionTest.java?rev=1406234&view=auto
==============================================================================
--- sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/internal/util/LocalizedParseExceptionTest.java
(added)
+++ sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/internal/util/LocalizedParseExceptionTest.java
Tue Nov  6 17:28:07 2012
@@ -0,0 +1,110 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.sis.internal.util;
+
+import java.util.Locale;
+import java.text.ParseException;
+import java.text.ParsePosition;
+import org.apache.sis.measure.Angle;
+import org.apache.sis.util.collection.TreeTable;
+import org.apache.sis.test.DependsOn;
+import org.apache.sis.test.TestCase;
+import org.apache.sis.util.Exceptions;
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+
+/**
+ * Tests the {@link LocalizedParseException} class.
+ *
+ * <p><b>Note:</b> this test case contains a method which was previously
part of public API,
+ * but has been removed because considered too convolved.</p>
+ *
+ * @author  Martin Desruisseaux (Geomatys)
+ * @since   0.3 (derived from geotk-3.04)
+ * @version 0.3
+ * @module
+ */
+@DependsOn(org.apache.sis.util.resources.IndexedResourceBundleTest.class)
+public final strictfp class LocalizedParseExceptionTest extends TestCase {
+    /**
+     * Creates a {@link ParseException} with a localized message built from the given parsing
+     * information. The exception returned by this method contains the error message in two
+     * languages:
+     *
+     * <ul>
+     *   <li>{@link ParseException#getMessage()} returns the message in the default
locale.</li>
+     *   <li>{@link ParseException#getLocalizedMessage()} returns the message in the
locale given
+     *       in argument to this method.</li>
+     * </ul>
+     *
+     * This locale given to this method is usually the {@link java.text.Format} locale,
+     * which is presumed to be the end-user locale.
+     *
+     * @param  locale The locale for {@link ParseException#getLocalizedMessage()}.
+     * @param  type   The type of objects parsed by the {@link java.text.Format}.
+     * @param  text   The text that {@code Format} failed to parse.
+     * @param  pos    Index of the {@linkplain ParsePosition#getIndex() first parsed character},
+     *                together with the {@linkplain ParsePosition#getErrorIndex() error index}.
+     * @return The localized exception.
+     */
+    public static ParseException createParseException(final Locale locale, final Class<?>
type,
+            final CharSequence text, final ParsePosition pos)
+    {
+        final int offset = pos.getIndex();
+        final int errorOffset = Math.max(offset, pos.getErrorIndex());
+        return new LocalizedParseException(locale,
+                LocalizedParseException.arguments(type, text, offset, errorOffset), errorOffset);
+    }
+
+    /**
+     * Tests the {@link LocalizedParseException} constructor. This method also tests
+     * {@link Exceptions#getLocalizedMessage(Throwable, Locale)} as a side-effect.
+     */
+    @Test
+    public void testCreateParseException() {
+        final ParsePosition pos = new ParsePosition(0);
+        pos.setErrorIndex(5);
+        final ParseException e = createParseException(
+                Locale.CANADA, Angle.class, "Some text to parse", pos);
+        String message = e.getLocalizedMessage();
+        assertTrue(message, message.contains("Some text to parse"));
+        assertTrue(message, message.contains("can not be parsed"));
+        assertTrue(message, message.contains("Angle"));
+
+        assertEquals(message, Exceptions.getLocalizedMessage(e, Locale.CANADA));
+        message = Exceptions.getLocalizedMessage(e, Locale.FRANCE);
+        assertTrue(message, message.contains("Some text to parse"));
+        assertTrue(message, message.contains("n’est pas reconnu"));
+        assertTrue(message, message.contains("Angle"));
+    }
+
+    /**
+     * Tests the undocumented special case, for SIS internal usage only.
+     * Such special cases many change in any future version without notice.
+     */
+    @Test
+    public void testSpecialCase() {
+        final ParsePosition pos = new ParsePosition(0);
+        pos.setErrorIndex(5);
+        final ParseException e = createParseException(
+                Locale.CANADA, TreeTable.Node.class, "Some text to parse", pos);
+        String message = e.getLocalizedMessage();
+        assertTrue(message, message.contains("Node “text” has no parent."));
+    }
+}

Propchange: sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/internal/util/LocalizedParseExceptionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/internal/util/LocalizedParseExceptionTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/test/suite/UtilityTestSuite.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/test/suite/UtilityTestSuite.java?rev=1406234&r1=1406233&r2=1406234&view=diff
==============================================================================
--- sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/test/suite/UtilityTestSuite.java
(original)
+++ sis/branches/JDK7/sis-utility/src/test/java/org/apache/sis/test/suite/UtilityTestSuite.java
Tue Nov  6 17:28:07 2012
@@ -58,6 +58,7 @@ import org.junit.runners.Suite;
   org.apache.sis.util.type.DefaultInternationalStringTest.class,
 
   // Formatting
+  org.apache.sis.internal.util.LocalizedParseExceptionTest.class,
   org.apache.sis.measure.FormattedCharacterIteratorTest.class,
   org.apache.sis.measure.AngleFormatTest.class,
   org.apache.sis.measure.AngleTest.class,



Mime
View raw message