use of org.opensearch.index.mapper.NumberFieldMapper.NumberType in project OpenSearch by opensearch-project.
the class NumberFieldTypeTests method testEqualsWithDifferentNumberTypes.
public void testEqualsWithDifferentNumberTypes() {
NumberType type = randomFrom(NumberType.values());
NumberFieldType fieldType = new NumberFieldType("foo", type);
NumberType otherType = randomValueOtherThan(type, () -> randomFrom(NumberType.values()));
NumberFieldType otherFieldType = new NumberFieldType("foo", otherType);
assertNotEquals(fieldType, otherFieldType);
}
Aggregations