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