Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nit: move constant used in tests #9579

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package org.projectnessie.server.catalog;

import static org.apache.iceberg.types.Types.NestedField.required;
import static org.projectnessie.server.catalog.AbstractIcebergCatalogTests.EMPTY_OBJ_ID;
import static org.projectnessie.server.catalog.IcebergCatalogTestCommon.EMPTY_OBJ_ID;
import static org.projectnessie.server.catalog.IcebergCatalogTestCommon.WAREHOUSE_NAME;

import io.quarkus.test.junit.QuarkusTest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static java.util.Collections.singletonMap;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.AssertionsForClassTypes.assertThatThrownBy;
import static org.projectnessie.server.catalog.IcebergCatalogTestCommon.EMPTY_OBJ_ID;
import static org.projectnessie.server.catalog.IcebergCatalogTestCommon.WAREHOUSE_NAME;

import com.google.common.collect.ImmutableMap;
Expand Down Expand Up @@ -83,8 +84,6 @@
import org.projectnessie.model.Reference;

public abstract class AbstractIcebergCatalogTests extends CatalogTests<RESTCatalog> {
public static final String EMPTY_OBJ_ID =
"2e1cfa82b035c26cbbbdae632cea070514eb8b773f616aaeaf668e2f0be8f10d";

private static final Catalogs CATALOGS = new Catalogs();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.projectnessie.server.catalog;

import static java.util.Collections.singletonMap;
import static org.projectnessie.server.catalog.IcebergCatalogTestCommon.EMPTY_OBJ_ID;
import static org.projectnessie.server.catalog.IcebergCatalogTestCommon.WAREHOUSE_NAME;

import java.util.Map;
Expand All @@ -30,8 +31,6 @@
import org.projectnessie.model.Reference;

public abstract class AbstractIcebergViewCatalogTests extends ViewCatalogTests<RESTCatalog> {
public static final String EMPTY_OBJ_ID =
"2e1cfa82b035c26cbbbdae632cea070514eb8b773f616aaeaf668e2f0be8f10d";

private static final Catalogs CATALOGS = new Catalogs();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@

public interface IcebergCatalogTestCommon {
String WAREHOUSE_NAME = "warehouse1";
String EMPTY_OBJ_ID = "2e1cfa82b035c26cbbbdae632cea070514eb8b773f616aaeaf668e2f0be8f10d";
}