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);
}
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"));
}
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));
}
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));
}
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();
}
Aggregations