From b6e0f1329b9979e538d06b3738d4da77ef27836e Mon Sep 17 00:00:00 2001 From: Sherif Nada Date: Fri, 9 Oct 2020 11:19:07 -0700 Subject: [PATCH] dont use unimported classes --- .../DefaultSchedulerPersistenceTest.java | 31 +++++++++---------- .../server/handlers/DebugInfoHandler.java | 2 -- 2 files changed, 15 insertions(+), 18 deletions(-) diff --git a/airbyte-scheduler/src/test/java/io/airbyte/scheduler/persistence/DefaultSchedulerPersistenceTest.java b/airbyte-scheduler/src/test/java/io/airbyte/scheduler/persistence/DefaultSchedulerPersistenceTest.java index b2cac136638e..cbd0d5a9c288 100644 --- a/airbyte-scheduler/src/test/java/io/airbyte/scheduler/persistence/DefaultSchedulerPersistenceTest.java +++ b/airbyte-scheduler/src/test/java/io/airbyte/scheduler/persistence/DefaultSchedulerPersistenceTest.java @@ -24,6 +24,13 @@ package io.airbyte.scheduler.persistence; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotEquals; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; + import com.fasterxml.jackson.databind.JsonNode; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Lists; @@ -45,15 +52,6 @@ import io.airbyte.scheduler.Job; import io.airbyte.scheduler.JobStatus; import io.airbyte.scheduler.ScopeHelper; -import org.apache.commons.dbcp2.BasicDataSource; -import org.jooq.Record; -import org.junit.jupiter.api.AfterAll; -import org.junit.jupiter.api.BeforeAll; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; -import org.testcontainers.containers.PostgreSQLContainer; -import org.testcontainers.utility.MountableFile; - import java.io.IOException; import java.nio.file.Path; import java.sql.SQLException; @@ -64,13 +62,14 @@ import java.util.Optional; import java.util.UUID; import java.util.function.Supplier; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotEquals; -import static org.junit.jupiter.api.Assertions.assertNull; -import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.when; +import org.apache.commons.dbcp2.BasicDataSource; +import org.jooq.Record; +import org.junit.jupiter.api.AfterAll; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.testcontainers.containers.PostgreSQLContainer; +import org.testcontainers.utility.MountableFile; class DefaultSchedulerPersistenceTest { diff --git a/airbyte-server/src/main/java/io/airbyte/server/handlers/DebugInfoHandler.java b/airbyte-server/src/main/java/io/airbyte/server/handlers/DebugInfoHandler.java index b822647a17ed..b1433afe84a8 100644 --- a/airbyte-server/src/main/java/io/airbyte/server/handlers/DebugInfoHandler.java +++ b/airbyte-server/src/main/java/io/airbyte/server/handlers/DebugInfoHandler.java @@ -28,8 +28,6 @@ import com.google.common.collect.Lists; import io.airbyte.api.model.DebugRead; -import io.airbyte.commons.docker.DockerUtils; -import io.airbyte.config.persistence.ConfigRepository; import io.airbyte.integrations.Integrations; import java.io.IOException; import java.nio.charset.StandardCharsets;