Browse Source

Renamed org.springframework.ui.format package to simply org.springframework.format package; 'ui' is not adding any value - it makes the package name longer and also discourages use of formatters outside in other "non ui" environments where localized formatting of field values is needed.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2266 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Keith Donald 16 years ago
parent
commit
74f2f44fdd
  1. 2
      org.springframework.context/src/main/java/org/springframework/format/AnnotationFormatterFactory.java
  2. 2
      org.springframework.context/src/main/java/org/springframework/format/Formatter.java
  3. 2
      org.springframework.context/src/main/java/org/springframework/format/FormatterRegistry.java
  4. 2
      org.springframework.context/src/main/java/org/springframework/format/Parser.java
  5. 2
      org.springframework.context/src/main/java/org/springframework/format/Printer.java
  6. 2
      org.springframework.context/src/main/java/org/springframework/format/annotation/DateTimeFormat.java
  7. 2
      org.springframework.context/src/main/java/org/springframework/format/annotation/ISODateTimeFormat.java
  8. 2
      org.springframework.context/src/main/java/org/springframework/format/annotation/package-info.java
  9. 4
      org.springframework.context/src/main/java/org/springframework/format/datetime/DateFormatter.java
  10. 8
      org.springframework.context/src/main/java/org/springframework/format/datetime/joda/AbstractDateTimeAnnotationFormatterFactory.java
  11. 6
      org.springframework.context/src/main/java/org/springframework/format/datetime/joda/DateTimeFormatAnnotationFormatterFactory.java
  12. 4
      org.springframework.context/src/main/java/org/springframework/format/datetime/joda/DateTimeParser.java
  13. 6
      org.springframework.context/src/main/java/org/springframework/format/datetime/joda/ISODateTimeFormatAnnotationFormatterFactory.java
  14. 2
      org.springframework.context/src/main/java/org/springframework/format/datetime/joda/JodaTimeContext.java
  15. 2
      org.springframework.context/src/main/java/org/springframework/format/datetime/joda/JodaTimeContextHolder.java
  16. 2
      org.springframework.context/src/main/java/org/springframework/format/datetime/joda/JodaTimeConverters.java
  17. 8
      org.springframework.context/src/main/java/org/springframework/format/datetime/joda/JodaTimeFormattingConfigurer.java
  18. 4
      org.springframework.context/src/main/java/org/springframework/format/datetime/joda/MillisecondInstantPrinter.java
  19. 4
      org.springframework.context/src/main/java/org/springframework/format/datetime/joda/ReadableInstantPrinter.java
  20. 4
      org.springframework.context/src/main/java/org/springframework/format/datetime/joda/ReadablePartialPrinter.java
  21. 2
      org.springframework.context/src/main/java/org/springframework/format/datetime/joda/package-info.java
  22. 2
      org.springframework.context/src/main/java/org/springframework/format/datetime/package-info.java
  23. 4
      org.springframework.context/src/main/java/org/springframework/format/number/AbstractNumberFormatter.java
  24. 2
      org.springframework.context/src/main/java/org/springframework/format/number/CurrencyFormatter.java
  25. 2
      org.springframework.context/src/main/java/org/springframework/format/number/DecimalFormatter.java
  26. 2
      org.springframework.context/src/main/java/org/springframework/format/number/IntegerFormatter.java
  27. 2
      org.springframework.context/src/main/java/org/springframework/format/number/PercentFormatter.java
  28. 2
      org.springframework.context/src/main/java/org/springframework/format/number/package-info.java
  29. 2
      org.springframework.context/src/main/java/org/springframework/format/package-info.java
  30. 12
      org.springframework.context/src/main/java/org/springframework/format/support/FormattingConversionService.java
  31. 4
      org.springframework.context/src/main/java/org/springframework/format/support/FormattingPropertyEditorAdapter.java
  32. 2
      org.springframework.context/src/main/java/org/springframework/format/support/package-info.java
  33. 2
      org.springframework.context/src/main/java/org/springframework/validation/AbstractPropertyBindingResult.java
  34. 3
      org.springframework.context/src/test/java/org/springframework/format/datetime/DateFormatterTests.java
  35. 9
      org.springframework.context/src/test/java/org/springframework/format/datetime/joda/JodaTimeFormattingTests.java
  36. 3
      org.springframework.context/src/test/java/org/springframework/format/number/CurrencyFormatterTests.java
  37. 4
      org.springframework.context/src/test/java/org/springframework/format/number/DecimalFormatterTests.java
  38. 4
      org.springframework.context/src/test/java/org/springframework/format/number/IntegerFormatterTests.java
  39. 4
      org.springframework.context/src/test/java/org/springframework/format/number/PercentFormatterTests.java
  40. 15
      org.springframework.context/src/test/java/org/springframework/format/support/FormattingConversionServiceTests.java
  41. 4
      org.springframework.context/src/test/java/org/springframework/validation/DataBinderTests.java

2
org.springframework.context/src/main/java/org/springframework/ui/format/AnnotationFormatterFactory.java → org.springframework.context/src/main/java/org/springframework/format/AnnotationFormatterFactory.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format;
package org.springframework.format;
import java.lang.annotation.Annotation;
import java.util.Set;

2
org.springframework.context/src/main/java/org/springframework/ui/format/Formatter.java → org.springframework.context/src/main/java/org/springframework/format/Formatter.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format;
package org.springframework.format;
/**
* Formats objects of type T.

2
org.springframework.context/src/main/java/org/springframework/ui/format/FormatterRegistry.java → org.springframework.context/src/main/java/org/springframework/format/FormatterRegistry.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format;
package org.springframework.format;
import java.lang.annotation.Annotation;

2
org.springframework.context/src/main/java/org/springframework/ui/format/Parser.java → org.springframework.context/src/main/java/org/springframework/format/Parser.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format;
package org.springframework.format;
import java.text.ParseException;
import java.util.Locale;

2
org.springframework.context/src/main/java/org/springframework/ui/format/Printer.java → org.springframework.context/src/main/java/org/springframework/format/Printer.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format;
package org.springframework.format;
import java.util.Locale;

2
org.springframework.context/src/main/java/org/springframework/ui/format/annotation/DateTimeFormat.java → org.springframework.context/src/main/java/org/springframework/format/annotation/DateTimeFormat.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.annotation;
package org.springframework.format.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

2
org.springframework.context/src/main/java/org/springframework/ui/format/annotation/ISODateTimeFormat.java → org.springframework.context/src/main/java/org/springframework/format/annotation/ISODateTimeFormat.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.annotation;
package org.springframework.format.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

2
org.springframework.context/src/main/java/org/springframework/ui/format/annotation/package-info.java → org.springframework.context/src/main/java/org/springframework/format/annotation/package-info.java

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/**
* Annotations for declaratively configuring field formatting rules.
*/
package org.springframework.ui.format.annotation;
package org.springframework.format.annotation;

4
org.springframework.context/src/main/java/org/springframework/ui/format/date/DateFormatter.java → org.springframework.context/src/main/java/org/springframework/format/datetime/DateFormatter.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format.date;
package org.springframework.format.datetime;
import java.text.DateFormat;
import java.text.ParseException;
@ -23,7 +23,7 @@ import java.util.Date; @@ -23,7 +23,7 @@ import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
import org.springframework.ui.format.Formatter;
import org.springframework.format.Formatter;
/**
* A formatter for {@link java.util.Date} types.

8
org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/AbstractDateTimeAnnotationFormatterFactory.java → org.springframework.context/src/main/java/org/springframework/format/datetime/joda/AbstractDateTimeAnnotationFormatterFactory.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;
import java.lang.annotation.Annotation;
import java.util.Calendar;
@ -30,9 +30,9 @@ import org.joda.time.LocalTime; @@ -30,9 +30,9 @@ import org.joda.time.LocalTime;
import org.joda.time.ReadableInstant;
import org.joda.time.ReadablePartial;
import org.joda.time.format.DateTimeFormatter;
import org.springframework.ui.format.AnnotationFormatterFactory;
import org.springframework.ui.format.Parser;
import org.springframework.ui.format.Printer;
import org.springframework.format.AnnotationFormatterFactory;
import org.springframework.format.Parser;
import org.springframework.format.Printer;
/**
* Base class for annotation-based Joda DateTime formatters.

6
org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/DateTimeFormatAnnotationFormatterFactory.java → org.springframework.context/src/main/java/org/springframework/format/datetime/joda/DateTimeFormatAnnotationFormatterFactory.java

@ -13,11 +13,11 @@ @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;
import org.joda.time.format.DateTimeFormatter;
import org.springframework.ui.format.annotation.DateTimeFormat;
import org.springframework.ui.format.annotation.DateTimeFormat.Style;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.Style;
/**
* Formats properties annotated with the {@link DateTimeFormat} annotation.

4
org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/DateTimeParser.java → org.springframework.context/src/main/java/org/springframework/format/datetime/joda/DateTimeParser.java

@ -13,14 +13,14 @@ @@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;
import java.text.ParseException;
import java.util.Locale;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormatter;
import org.springframework.ui.format.Parser;
import org.springframework.format.Parser;
/**
* Parses Joda Time {@link DateTime} instances using a {@link DateTimeFormatter}.

6
org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/ISODateTimeFormatAnnotationFormatterFactory.java → org.springframework.context/src/main/java/org/springframework/format/datetime/joda/ISODateTimeFormatAnnotationFormatterFactory.java

@ -13,11 +13,11 @@ @@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;
import org.joda.time.format.DateTimeFormatter;
import org.springframework.ui.format.annotation.ISODateTimeFormat;
import org.springframework.ui.format.annotation.ISODateTimeFormat.Style;
import org.springframework.format.annotation.ISODateTimeFormat;
import org.springframework.format.annotation.ISODateTimeFormat.Style;
/**
* Formats properties annotated with the {@link ISODateTimeFormat} annotation.

2
org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/JodaTimeContext.java → org.springframework.context/src/main/java/org/springframework/format/datetime/joda/JodaTimeContext.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;
import org.joda.time.Chronology;
import org.joda.time.DateTimeZone;

2
org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/JodaTimeContextHolder.java → org.springframework.context/src/main/java/org/springframework/format/datetime/joda/JodaTimeContextHolder.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;
import java.util.Locale;

2
org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/JodaTimeConverters.java → org.springframework.context/src/main/java/org/springframework/format/datetime/joda/JodaTimeConverters.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;
import java.util.Calendar;
import java.util.Date;

8
org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/JodaTimeFormattingConfigurer.java → org.springframework.context/src/main/java/org/springframework/format/datetime/joda/JodaTimeFormattingConfigurer.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;
import java.util.Calendar;
import java.util.Date;
@ -26,9 +26,9 @@ import org.joda.time.ReadableInstant; @@ -26,9 +26,9 @@ import org.joda.time.ReadableInstant;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.ISODateTimeFormat;
import org.springframework.ui.format.FormatterRegistry;
import org.springframework.ui.format.Parser;
import org.springframework.ui.format.Printer;
import org.springframework.format.FormatterRegistry;
import org.springframework.format.Parser;
import org.springframework.format.Printer;
/**
* Configures Joda Time's Formatting system for use with Spring.

4
org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/MillisecondInstantPrinter.java → org.springframework.context/src/main/java/org/springframework/format/datetime/joda/MillisecondInstantPrinter.java

@ -13,12 +13,12 @@ @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;
import java.util.Locale;
import org.joda.time.format.DateTimeFormatter;
import org.springframework.ui.format.Printer;
import org.springframework.format.Printer;
/**
* Prints Long instances using a {@link DateTimeFormatter}.

4
org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/ReadableInstantPrinter.java → org.springframework.context/src/main/java/org/springframework/format/datetime/joda/ReadableInstantPrinter.java

@ -13,13 +13,13 @@ @@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;
import java.util.Locale;
import org.joda.time.ReadableInstant;
import org.joda.time.format.DateTimeFormatter;
import org.springframework.ui.format.Printer;
import org.springframework.format.Printer;
/**
* Prints Joda Time {@link ReadableInstant} instances using a {@link DateTimeFormatter}.

4
org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/ReadablePartialPrinter.java → org.springframework.context/src/main/java/org/springframework/format/datetime/joda/ReadablePartialPrinter.java

@ -13,13 +13,13 @@ @@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;
import java.util.Locale;
import org.joda.time.ReadablePartial;
import org.joda.time.format.DateTimeFormatter;
import org.springframework.ui.format.Printer;
import org.springframework.format.Printer;
/**
* Prints Joda Time {@link ReadablePartial} instances using a {@link DateTimeFormatter}.

2
org.springframework.context/src/main/java/org/springframework/ui/format/jodatime/package-info.java → org.springframework.context/src/main/java/org/springframework/format/datetime/joda/package-info.java

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/**
* Integration with the Joda Time for formatting Joda types as well as standard JDK Date types.
*/
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;

2
org.springframework.context/src/main/java/org/springframework/ui/format/date/package-info.java → org.springframework.context/src/main/java/org/springframework/format/datetime/package-info.java

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/**
* Formatters for <code>java.util.Date</code> properties.
*/
package org.springframework.ui.format.date;
package org.springframework.format.datetime;

4
org.springframework.context/src/main/java/org/springframework/ui/format/number/AbstractNumberFormatter.java → org.springframework.context/src/main/java/org/springframework/format/number/AbstractNumberFormatter.java

@ -14,14 +14,14 @@ @@ -14,14 +14,14 @@
* limitations under the License.
*/
package org.springframework.ui.format.number;
package org.springframework.format.number;
import java.text.NumberFormat;
import java.text.ParseException;
import java.text.ParsePosition;
import java.util.Locale;
import org.springframework.ui.format.Formatter;
import org.springframework.format.Formatter;
/**
* Abstract formatter for Numbers,

2
org.springframework.context/src/main/java/org/springframework/ui/format/number/CurrencyFormatter.java → org.springframework.context/src/main/java/org/springframework/format/number/CurrencyFormatter.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format.number;
package org.springframework.format.number;
import java.math.BigDecimal;
import java.math.RoundingMode;

2
org.springframework.context/src/main/java/org/springframework/ui/format/number/DecimalFormatter.java → org.springframework.context/src/main/java/org/springframework/format/number/DecimalFormatter.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format.number;
package org.springframework.format.number;
import java.text.DecimalFormat;
import java.text.NumberFormat;

2
org.springframework.context/src/main/java/org/springframework/ui/format/number/IntegerFormatter.java → org.springframework.context/src/main/java/org/springframework/format/number/IntegerFormatter.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format.number;
package org.springframework.format.number;
import java.text.NumberFormat;
import java.util.Locale;

2
org.springframework.context/src/main/java/org/springframework/ui/format/number/PercentFormatter.java → org.springframework.context/src/main/java/org/springframework/format/number/PercentFormatter.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format.number;
package org.springframework.format.number;
import java.text.DecimalFormat;
import java.text.NumberFormat;

2
org.springframework.context/src/main/java/org/springframework/ui/format/number/package-info.java → org.springframework.context/src/main/java/org/springframework/format/number/package-info.java

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/**
* Formatters for <code>java.lang.Number</code> properties.
*/
package org.springframework.ui.format.number;
package org.springframework.format.number;

2
org.springframework.context/src/main/java/org/springframework/ui/format/package-info.java → org.springframework.context/src/main/java/org/springframework/format/package-info.java

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
/**
* An API for defining Formatters to format field model values for display in a UI.
*/
package org.springframework.ui.format;
package org.springframework.format;

12
org.springframework.context/src/main/java/org/springframework/ui/format/support/FormattingConversionService.java → org.springframework.context/src/main/java/org/springframework/format/support/FormattingConversionService.java

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.ui.format.support;
package org.springframework.format.support;
import java.lang.annotation.Annotation;
import java.text.ParseException;
@ -29,11 +29,11 @@ import org.springframework.core.convert.support.ConditionalGenericConverter; @@ -29,11 +29,11 @@ import org.springframework.core.convert.support.ConditionalGenericConverter;
import org.springframework.core.convert.support.DefaultConversionService;
import org.springframework.core.convert.support.GenericConversionService;
import org.springframework.core.convert.support.GenericConverter;
import org.springframework.ui.format.AnnotationFormatterFactory;
import org.springframework.ui.format.Formatter;
import org.springframework.ui.format.FormatterRegistry;
import org.springframework.ui.format.Parser;
import org.springframework.ui.format.Printer;
import org.springframework.format.AnnotationFormatterFactory;
import org.springframework.format.Formatter;
import org.springframework.format.FormatterRegistry;
import org.springframework.format.Parser;
import org.springframework.format.Printer;
/**
* A ConversionService implementation designed to be configured as a {@link FormatterRegistry}..

4
org.springframework.context/src/main/java/org/springframework/ui/format/support/FormattingPropertyEditorAdapter.java → org.springframework.context/src/main/java/org/springframework/format/support/FormattingPropertyEditorAdapter.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format.support;
package org.springframework.format.support;
import java.beans.PropertyEditorSupport;
@ -23,7 +23,7 @@ import org.springframework.util.Assert; @@ -23,7 +23,7 @@ import org.springframework.util.Assert;
/**
* Adapter that exposes a {@link java.beans.PropertyEditor} for any given
* {@link org.springframework.ui.format.Formatter}, retrieving the current
* {@link org.springframework.format.Formatter}, retrieving the current
* Locale from {@link org.springframework.context.i18n.LocaleContextHolder}.
*
* @author Juergen Hoeller

2
org.springframework.context/src/main/java/org/springframework/ui/format/support/package-info.java → org.springframework.context/src/main/java/org/springframework/format/support/package-info.java

@ -2,4 +2,4 @@ @@ -2,4 +2,4 @@
* Support classes for the formatting package,
* providing common implementations as well as adapters.
*/
package org.springframework.ui.format.support;
package org.springframework.format.support;

2
org.springframework.context/src/main/java/org/springframework/validation/AbstractPropertyBindingResult.java

@ -24,7 +24,7 @@ import org.springframework.beans.PropertyAccessorUtils; @@ -24,7 +24,7 @@ import org.springframework.beans.PropertyAccessorUtils;
import org.springframework.beans.PropertyEditorRegistry;
import org.springframework.core.convert.ConversionService;
import org.springframework.core.convert.TypeDescriptor;
import org.springframework.ui.format.support.FormattingPropertyEditorAdapter;
import org.springframework.format.support.FormattingPropertyEditorAdapter;
import org.springframework.util.Assert;
/**

3
org.springframework.context/src/test/java/org/springframework/ui/format/date/DateFormatterTests.java → org.springframework.context/src/test/java/org/springframework/format/datetime/DateFormatterTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format.date;
package org.springframework.format.datetime;
import java.text.ParseException;
import java.util.Calendar;
@ -22,6 +22,7 @@ import java.util.Locale; @@ -22,6 +22,7 @@ import java.util.Locale;
import static org.junit.Assert.*;
import org.junit.Test;
import org.springframework.format.datetime.DateFormatter;
/**
* @author Keith Donald

9
org.springframework.context/src/test/java/org/springframework/ui/format/jodatime/JodaTimeFormattingTests.java → org.springframework.context/src/test/java/org/springframework/format/datetime/joda/JodaTimeFormattingTests.java

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
package org.springframework.ui.format.jodatime;
package org.springframework.format.datetime.joda;
import static org.junit.Assert.assertEquals;
@ -15,9 +15,10 @@ import org.junit.Before; @@ -15,9 +15,10 @@ import org.junit.Before;
import org.junit.Test;
import org.springframework.beans.MutablePropertyValues;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.ui.format.annotation.DateTimeFormat;
import org.springframework.ui.format.annotation.DateTimeFormat.Style;
import org.springframework.ui.format.support.FormattingConversionService;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.Style;
import org.springframework.format.datetime.joda.JodaTimeFormattingConfigurer;
import org.springframework.format.support.FormattingConversionService;
import org.springframework.validation.DataBinder;
public class JodaTimeFormattingTests {

3
org.springframework.context/src/test/java/org/springframework/ui/format/number/CurrencyFormatterTests.java → org.springframework.context/src/test/java/org/springframework/format/number/CurrencyFormatterTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format.number;
package org.springframework.format.number;
import static org.junit.Assert.assertEquals;
@ -24,6 +24,7 @@ import java.text.ParseException; @@ -24,6 +24,7 @@ import java.text.ParseException;
import java.util.Locale;
import org.junit.Test;
import org.springframework.format.number.CurrencyFormatter;
/**
* @author Keith Donald

4
org.springframework.context/src/test/java/org/springframework/ui/format/number/DecimalFormatterTests.java → org.springframework.context/src/test/java/org/springframework/format/number/DecimalFormatterTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format.number;
package org.springframework.format.number;
import static org.junit.Assert.assertEquals;
@ -23,7 +23,7 @@ import java.text.ParseException; @@ -23,7 +23,7 @@ import java.text.ParseException;
import java.util.Locale;
import org.junit.Test;
import org.springframework.ui.format.number.DecimalFormatter;
import org.springframework.format.number.DecimalFormatter;
/**
* @author Keith Donald

4
org.springframework.context/src/test/java/org/springframework/ui/format/number/IntegerFormatterTests.java → org.springframework.context/src/test/java/org/springframework/format/number/IntegerFormatterTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format.number;
package org.springframework.format.number;
import static org.junit.Assert.assertEquals;
@ -22,7 +22,7 @@ import java.text.ParseException; @@ -22,7 +22,7 @@ import java.text.ParseException;
import java.util.Locale;
import org.junit.Test;
import org.springframework.ui.format.number.IntegerFormatter;
import org.springframework.format.number.IntegerFormatter;
/**
* @author Keith Donald

4
org.springframework.context/src/test/java/org/springframework/ui/format/number/PercentFormatterTests.java → org.springframework.context/src/test/java/org/springframework/format/number/PercentFormatterTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format.number;
package org.springframework.format.number;
import static org.junit.Assert.assertEquals;
@ -23,7 +23,7 @@ import java.text.ParseException; @@ -23,7 +23,7 @@ import java.text.ParseException;
import java.util.Locale;
import org.junit.Test;
import org.springframework.ui.format.number.PercentFormatter;
import org.springframework.format.number.PercentFormatter;
/**
* @author Keith Donald

15
org.springframework.context/src/test/java/org/springframework/ui/format/support/FormattingConversionServiceTests.java → org.springframework.context/src/test/java/org/springframework/format/support/FormattingConversionServiceTests.java

@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.ui.format.support;
package org.springframework.format.support;
import static org.junit.Assert.assertEquals;
@ -31,11 +31,12 @@ import org.junit.Test; @@ -31,11 +31,12 @@ import org.junit.Test;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.core.convert.TypeDescriptor;
import org.springframework.core.convert.converter.Converter;
import org.springframework.ui.format.annotation.DateTimeFormat.Style;
import org.springframework.ui.format.jodatime.DateTimeFormatAnnotationFormatterFactory;
import org.springframework.ui.format.jodatime.DateTimeParser;
import org.springframework.ui.format.jodatime.ReadablePartialPrinter;
import org.springframework.ui.format.number.IntegerFormatter;
import org.springframework.format.annotation.DateTimeFormat.Style;
import org.springframework.format.datetime.joda.DateTimeFormatAnnotationFormatterFactory;
import org.springframework.format.datetime.joda.DateTimeParser;
import org.springframework.format.datetime.joda.ReadablePartialPrinter;
import org.springframework.format.number.IntegerFormatter;
import org.springframework.format.support.FormattingConversionService;
/**
* @author Keith Donald
@ -105,7 +106,7 @@ public class FormattingConversionServiceTests { @@ -105,7 +106,7 @@ public class FormattingConversionServiceTests {
private static class Model {
@SuppressWarnings("unused")
@org.springframework.ui.format.annotation.DateTimeFormat(dateStyle = Style.SHORT)
@org.springframework.format.annotation.DateTimeFormat(dateStyle = Style.SHORT)
public Date date;
}

4
org.springframework.context/src/test/java/org/springframework/validation/DataBinderTests.java

@ -44,8 +44,8 @@ import org.springframework.context.i18n.LocaleContextHolder; @@ -44,8 +44,8 @@ import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.context.support.StaticMessageSource;
import org.springframework.core.convert.support.DefaultConversionService;
import org.springframework.ui.format.number.DecimalFormatter;
import org.springframework.ui.format.support.FormattingConversionService;
import org.springframework.format.number.DecimalFormatter;
import org.springframework.format.support.FormattingConversionService;
import org.springframework.util.StringUtils;
/**

Loading…
Cancel
Save