Skip to content

Commit

Permalink
SNOW-1658905 Fix null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mbobowski committed Sep 20, 2024
1 parent 76b7e8c commit 33e13ee
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,25 @@
import com.snowflake.kafka.connector.internal.TestUtils;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

public class IcebergTableSchemaValidatorIT extends BaseIcebergIT {

private static final String TEST_ROLE = "testrole_kafka";

private static final IcebergTableSchemaValidator schemaValidator =
new IcebergTableSchemaValidator(conn);
private static IcebergTableSchemaValidator schemaValidator;

private String tableName;

@BeforeAll
// overrides the base class @BeforeAll
public static void setup() {
conn = TestUtils.getConnectionServiceForStreaming();
schemaValidator = new IcebergTableSchemaValidator(conn);
}

@BeforeEach
public void setUp() {
tableName = TestUtils.randomTableName();
Expand Down

0 comments on commit 33e13ee

Please sign in to comment.