Search in sources :

Example 1 with NormalizedStringFieldTypeDescriptor

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();
    }
}
Also used : IndexValueFieldTypeDescriptor(org.hibernate.search.engine.backend.metamodel.IndexValueFieldTypeDescriptor) NormalizedStringFieldTypeDescriptor(org.hibernate.search.integrationtest.backend.tck.testsupport.types.NormalizedStringFieldTypeDescriptor) Test(org.junit.Test)

Aggregations

IndexValueFieldTypeDescriptor (org.hibernate.search.engine.backend.metamodel.IndexValueFieldTypeDescriptor)1 NormalizedStringFieldTypeDescriptor (org.hibernate.search.integrationtest.backend.tck.testsupport.types.NormalizedStringFieldTypeDescriptor)1 Test (org.junit.Test)1