From 475f5b5830a101ec184015e640ec60f72bf6550c Mon Sep 17 00:00:00 2001 From: Zoltan Haindrich Date: Tue, 18 Jun 2024 15:43:46 +0000 Subject: [PATCH] cleanup --- .../java/org/apache/druid/quidem/QTest.java | 49 ------------------- 1 file changed, 49 deletions(-) diff --git a/quidem-it/src/test/java/org/apache/druid/quidem/QTest.java b/quidem-it/src/test/java/org/apache/druid/quidem/QTest.java index 9316485a207..f4de2d63411 100644 --- a/quidem-it/src/test/java/org/apache/druid/quidem/QTest.java +++ b/quidem-it/src/test/java/org/apache/druid/quidem/QTest.java @@ -19,21 +19,9 @@ package org.apache.druid.quidem; -import com.google.common.cache.CacheBuilder; -import com.google.common.cache.CacheLoader; -import com.google.common.cache.LoadingCache; -import org.apache.druid.sql.calcite.util.SqlTestFramework.QueryComponentSupplier; import org.junit.jupiter.api.Test; -import org.reflections.Reflections; -import org.reflections.scanners.SubTypesScanner; -import org.reflections.util.ConfigurationBuilder; -import org.reflections.util.FilterBuilder; - import java.io.File; import java.io.IOException; -import java.net.MalformedURLException; -import java.util.Set; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.fail; @@ -61,41 +49,4 @@ public class QTest extends DruidQuidemTestBase } } } - - @Test - public void testQTest() throws Exception - { - LoadingCache>> componentSupplierClassCache = CacheBuilder - .newBuilder() - .build(new CacheLoader>>() - { - @Override - public Set> load(String pkg) throws MalformedURLException - { - return new Reflections( - new ConfigurationBuilder() - // .addUrls(ClasspathHelper.forPackage(pkg, - // getClass().getClassLoader())) - - // .addClassLoaders(getClass().getClassLoader().getParent()) - .setScanners( - new SubTypesScanner(true) - - ) - .filterInputsBy( - new FilterBuilder().includePackage(pkg).and( - s -> s.contains("ComponentSupplier") - ) - - ) - .setUrls(org.reflections.util.ClasspathHelper.forJavaClassPath()) - - ) - .getSubTypesOf(QueryComponentSupplier.class); - } - }); - - Set> a = componentSupplierClassCache.get(""); - throw new RuntimeException("X" + a); - } }