Skip to content

Commit

Permalink
HBX-2780: Create Interface for TableFilterWrapper
Browse files Browse the repository at this point in the history
Signed-off-by: Koen Aers <koen.aers@gmail.com>
  • Loading branch information
koentsje committed Apr 30, 2024
1 parent ac16f2d commit 4026cf5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,19 @@

import org.hibernate.tool.orm.jbt.internal.factory.TypeFactoryWrapperFactory;
import org.hibernate.tool.orm.jbt.internal.util.TypeRegistry;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;

public class TypeFactoryWrapperTest {

private TypeFactoryWrapper typeFactoryWrapper = null;

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

@BeforeEach
public void beforeEach() {
typeFactoryWrapper = TypeFactoryWrapperFactory.createTypeFactoryWrapper();
Expand Down Expand Up @@ -182,7 +187,6 @@ public void testGetBasicType() {
assertEquals("string", typeWrapper.getName());
}

@Disabled
@Test
public void testGetTypeFormats() {
Map<TypeWrapper, String> typeFormats = typeFactoryWrapper.getTypeFormats();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,21 @@
import java.util.TimeZone;

import org.hibernate.tool.orm.jbt.api.TypeWrapper;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

public class TypeRegistryTest {

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

@BeforeEach
public void beforeEach() {
TypeRegistry.TYPE_REGISTRY.clear();
TypeRegistry.TYPE_FORMATS = null;
Locale.setDefault(new Locale("nl", "BE"));
}

@Test
Expand Down

0 comments on commit 4026cf5

Please sign in to comment.