Skip to content

Commit

Permalink
remove static block
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanck committed Feb 6, 2024
1 parent c684833 commit e310514
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
import org.apache.kafka.connect.json.JsonConverterConfig;
import org.apache.kafka.connect.storage.ConverterConfig;
import org.apache.kafka.connect.storage.ConverterType;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
Expand Down Expand Up @@ -190,7 +191,10 @@ public class RecordConverterTest {

private static final JsonConverter JSON_CONVERTER = new JsonConverter();

static {
private IcebergSinkConfig config;

@BeforeAll
public static void beforeAll() {
JSON_CONVERTER.configure(
ImmutableMap.of(
JsonConverterConfig.SCHEMAS_ENABLE_CONFIG,
Expand All @@ -199,8 +203,6 @@ public class RecordConverterTest {
ConverterType.VALUE.getName()));
}

private IcebergSinkConfig config;

@BeforeEach
public void before() {
this.config = mock(IcebergSinkConfig.class);
Expand Down

0 comments on commit e310514

Please sign in to comment.