Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename tests and packages #675

Merged
merged 1 commit into from
Jun 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import io.restassured.response.Response;

@QuarkusScenario
public class TelemetryIT {
public class GraphQLTelemetryIT {
private static final int GRPC_COLLECTOR_PORT = 14250;

@JaegerContainer(restPort = GRPC_COLLECTOR_PORT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
import io.quarkus.test.scenarios.OpenShiftScenario;

@OpenShiftScenario
public class OpenShiftTelemetryIT extends TelemetryIT {
public class OpenShiftGraphQLTelemetryIT extends GraphQLTelemetryIT {

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import io.restassured.response.Response;

@QuarkusScenario
public class TracingIT {
public class GraphQLTracingIT {
private static final String SERVICE_NAME = "graphql-service";

@JaegerContainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
import io.quarkus.test.scenarios.OpenShiftScenario;

@OpenShiftScenario
public class OpenShiftTracingIT extends TracingIT {
public class OpenShiftGraphQLTracingIT extends GraphQLTracingIT {

}
2 changes: 1 addition & 1 deletion http/jaxrs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<artifactId>jaxrs</artifactId>
<packaging>jar</packaging>
<name>Quarkus QE TS: HTTP: jaxrs</name>
<name>Quarkus QE TS: HTTP: JAX-RS</name>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public String hello() {
@GET
@Produces(MediaType.TEXT_PLAIN)
@Path("/serialize-string")
public String serstring() throws IOException, ClassNotFoundException {
public String getSerializedString() throws IOException, ClassNotFoundException {

byte[] bytes;

Expand All @@ -56,7 +56,7 @@ public String serstring() throws IOException, ClassNotFoundException {
@GET
@Produces(MediaType.TEXT_PLAIN)
@Path("/serialize-list")
public String serlist() throws IOException, ClassNotFoundException {
public String getSerializedList() throws IOException, ClassNotFoundException {

byte[] bytes;

Expand All @@ -82,7 +82,8 @@ public String serlist() throws IOException, ClassNotFoundException {
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/big-serialize-list")
public Map<String, Integer> bigSerlist(@QueryParam("expSize") int expSize) throws IOException, ClassNotFoundException {
public Map<String, Integer> getBigSerializedList(@QueryParam("expSize") int expSize)
throws IOException, ClassNotFoundException {
ByteArrayOutputStream out = new ByteArrayOutputStream();
int ix = 0;
try (JsonGenerator g = MAPPER.createGenerator(out)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import io.quarkus.test.scenarios.QuarkusScenario;

@QuarkusScenario
public class BaseQuarkusBundleIT {
public class BasicRESTEasyJacksonIT {

@Test
public void testQuarkusEndpoint() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@Tag("QUARKUS-1554")
@QuarkusScenario
public class SerializationIT {
public class RESTEasyJacksonSerializationIT {

protected final static int LONGEST_EAGER_ALLOC = 100_000;
protected final static int FIRST_RANDOM_VARIATION = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import io.restassured.response.Response;

@QuarkusScenario
public class ProxyIT {
public class ReactiveRestClientProxyIT {
private static final String USER = "proxyuser";
private static final String PASSWORD = "proxypassword";

Expand All @@ -30,7 +30,7 @@ public class ProxyIT {
() -> proxy.getHost().replace("http://", "") + ":" + proxy.getPort());

@Test
void getThrough() {
void sendRequestThroughProxy() {
Response proxied = proxyApp.given().with().get("/proxied/");
Assertions.assertEquals(HttpStatus.SC_OK, proxied.statusCode());
Assertions.assertTrue(proxied.body().asString().contains("Example Domain"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import io.restassured.response.Response;

@QuarkusScenario
public class ClassicPropertiesIT {
public class StandardMicroProfilePropertiesNotationIT {

@QuarkusApplication
static RestService app = new RestService().withProperties("classic.properties");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import io.restassured.response.Response;

@QuarkusScenario
public class ChuckNorrisResourceIT {
public class VertxWebClientIT {
static final String EXPECTED_ID = "aBanNLDwR-SAz7iMHuCiyw";
static final String EXPECTED_VALUE = "Chuck Norris has already been to mars; that why there's no signs of life";
static final int DELAY = 3500; // must be greater than vertx.webclient.timeout-sec
Expand Down
2 changes: 1 addition & 1 deletion javaee-like-getting-started/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parent>
<artifactId>javaee-like-getting-started</artifactId>
<packaging>jar</packaging>
<name>Quarkus QE TS: javaee like getting started</name>
<name>Quarkus QE TS: Java EE like Getting Started</name>
<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import io.quarkus.test.services.QuarkusApplication;

@QuarkusScenario
public class LogResourceIT {
public class LoggingInJsonIT {

private static final String EXPECTED_JSON_MESSAGE = "\"level\":\"INFO\",\"message\":\"Profile prod activated. \"";
private static final String MESSAGE = "messageLog";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.apache.http.HttpStatus;
import org.junit.jupiter.api.Test;

public abstract class BaseAmqpIT {
public abstract class BaseAmqpReactiveIT {

static final int ASSERT_TIMEOUT_SECONDS = 30;
static final List<String> EXPECTED_PRICES = Arrays.asList("10", "20", "30", "40", "50", "60", "70", "80", "90", "100");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@Tag("QUARKUS-959")
@QuarkusScenario
public class DevModeAmqpIT extends BaseAmqpIT {
public class DevModeAmqpReactiveIT extends BaseAmqpReactiveIT {

/**
* AMQP must be started using DEV services when running in DEV mode
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
import io.quarkus.test.scenarios.OpenShiftScenario;

@OpenShiftScenario
public class OpenShiftProdAmqpIT extends ProdAmqpIT {
public class OpenShiftProdAmqpReactiveIT extends ProdAmqpReactiveIT {
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import io.quarkus.test.services.containers.model.AmqProtocol;

@QuarkusScenario
public class ProdAmqpIT extends BaseAmqpIT {
public class ProdAmqpReactiveIT extends BaseAmqpReactiveIT {

@AmqContainer(image = "registry.access.redhat.com/amq-broker-7/amq-broker-72-openshift", protocol = AmqProtocol.AMQP)
static AmqService amq = new AmqService();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.messaging.amqpreactive;
package io.quarkus.ts.messaging.cloudevents.amqpbinary;

import java.util.HashMap;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.messaging.amqpreactive;
package io.quarkus.ts.messaging.cloudevents.amqpbinary;

import java.net.URI;
import java.time.Duration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.messaging.amqpreactive;
package io.quarkus.ts.messaging.cloudevents.amqpbinary;

import javax.inject.Inject;
import javax.ws.rs.GET;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.messaging.amqpreactive;
package io.quarkus.ts.messaging.cloudevents.amqpbinary;

import static io.restassured.RestAssured.given;
import static org.awaitility.Awaitility.await;
Expand All @@ -13,7 +13,7 @@
import org.apache.http.HttpStatus;
import org.junit.jupiter.api.Test;

public abstract class BaseAmqpIT {
public abstract class BaseBinaryCloudEventsOverAmqpIT {
static final int ASSERT_TIMEOUT_SECONDS = 30;
static final List<String> EXPECTED_PRICES = Arrays.asList("10", "20", "30", "40", "50", "60", "70", "80", "90", "100");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.messaging.amqpreactive;
package io.quarkus.ts.messaging.cloudevents.amqpbinary;

import io.quarkus.test.bootstrap.AmqService;
import io.quarkus.test.bootstrap.RestService;
Expand All @@ -8,7 +8,7 @@
import io.quarkus.test.services.containers.model.AmqProtocol;

@QuarkusScenario
public class ProdAmqpIT extends BaseAmqpIT {
public class BinaryCloudEventsOverProdAmqpIT extends BaseBinaryCloudEventsOverAmqpIT {
@AmqContainer(image = "registry.access.redhat.com/amq-broker-7/amq-broker-72-openshift", protocol = AmqProtocol.AMQP)
static AmqService amq = new AmqService();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package io.quarkus.ts.messaging.cloudevents.amqpbinary;

import io.quarkus.test.scenarios.OpenShiftScenario;

@OpenShiftScenario
public class OpenShiftBinaryCloudEventsOverProdAmqpIT extends BinaryCloudEventsOverProdAmqpIT {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.messaging.amqpreactive;
package io.quarkus.ts.messaging.cloudevents.amqpjson;

import java.util.HashMap;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.messaging.amqpreactive;
package io.quarkus.ts.messaging.cloudevents.amqpjson;

import java.net.URI;
import java.time.Duration;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.messaging.amqpreactive;
package io.quarkus.ts.messaging.cloudevents.amqpjson;

import javax.inject.Inject;
import javax.ws.rs.GET;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.messaging.amqpreactive;
package io.quarkus.ts.messaging.cloudevents.amqpjson;

import static io.restassured.RestAssured.given;
import static org.awaitility.Awaitility.await;
Expand All @@ -13,7 +13,7 @@
import org.apache.http.HttpStatus;
import org.junit.jupiter.api.Test;

public abstract class BaseAmqpIT {
public abstract class BaseJSONCloudEventsOverAmqpIT {
static final int ASSERT_TIMEOUT_SECONDS = 30;
static final List<String> EXPECTED_PRICES = Arrays.asList("10", "20", "30", "40", "50", "60", "70", "80", "90", "100");

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.messaging.amqpreactive;
package io.quarkus.ts.messaging.cloudevents.amqpjson;

import io.quarkus.test.bootstrap.AmqService;
import io.quarkus.test.bootstrap.RestService;
Expand All @@ -8,7 +8,7 @@
import io.quarkus.test.services.containers.model.AmqProtocol;

@QuarkusScenario
public class ProdAmqpIT extends BaseAmqpIT {
public class JSONCloudEventsOverProdAmqpIT extends BaseJSONCloudEventsOverAmqpIT {
@AmqContainer(image = "registry.access.redhat.com/amq-broker-7/amq-broker-72-openshift", protocol = AmqProtocol.AMQP)
static AmqService amq = new AmqService();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package io.quarkus.ts.messaging.cloudevents.amqpjson;

import io.quarkus.test.scenarios.OpenShiftScenario;

@OpenShiftScenario
public class OpenShiftJSONCloudEventsOverProdAmqpIT extends JSONCloudEventsOverProdAmqpIT {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.security.keycloak.authz;
package io.quarkus.ts.security.keycloak.authz.reactive;

import javax.inject.Inject;
import javax.ws.rs.GET;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.security.keycloak.authz;
package io.quarkus.ts.security.keycloak.authz.reactive;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.security.keycloak.authz;
package io.quarkus.ts.security.keycloak.authz.reactive;

import javax.inject.Inject;
import javax.ws.rs.Consumes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.security.keycloak.authz;
package io.quarkus.ts.security.keycloak.authz.reactive;

import javax.inject.Inject;
import javax.ws.rs.GET;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.security.keycloak.authz;
package io.quarkus.ts.security.keycloak.authz.reactive;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.security.keycloak.authz;
package io.quarkus.ts.security.keycloak.authz.reactive;

import io.quarkus.test.bootstrap.KeycloakService;
import io.quarkus.test.bootstrap.RestService;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.security.keycloak.authz;
package io.quarkus.ts.security.keycloak.authz.reactive;

import org.junit.jupiter.api.condition.EnabledIfSystemProperty;

Expand Down