blob: 2023f7fdb3c4d5a270685fd434f07c186c32c553 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.flink.api.java.typeutils;
import org.apache.flink.api.common.typeutils.TypeInformationTestBase;
/**
* Test for {@link EnumTypeInfo}.
*/
public class EnumTypeInfoTest extends TypeInformationTestBase<EnumTypeInfo<?>> {
@Override
@SuppressWarnings("unchecked")
protected EnumTypeInfo<?>[] getTestData() {
return new EnumTypeInfo<?>[] {
(EnumTypeInfo<?>) new EnumTypeInfo(TestEnum.class),
(EnumTypeInfo<?>) new EnumTypeInfo(AlternativeEnum.class)
};
}
enum TestEnum {
ONE, TWO
}
enum AlternativeEnum {
ONE, TWO
}
}