diff --git a/plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/TestCachingJdbcClient.java b/plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/TestCachingJdbcClient.java index 192d639f1d53..a9f3db3f191e 100644 --- a/plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/TestCachingJdbcClient.java +++ b/plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/TestCachingJdbcClient.java @@ -16,7 +16,6 @@ import com.google.common.cache.CacheStats; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; import io.airlift.units.Duration; import io.trino.plugin.base.session.SessionPropertiesProvider; import io.trino.plugin.jdbc.credential.ExtraCredentialConfig; @@ -36,7 +35,6 @@ import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; -import java.lang.reflect.Method; import java.util.List; import java.util.Optional; import java.util.OptionalLong; @@ -632,19 +630,7 @@ private static ConnectorSession createUserSession(String userName) @Test public void testEverythingImplemented() { - assertAllMethodsOverridden(JdbcClient.class, CachingJdbcClient.class, nonOverriddenMethods()); - } - - private static Set nonOverriddenMethods() - { - try { - return ImmutableSet.builder() - .add(JdbcClient.class.getMethod("schemaExists", ConnectorSession.class, String.class)) - .build(); - } - catch (NoSuchMethodException e) { - throw new AssertionError(e); - } + assertAllMethodsOverridden(JdbcClient.class, CachingJdbcClient.class); } private static CacheStatsAssertions assertTableNamesCache(CachingJdbcClient cachingJdbcClient)