Skip to content

Commit

Permalink
Move aggregation query tests to JUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
martint committed Sep 13, 2023
1 parent 838a010 commit 1d17262
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
6 changes: 6 additions & 0 deletions testing/trino-faulttolerant-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>

<!-- for benchmarks -->
<dependency>
<groupId>org.openjdk.jmh</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,22 @@
import io.trino.plugin.hive.HiveQueryRunner;
import io.trino.testing.AbstractTestFaultTolerantExecutionAggregations;
import io.trino.testing.QueryRunner;
import org.testng.annotations.AfterClass;
import io.trino.testng.services.ManageTestResources;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.TestInstance;

import java.util.Map;

import static io.trino.plugin.exchange.filesystem.containers.MinioStorage.getExchangeManagerProperties;
import static io.trino.testing.TestingNames.randomNameSuffix;
import static io.trino.tpch.TpchTable.getTables;
import static org.junit.jupiter.api.TestInstance.Lifecycle.PER_CLASS;

@TestInstance(PER_CLASS)
public class TestHiveFaultTolerantExecutionAggregations
extends AbstractTestFaultTolerantExecutionAggregations
{
@ManageTestResources.Suppress(because = "Not a TestNG test class")
private MinioStorage minioStorage;

@Override
Expand All @@ -48,7 +53,7 @@ protected QueryRunner createQueryRunner(Map<String, String> extraProperties)
.build();
}

@AfterClass(alwaysRun = true)
@AfterAll
public void destroy()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import io.trino.Session;
import io.trino.spi.type.TimeZoneKey;
import org.intellij.lang.annotations.Language;
import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import java.util.List;

Expand Down
6 changes: 6 additions & 0 deletions testing/trino-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,12 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>

<!-- for benchmarks -->
<dependency>
<groupId>org.openjdk.jmh</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import io.trino.testing.DistributedQueryRunner;
import io.trino.testing.QueryRunner;
import io.trino.tests.tpch.TpchQueryRunnerBuilder;
import org.testng.annotations.Test;
import org.junit.jupiter.api.Test;

import java.util.function.Predicate;

Expand Down

0 comments on commit 1d17262

Please sign in to comment.