Search in sources :

Example 31 with Disabled

use of org.junit.jupiter.api.Disabled in project drill by apache.

the class SecuredPhoenixSQLTest method testJoinWithFilterPushdown.

@Test
@Disabled("use the remote query server directly without minicluster")
public void testJoinWithFilterPushdown() throws Exception {
    String sql = "select 10 as DRILL, a.n_name, b.r_name from phoenix123.v1.nation a join phoenix123.v1.region b " + "on a.n_regionkey = b.r_regionkey where b.r_name = 'ASIA'";
    QueryBuilder builder = client.queryBuilder().sql(sql);
    RowSet sets = builder.rowSet();
    builder.planMatcher().exclude("Join").exclude("Filter").include("Phoenix\\(.* INNER JOIN .* WHERE").match();
    TupleMetadata schema = new SchemaBuilder().addNullable("DRILL", MinorType.INT).addNullable("n_name", MinorType.VARCHAR).addNullable("r_name", MinorType.VARCHAR).build();
    RowSet expected = new RowSetBuilder(client.allocator(), schema).addRow(10, "INDIA", "ASIA").addRow(10, "INDONESIA", "ASIA").addRow(10, "JAPAN", "ASIA").addRow(10, "CHINA", "ASIA").addRow(10, "VIETNAM", "ASIA").build();
    new RowSetComparison(expected).verifyAndClearAll(sets);
}
Also used : RowSetBuilder(org.apache.drill.exec.physical.rowSet.RowSetBuilder) RowSetComparison(org.apache.drill.test.rowSet.RowSetComparison) TupleMetadata(org.apache.drill.exec.record.metadata.TupleMetadata) RowSet(org.apache.drill.exec.physical.rowSet.RowSet) SchemaBuilder(org.apache.drill.exec.record.metadata.SchemaBuilder) QueryBuilder(org.apache.drill.test.QueryBuilder) Test(org.junit.jupiter.api.Test) SlowTest(org.apache.drill.categories.SlowTest) Disabled(org.junit.jupiter.api.Disabled)

Example 32 with Disabled

use of org.junit.jupiter.api.Disabled in project cucumber-jvm by cucumber.

the class UrlOutputStreamTest method throws_exception_for_307_temporary_redirect_without_location.

@Test
@Disabled
void throws_exception_for_307_temporary_redirect_without_location(Vertx vertx, VertxTestContext testContext) throws InterruptedException {
    String requestBody = "hello";
    TestServer testServer = new TestServer(port, testContext, requestBody, HttpMethod.POST, null, "application/x-www-form-urlencoded", 200, "");
    CurlOption url = CurlOption.parse(format("http://localhost:%d/redirect-no-location -X POST", port));
    verifyRequest(url, testServer, vertx, testContext, requestBody);
    assertThat(testContext.awaitCompletion(TIMEOUT_SECONDS, TimeUnit.SECONDS), is(true));
    assertThat(exception.getMessage(), equalTo("HTTP request failed:\n" + "> POST http://localhost:" + port + "/redirect-no-location\n" + "< HTTP/1.1 307 Temporary Redirect\n" + "< content-length: 0\n"));
}
Also used : CurlOption(io.cucumber.core.options.CurlOption) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 33 with Disabled

use of org.junit.jupiter.api.Disabled in project cucumber-jvm by cucumber.

the class UsageFormatterTest method doneWithUsageStatisticStrategies.

@Test
@Disabled("TODO")
void doneWithUsageStatisticStrategies() {
    OutputStream out = new ByteArrayOutputStream();
    UsageFormatter usageFormatter = new UsageFormatter(out);
    UsageFormatter.StepContainer stepContainer = new UsageFormatter.StepContainer("a step");
    UsageFormatter.StepDuration stepDuration = new UsageFormatter.StepDuration(Duration.ofNanos(12345678L), "location.feature");
    stepContainer.getDurations().addAll(singletonList(stepDuration));
    usageFormatter.usageMap.put("a (.*)", singletonList(stepContainer));
    usageFormatter.finishReport();
    assertThat(out.toString(), containsString("0.012345678"));
    String json = "[\n" + "  {\n" + "    \"source\": \"a (.*)\",\n" + "    \"steps\": [\n" + "      {\n" + "        \"name\": \"a step\",\n" + "        \"aggregatedDurations\": {\n" + "          \"median\": 0.012345678,\n" + "          \"average\": 0.012345678\n" + "        },\n" + "        \"durations\": [\n" + "          {\n" + "            \"duration\": 0.012345678,\n" + "            \"location\": \"location.feature\"\n" + "          }\n" + "        ]\n" + "      }\n" + "    ]\n" + "  }\n" + "]";
    assertThat(out.toString(), sameJSONAs(json));
}
Also used : ByteArrayOutputStream(java.io.ByteArrayOutputStream) OutputStream(java.io.OutputStream) ByteArrayOutputStream(java.io.ByteArrayOutputStream) CoreMatchers.containsString(org.hamcrest.CoreMatchers.containsString) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 34 with Disabled

use of org.junit.jupiter.api.Disabled in project component-runtime by Talend.

the class UiSpecServiceTest method out.

/*
     * just to log the output
     */
@Test
@Disabled("debug test to log the produced model")
void out() throws Exception {
    final Ui payload = service.convert(load("jdbc.json")).toCompletableFuture().get();
    System.out.println(JsonbBuilder.create(new JsonbConfig().withFormatting(true)).toJson(payload));
}
Also used : JsonbConfig(javax.json.bind.JsonbConfig) Ui(org.talend.sdk.component.form.model.Ui) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Example 35 with Disabled

use of org.junit.jupiter.api.Disabled in project spring-security by spring-projects.

the class SpringMavenPluginITest method signArchivesWhenInMemory.

@Disabled
@Test
public void signArchivesWhenInMemory() throws Exception {
    LinkedHashMap<String, String> map = new LinkedHashMap<String, String>(2);
    map.put("ORG_GRADLE_PROJECT_signingKey", getSigningKey());
    map.put("ORG_GRADLE_PROJECT_signingPassword", "password");
    BuildResult result = this.testKit.withProjectResource("samples/maven/signing").withArguments("signArchives").withEnvironment(map).forwardOutput().build();
    assertThat(result.getOutput()).contains("SUCCESS");
    final File jar = new File(testKit.getRootDir(), "build/libs/signing-1.0.0.RELEASE.jar");
    assertThat(jar).exists();
    File signature = new File(jar.getAbsolutePath() + ".asc");
    assertThat(signature).exists();
}
Also used : BuildResult(org.gradle.testkit.runner.BuildResult) File(java.io.File) LinkedHashMap(java.util.LinkedHashMap) Test(org.junit.jupiter.api.Test) Disabled(org.junit.jupiter.api.Disabled)

Aggregations

Disabled (org.junit.jupiter.api.Disabled)358 Test (org.junit.jupiter.api.Test)343 URL (java.net.URL)67 ArrayList (java.util.ArrayList)23 File (java.io.File)20 List (java.util.List)15 TransactionalIntegrationTest (org.hisp.dhis.TransactionalIntegrationTest)13 CountDownLatch (java.util.concurrent.CountDownLatch)11 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)11 NoGood (at.ac.tuwien.kr.alpha.core.common.NoGood)10 Path (java.nio.file.Path)10 HashMap (java.util.HashMap)10 IOException (java.io.IOException)9 NAR (nars.NAR)9 BaseDataTest (org.apache.ibatis.BaseDataTest)8 Timeout (org.junit.jupiter.api.Timeout)8 Arrays (java.util.Arrays)7 ExecutorService (java.util.concurrent.ExecutorService)7 TestNAR (nars.test.TestNAR)7 URL (org.apache.dubbo.common.URL)7