This is an automated email from the ASF dual-hosted git repository. tzulitai pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
commit b2ac45b5662c759ea15f51219606ea906054155d Author: Tzu-Li (Gordon) Tai <tzuli...@apache.org> AuthorDate: Wed Feb 27 11:25:39 2019 +0800 [FLINK-11755] [tests] Remove TypeSerializerSnapshotTest#testBridgeCompatibilityCheck test This test essentially tests that when a legacy TypeSerializerConfigSnapshot is restored, the compatibility check goes through the new serializer's `ensureCompatibility` method. Since we're now removing the `ensureCompatibility` method from the TypeSerializer abstraction, this test is no longer relevant. --- .../api/common/typeutils/TypeSerializerSnapshotTest.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/flink-core/src/test/java/org/apache/flink/api/common/typeutils/TypeSerializerSnapshotTest.java b/flink-core/src/test/java/org/apache/flink/api/common/typeutils/TypeSerializerSnapshotTest.java index 0e8305c..2386db8 100644 --- a/flink-core/src/test/java/org/apache/flink/api/common/typeutils/TypeSerializerSnapshotTest.java +++ b/flink-core/src/test/java/org/apache/flink/api/common/typeutils/TypeSerializerSnapshotTest.java @@ -29,7 +29,6 @@ import java.io.IOException; import java.io.ObjectInputStream; import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; /** @@ -39,19 +38,6 @@ import static org.junit.Assert.fail; public class TypeSerializerSnapshotTest { @Test - public void testBridgeCompatibilityCheck() throws Exception { - TestSerializerConfigSnapshot snap = new TestSerializerConfigSnapshot(); - - TestSerializer serCompat = new TestSerializer(true); - TypeSerializerSchemaCompatibility<Object> resultCompat = snap.resolveSchemaCompatibility(serCompat); - assertTrue(resultCompat.isCompatibleAsIs()); - - TestSerializer serIncompat = new TestSerializer(false); - TypeSerializerSchemaCompatibility<Object> resultIncompat = snap.resolveSchemaCompatibility(serIncompat); - assertTrue(resultIncompat.isIncompatible()); - } - - @Test public void testSerializeConfigWhenSerializerMissing() throws Exception { TestSerializer ser = new TestSerializer(); TypeSerializerConfigSnapshot<Object> snap = (TypeSerializerConfigSnapshot<Object>) ser.snapshotConfiguration();