StringToEnumTypeMapper implements TypeMapper<String, T> { @Override public String getLabel() { return "String to 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 getLabel() { assertTrue(instance.getLabel().toLowerCase().contains("enum")); }