use of org.hibernate.search.integrationtest.backend.tck.testsupport.types.NormalizedStringFieldTypeDescriptor in project hibernate-search by hibernate.
the class IndexValueFieldTypeDescriptorBaseIT method normalizerName.
@Test
public void normalizerName() {
IndexValueFieldTypeDescriptor typeDescriptor = getTypeDescriptor("default");
Optional<String> normalizerName = typeDescriptor.normalizerName();
if (fieldType instanceof NormalizedStringFieldTypeDescriptor) {
assertThat(normalizerName).contains(DefaultAnalysisDefinitions.NORMALIZER_LOWERCASE.name);
} else {
assertThat(normalizerName).isEmpty();
}
}
Aggregations