Skip to content

Commit

Permalink
Nit: move constant used in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
snazy committed Sep 19, 2024
1 parent 9cf7c32 commit f889f81
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
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";
}

0 comments on commit f889f81

Please sign in to comment.