Skip to content

Commit a441726

Browse files
committed
[test] Rename to RESTSimpleTableTest and RESTCatalogTest
1 parent 998ad3e commit a441726

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

paimon-core/src/test/java/org/apache/paimon/rest/RESTCatalogMockTest.java renamed to paimon-core/src/test/java/org/apache/paimon/rest/MockRESTCatalogTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@
5151
import static org.junit.jupiter.api.Assertions.assertEquals;
5252

5353
/** Test REST Catalog on Mocked REST server. */
54-
class RESTCatalogMockTest extends RESTCatalogTestBase {
54+
class MockRESTCatalogTest extends RESTCatalogTest {
5555

5656
private RESTCatalogServer restCatalogServer;
57-
private final String initToken = "init_token";
5857
private final String serverDefineHeaderName = "test-header";
5958
private final String serverDefineHeaderValue = "test-value";
6059
private String dataPath;
@@ -66,6 +65,7 @@ class RESTCatalogMockTest extends RESTCatalogTestBase {
6665
public void setUp() throws Exception {
6766
super.setUp();
6867
dataPath = warehouse;
68+
String initToken = "init_token";
6969
this.authProvider = new BearTokenAuthProvider(initToken);
7070
this.authMap =
7171
ImmutableMap.of(

paimon-core/src/test/java/org/apache/paimon/table/SimpleTableInRESTCatalogMockTest.java renamed to paimon-core/src/test/java/org/apache/paimon/rest/MockRESTSimpleTableTest.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,11 @@
1616
* limitations under the License.
1717
*/
1818

19-
package org.apache.paimon.table;
19+
package org.apache.paimon.rest;
2020

2121
import org.apache.paimon.catalog.CatalogContext;
2222
import org.apache.paimon.options.CatalogOptions;
2323
import org.apache.paimon.options.Options;
24-
import org.apache.paimon.rest.RESTCatalog;
25-
import org.apache.paimon.rest.RESTCatalogInternalOptions;
26-
import org.apache.paimon.rest.RESTCatalogOptions;
27-
import org.apache.paimon.rest.RESTCatalogServer;
2824
import org.apache.paimon.rest.auth.AuthProvider;
2925
import org.apache.paimon.rest.auth.AuthProviderEnum;
3026
import org.apache.paimon.rest.auth.BearTokenAuthProvider;
@@ -35,8 +31,8 @@
3531
import java.io.IOException;
3632
import java.util.UUID;
3733

38-
/** test table in rest catalog. */
39-
public class SimpleTableInRESTCatalogMockTest extends SimpleTableInRESTCatalogTestBase {
34+
/** Base simple table test in mock rest catalog. */
35+
public class MockRESTSimpleTableTest extends RESTSimpleTableTest {
4036

4137
@Override
4238
protected RESTCatalog createRESTCatalog() throws IOException {

paimon-core/src/test/java/org/apache/paimon/rest/RESTCatalogTestBase.java renamed to paimon-core/src/test/java/org/apache/paimon/rest/RESTCatalogTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
import static org.junit.jupiter.api.Assertions.assertThrows;
8888

8989
/** Base test class for {@link RESTCatalog}. */
90-
public abstract class RESTCatalogTestBase extends CatalogTestBase {
90+
public abstract class RESTCatalogTest extends CatalogTestBase {
9191

9292
protected ConfigResponse config;
9393
protected Options options = new Options();

paimon-core/src/test/java/org/apache/paimon/table/SimpleTableInRESTCatalogTestBase.java renamed to paimon-core/src/test/java/org/apache/paimon/rest/RESTSimpleTableTest.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@
1616
* limitations under the License.
1717
*/
1818

19-
package org.apache.paimon.table;
19+
package org.apache.paimon.rest;
2020

2121
import org.apache.paimon.catalog.Identifier;
2222
import org.apache.paimon.fs.local.LocalFileIO;
2323
import org.apache.paimon.options.Options;
24-
import org.apache.paimon.rest.RESTCatalog;
2524
import org.apache.paimon.schema.Schema;
2625
import org.apache.paimon.schema.SchemaChange;
2726
import org.apache.paimon.schema.SchemaManager;
2827
import org.apache.paimon.schema.SchemaUtils;
2928
import org.apache.paimon.schema.TableSchema;
29+
import org.apache.paimon.table.FileStoreTable;
30+
import org.apache.paimon.table.SimpleTableTestBase;
3031
import org.apache.paimon.types.RowType;
3132

3233
import org.junit.jupiter.api.BeforeEach;
@@ -41,8 +42,9 @@
4142
import static org.apache.paimon.CoreOptions.BUCKET;
4243
import static org.apache.paimon.CoreOptions.BUCKET_KEY;
4344

44-
/** base test table in rest catalog. */
45-
public abstract class SimpleTableInRESTCatalogTestBase extends SimpleTableTestBase {
45+
/** Base simple table test in rest catalog. */
46+
public abstract class RESTSimpleTableTest extends SimpleTableTestBase {
47+
4648
protected RESTCatalog restCatalog;
4749
protected String dataPath;
4850

0 commit comments

Comments
 (0)