Search in sources :

Example 1 with NumberType

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);
}
Also used : NumberType(org.opensearch.index.mapper.NumberFieldMapper.NumberType) NumberFieldType(org.opensearch.index.mapper.NumberFieldMapper.NumberFieldType)

Aggregations

NumberFieldType (org.opensearch.index.mapper.NumberFieldMapper.NumberFieldType)1 NumberType (org.opensearch.index.mapper.NumberFieldMapper.NumberType)1