From 2be86e081f05696eae9cbd5780faf0f658aa8352 Mon Sep 17 00:00:00 2001 From: liuw529 Date: Mon, 8 Apr 2024 09:54:36 +0800 Subject: [PATCH] add unit test,spotless formate code (#3083) --- .../org/apache/paimon/hive/CreateTableITCase.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/paimon-hive/paimon-hive-connector-common/src/test/java/org/apache/paimon/hive/CreateTableITCase.java b/paimon-hive/paimon-hive-connector-common/src/test/java/org/apache/paimon/hive/CreateTableITCase.java index 8e6d80f3157e..35ee75f66d80 100644 --- a/paimon-hive/paimon-hive-connector-common/src/test/java/org/apache/paimon/hive/CreateTableITCase.java +++ b/paimon-hive/paimon-hive-connector-common/src/test/java/org/apache/paimon/hive/CreateTableITCase.java @@ -18,15 +18,12 @@ package org.apache.paimon.hive; -import org.apache.hadoop.hive.conf.HiveConf; import org.apache.paimon.catalog.AbstractCatalog; import org.apache.paimon.catalog.Catalog; import org.apache.paimon.catalog.CatalogContext; import org.apache.paimon.catalog.CatalogFactory; import org.apache.paimon.catalog.Identifier; -import org.apache.paimon.fs.FileIO; import org.apache.paimon.fs.Path; -import org.apache.paimon.fs.hadoop.HadoopFileIO; import org.apache.paimon.fs.local.LocalFileIO; import org.apache.paimon.options.CatalogOptions; import org.apache.paimon.options.Options; @@ -151,15 +148,11 @@ public void testCallCreateTableToCreatHiveExternalTable() throws Exception { hiveCatalog.createTable(identifier, schema, false); // Drop hive external table - String hiveSql = - String.join( - "\n", - Arrays.asList( - "DROP TABLE " + tableName)); + String hiveSql = String.join("\n", Arrays.asList("DROP TABLE " + tableName)); assertThatCode(() -> hiveShell.execute(hiveSql)).doesNotThrowAnyException(); - assertThatCode(() -> hiveCatalog.createTable(identifier, schema, false)).doesNotThrowAnyException(); - + assertThatCode(() -> hiveCatalog.createTable(identifier, schema, false)) + .doesNotThrowAnyException(); } @Test