StringToEnumTypeMapper implements TypeMapper<String, T> { @Override public Category getJavaTypeCategory(Column column) { return Category.ENUM; } StringToEnumTypeMapper(); @Override String getLabel(); @Override Type getJavaType(Column column); @Override Category getJavaTypeCategory(Column column); @Override T toJavaType(Column column, Class<?> entityType, String value); @Override String toDatabaseType(T constant); @Inject public Injector injector; }
@Test void getJavaTypeCategory() { assertEquals(TypeMapper.Category.ENUM, instance.getJavaTypeCategory(column)); }