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 377e7a9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,25 @@

import org.hibernate.tool.orm.jbt.wrp.TypeWrapperFactory.TypeWrapper;
import org.hibernate.type.Type;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

public class TypeFactoryWrapperTest {

private static Locale SAVED_LOCALE = null;

@BeforeAll
public static void beforeAll() {
SAVED_LOCALE = Locale.getDefault();
Locale.setDefault(new Locale("nl", "BE"));
}

@AfterAll
public static void afterAll() {
Locale.setDefault(SAVED_LOCALE);
}

@Test
public void testConstruction() {
assertNotNull(TypeFactoryWrapper.INSTANCE);
Expand Down
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 377e7a9

Please sign in to comment.