Skip to content

Commit

Permalink
HBX-2390: Create a JBoss Tools adaptation layer in Hibernate Tools
Browse files Browse the repository at this point in the history
  - Set a default locale for test case 'org.hibernate.tool.orm.jbt.wrp.TypeFactoryWrapperTest#testGetTypeFormats()' if it is not set
  - Include the 'jbt' module in the main build

Signed-off-by: Koen Aers <[email protected]>
  • Loading branch information
koentsje committed Jul 4, 2023
1 parent 608590f commit b849a32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<TypeWrapper, String> typeFormats = TypeFactoryWrapper.INSTANCE.getTypeFormats();
assertEquals(23, typeFormats.size());
assertEquals("true", typeFormats.get(TypeFactoryWrapper.INSTANCE.getBooleanType()));
Expand Down Expand Up @@ -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);
}
}
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@

<modules>
<module>orm</module>
<module>jbt</module>
<module>maven</module>
<module>ant</module>
<module>test</module>
Expand Down

0 comments on commit b849a32

Please sign in to comment.