Skip to content

Commit

Permalink
Move method to BaseConnectorTest
Browse files Browse the repository at this point in the history
It only applies to TestNG tests and it's only used by connector
tests
  • Loading branch information
martint committed Oct 10, 2023
1 parent 24803a4 commit 18796a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.testng.SkipException;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;

Expand Down Expand Up @@ -631,13 +630,6 @@ protected String getGraphvizExplainPlan(@Language("SQL") String query, ExplainTy
});
}

protected static void skipTestUnless(boolean requirement)
{
if (!requirement) {
throw new SkipException("requirement not met");
}
}

protected final QueryRunner getQueryRunner()
{
checkState(queryRunner != null, "queryRunner not set");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6499,6 +6499,13 @@ public void testProjectionPushdownPhysicalInputSize()
}
}

protected static void skipTestUnless(boolean requirement)
{
if (!requirement) {
throw new SkipException("requirement not met");
}
}

protected Consumer<Plan> assertPartialLimitWithPreSortedInputsCount(Session session, int expectedCount)
{
return plan -> {
Expand Down

0 comments on commit 18796a0

Please sign in to comment.