You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by fo...@apache.org on 2022/11/18 07:04:11 UTC

[iceberg] branch master updated: Flink: Add unit test for FlinkPackage util class (#6213)

This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/master by this push:
     new 36387fce79 Flink: Add unit test for FlinkPackage util class (#6213)
36387fce79 is described below

commit 36387fce7936237e87ab63163aae129c42333fd9
Author: Steven Zhen Wu <st...@gmail.com>
AuthorDate: Thu Nov 17 23:04:04 2022 -0800

    Flink: Add unit test for FlinkPackage util class (#6213)
---
 .../iceberg/flink/util/TestFlinkPackage.java       | 31 ++++++++++++++++++++++
 .../iceberg/flink/util/TestFlinkPackage.java       | 31 ++++++++++++++++++++++
 .../iceberg/flink/util/TestFlinkPackage.java       | 31 ++++++++++++++++++++++
 3 files changed, 93 insertions(+)

diff --git a/flink/v1.14/flink/src/test/java/org/apache/iceberg/flink/util/TestFlinkPackage.java b/flink/v1.14/flink/src/test/java/org/apache/iceberg/flink/util/TestFlinkPackage.java
new file mode 100644
index 0000000000..dd5975e6ba
--- /dev/null
+++ b/flink/v1.14/flink/src/test/java/org/apache/iceberg/flink/util/TestFlinkPackage.java
@@ -0,0 +1,31 @@
+/*
+ * 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.iceberg.flink.util;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class TestFlinkPackage {
+
+  /** This unit test would need to be adjusted as new Flink version is supported. */
+  @Test
+  public void testVersion() {
+    Assert.assertEquals("1.14.0", FlinkPackage.version());
+  }
+}
diff --git a/flink/v1.15/flink/src/test/java/org/apache/iceberg/flink/util/TestFlinkPackage.java b/flink/v1.15/flink/src/test/java/org/apache/iceberg/flink/util/TestFlinkPackage.java
new file mode 100644
index 0000000000..caacbd4b5a
--- /dev/null
+++ b/flink/v1.15/flink/src/test/java/org/apache/iceberg/flink/util/TestFlinkPackage.java
@@ -0,0 +1,31 @@
+/*
+ * 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.iceberg.flink.util;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class TestFlinkPackage {
+
+  /** This unit test would need to be adjusted as new Flink version is supported. */
+  @Test
+  public void testVersion() {
+    Assert.assertEquals("1.15.0", FlinkPackage.version());
+  }
+}
diff --git a/flink/v1.16/flink/src/test/java/org/apache/iceberg/flink/util/TestFlinkPackage.java b/flink/v1.16/flink/src/test/java/org/apache/iceberg/flink/util/TestFlinkPackage.java
new file mode 100644
index 0000000000..a74c0718eb
--- /dev/null
+++ b/flink/v1.16/flink/src/test/java/org/apache/iceberg/flink/util/TestFlinkPackage.java
@@ -0,0 +1,31 @@
+/*
+ * 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.iceberg.flink.util;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class TestFlinkPackage {
+
+  /** This unit test would need to be adjusted as new Flink version is supported. */
+  @Test
+  public void testVersion() {
+    Assert.assertEquals("1.16.0", FlinkPackage.version());
+  }
+}