From 770ca2bd500e5c66603ed278c8149f2cda15f817 Mon Sep 17 00:00:00 2001 From: Krzysztof Sobolewski Date: Thu, 25 Jan 2024 11:05:53 +0100 Subject: [PATCH] Remove superfluous Test annotations Looks like one of them was added "by inertia", in the wave of adding missing `@Test` annotations to overridden methods. The other is in benchmarks, where it's not meaningful. --- .../trino/plugin/bigquery/BaseBigQueryFailureRecoveryTest.java | 1 - .../test/java/io/trino/plugin/geospatial/BenchmarkSTArea.java | 2 -- 2 files changed, 3 deletions(-) diff --git a/plugin/trino-bigquery/src/test/java/io/trino/plugin/bigquery/BaseBigQueryFailureRecoveryTest.java b/plugin/trino-bigquery/src/test/java/io/trino/plugin/bigquery/BaseBigQueryFailureRecoveryTest.java index d5eec271b417..9045a8833069 100644 --- a/plugin/trino-bigquery/src/test/java/io/trino/plugin/bigquery/BaseBigQueryFailureRecoveryTest.java +++ b/plugin/trino-bigquery/src/test/java/io/trino/plugin/bigquery/BaseBigQueryFailureRecoveryTest.java @@ -56,7 +56,6 @@ protected QueryRunner createQueryRunner( }); } - @Test @Override protected boolean areWriteRetriesSupported() { diff --git a/plugin/trino-geospatial/src/test/java/io/trino/plugin/geospatial/BenchmarkSTArea.java b/plugin/trino-geospatial/src/test/java/io/trino/plugin/geospatial/BenchmarkSTArea.java index bf7c829b531b..d96827419608 100644 --- a/plugin/trino-geospatial/src/test/java/io/trino/plugin/geospatial/BenchmarkSTArea.java +++ b/plugin/trino-geospatial/src/test/java/io/trino/plugin/geospatial/BenchmarkSTArea.java @@ -14,7 +14,6 @@ package io.trino.plugin.geospatial; import io.airlift.slice.Slice; -import org.junit.jupiter.api.Test; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import org.openjdk.jmh.annotations.Fork; @@ -99,7 +98,6 @@ public static void main(String[] args) benchmark(BenchmarkSTArea.class).run(); } - @Test public static void verify() throws IOException {