diff --git a/jbt/src/test/java/org/hibernate/tool/orm/jbt/wrp/TypeFactoryWrapperTest.java b/jbt/src/test/java/org/hibernate/tool/orm/jbt/wrp/TypeFactoryWrapperTest.java index 72c2a3482f..6a270a9a42 100644 --- a/jbt/src/test/java/org/hibernate/tool/orm/jbt/wrp/TypeFactoryWrapperTest.java +++ b/jbt/src/test/java/org/hibernate/tool/orm/jbt/wrp/TypeFactoryWrapperTest.java @@ -173,6 +173,10 @@ public void testGetBasicType() { @Test public void testGetTypeFormats() { + Locale savedLocale = Locale.getDefault(); + if (savedLocale == null) { + Locale.setDefault(new Locale("nl-BE")); + } Map typeFormats = TypeFactoryWrapper.INSTANCE.getTypeFormats(); assertEquals(23, typeFormats.size()); assertEquals("true", typeFormats.get(TypeFactoryWrapper.INSTANCE.getBooleanType())); @@ -214,5 +218,6 @@ public void testGetTypeFormats() { typeFormats.get(TypeFactoryWrapper.INSTANCE.getTimezoneType())); assertEquals("true", typeFormats.get(TypeFactoryWrapper.INSTANCE.getTrueFalseType())); assertEquals("true", typeFormats.get(TypeFactoryWrapper.INSTANCE.getYesNoType())); + Locale.setDefault(savedLocale); } } diff --git a/pom.xml b/pom.xml index c073bba26f..abd7b0a6ce 100644 --- a/pom.xml +++ b/pom.xml @@ -76,6 +76,7 @@ orm + jbt maven ant test