use of org.apache.flink.FlinkVersion in project flink by apache.
the class CompositeTypeSerializerUpgradeTest method testSpecifications.
@Parameterized.Parameters(name = "Test Specification = {0}")
public static Collection<TestSpecification<?, ?>> testSpecifications() throws Exception {
ArrayList<TestSpecification<?, ?>> testSpecifications = new ArrayList<>();
for (FlinkVersion flinkVersion : MIGRATION_VERSIONS) {
testSpecifications.add(new TestSpecification<>("either-serializer", flinkVersion, EitherSerializerSetup.class, EitherSerializerVerifier.class));
testSpecifications.add(new TestSpecification<>("generic-array-serializer", flinkVersion, GenericArraySerializerSetup.class, GenericArraySerializerVerifier.class));
}
return testSpecifications;
}
use of org.apache.flink.FlinkVersion in project flink by apache.
the class ValueArraySerializerUpgradeTest method testSpecifications.
@Parameterized.Parameters(name = "Test Specification = {0}")
public static Collection<TestSpecification<?, ?>> testSpecifications() throws Exception {
ArrayList<TestSpecification<?, ?>> testSpecifications = new ArrayList<>();
for (FlinkVersion flinkVersion : MIGRATION_VERSIONS) {
testSpecifications.add(new TestSpecification<>("byte-value-array-serializer", flinkVersion, ByteValueArraySerializerSetup.class, ByteValueArraySerializerVerifier.class));
testSpecifications.add(new TestSpecification<>("char-value-array-serializer", flinkVersion, CharValueArraySerializerSetup.class, CharValueArraySerializerVerifier.class));
testSpecifications.add(new TestSpecification<>("double-value-array-serializer", flinkVersion, DoubleValueArraySerializerSetup.class, DoubleValueArraySerializerVerifier.class));
testSpecifications.add(new TestSpecification<>("float-value-array-serializer", flinkVersion, FloatValueArraySerializerSetup.class, FloatValueArraySerializerVerifier.class));
testSpecifications.add(new TestSpecification<>("int-value-array-serializer", flinkVersion, IntValueArraySerializerSetup.class, IntValueArraySerializerVerifier.class));
testSpecifications.add(new TestSpecification<>("long-value-array-serializer", flinkVersion, LongValueArraySerializerSetup.class, LongValueArraySerializerVerifier.class));
testSpecifications.add(new TestSpecification<>("null-value-array-serializer", flinkVersion, NullValueArraySerializerSetup.class, NullValueArraySerializerVerifier.class));
testSpecifications.add(new TestSpecification<>("short-value-array-serializer", flinkVersion, ShortValueArraySerializerSetup.class, ShortValueArraySerializerVerifier.class));
testSpecifications.add(new TestSpecification<>("string-value-array-serializer", flinkVersion, StringValueArraySerializerSetup.class, StringValueArraySerializerVerifier.class));
}
return testSpecifications;
}
use of org.apache.flink.FlinkVersion in project flink by apache.
the class NullableSerializerUpgradeTest method testSpecifications.
@Parameterized.Parameters(name = "Test Specification = {0}")
public static Collection<TestSpecification<?, ?>> testSpecifications() throws Exception {
ArrayList<TestSpecification<?, ?>> testSpecifications = new ArrayList<>();
for (FlinkVersion flinkVersion : MIGRATION_VERSIONS) {
testSpecifications.add(new TestSpecification<>("nullable-padded-serializer", flinkVersion, NullablePaddedSerializerSetup.class, NullablePaddedSerializerVerifier.class));
testSpecifications.add(new TestSpecification<>("nullable-not-padded-serializer", flinkVersion, NullableNotPaddedSerializerSetup.class, NullableNotPaddedSerializerVerifier.class));
}
return testSpecifications;
}
use of org.apache.flink.FlinkVersion in project flink by apache.
the class PrimitiveArraySerializerUpgradeTest method testSpecifications.
@Parameterized.Parameters(name = "Test Specification = {0}")
public static Collection<TestSpecification<?, ?>> testSpecifications() throws Exception {
ArrayList<TestSpecification<?, ?>> testSpecifications = new ArrayList<>();
for (FlinkVersion flinkVersion : MIGRATION_VERSIONS) {
testSpecifications.add(new TestSpecification<>("boolean-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveBooleanArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveBooleanArrayVerifier.class));
testSpecifications.add(new TestSpecification<>("byte-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveByteArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveByteArrayVerifier.class));
testSpecifications.add(new TestSpecification<>("char-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveCharArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveCharArrayVerifier.class));
testSpecifications.add(new TestSpecification<>("double-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveDoubleArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveDoubleArrayVerifier.class));
testSpecifications.add(new TestSpecification<>("float-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveFloatArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveFloatArrayVerifier.class));
testSpecifications.add(new TestSpecification<>("int-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveIntArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveIntArrayVerifier.class));
testSpecifications.add(new TestSpecification<>("long-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveLongArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveLongArrayVerifier.class));
testSpecifications.add(new TestSpecification<>("short-primitive-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveShortArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveShortArrayVerifier.class));
testSpecifications.add(new TestSpecification<>("string-array-serializer", flinkVersion, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveStringArraySetup.class, PrimitiveArraySerializerUpgradeTestSpecifications.PrimitiveStringArrayVerifier.class));
}
return testSpecifications;
}
use of org.apache.flink.FlinkVersion in project flink by apache.
the class KryoSerializerUpgradeTest method testSpecifications.
@Parameterized.Parameters(name = "Test Specification = {0}")
public static Collection<TestSpecification<?, ?>> testSpecifications() throws Exception {
ArrayList<TestSpecification<?, ?>> testSpecifications = new ArrayList<>();
for (FlinkVersion flinkVersion : MIGRATION_VERSIONS) {
testSpecifications.add(new TestSpecification<>("kryo-type-serializer-empty-config", flinkVersion, KryoTypeSerializerEmptyConfigSetup.class, KryoTypeSerializerEmptyConfigVerifier.class));
testSpecifications.add(new TestSpecification<>("kryo-type-serializer-unrelated-config-after-restore", flinkVersion, KryoTypeSerializerEmptyConfigSetup.class, KryoTypeSerializerWithUnrelatedConfigVerifier.class));
testSpecifications.add(new TestSpecification<>("kryo-type-serializer-changed-registration-order", flinkVersion, KryoTypeSerializerChangedRegistrationOrderSetup.class, KryoTypeSerializerChangedRegistrationOrderVerifier.class));
testSpecifications.add(new TestSpecification<>("kryo-custom-type-serializer-changed-registration-order", flinkVersion, KryoCustomTypeSerializerChangedRegistrationOrderSetup.class, KryoCustomTypeSerializerChangedRegistrationOrderVerifier.class));
}
return testSpecifications;
}
Aggregations