Skip to content

Commit

Permalink
Move brotli4j into test sources
Browse files Browse the repository at this point in the history
  • Loading branch information
mocenas committed Oct 11, 2024
1 parent a656cdc commit 0f7c56b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 19 deletions.
4 changes: 0 additions & 4 deletions http/http-advanced-reactive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>com.aayushatharva.brotli4j</groupId>
<artifactId>brotli4j</artifactId>
</dependency>
<dependency>
<groupId>com.microsoft.playwright</groupId>
<artifactId>playwright</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,19 @@
import io.quarkus.test.bootstrap.RestService;
import io.quarkus.test.scenarios.QuarkusScenario;
import io.quarkus.test.scenarios.annotations.DisabledOnNative;
import io.quarkus.test.services.Dependency;
import io.quarkus.test.services.QuarkusApplication;
import io.quarkus.test.utils.FileUtils;
import io.quarkus.ts.http.advanced.reactive.brotli4j.Brotli4JHttpServerConfig;
import io.quarkus.ts.http.advanced.reactive.brotli4j.Brotli4JResource;
import io.quarkus.ts.http.advanced.reactive.brotli4j.Brotli4JRestMock;
import io.restassured.response.Response;

@Tag("QQE-378")
@QuarkusScenario
public class Brotli4JHttpIT {
@QuarkusApplication(classes = { Brotli4JHttpServerConfig.class, Brotli4JResource.class,
Brotli4JRestMock.class }, properties = "compression.properties")
Brotli4JRestMock.class }, dependencies = @Dependency(groupId = "com.aayushatharva.brotli4j", artifactId = "brotli4j"), properties = "compression.properties")
static RestService app = new RestService();

private final static String DEFAULT_TEXT_PLAIN = Brotli4JResource.DEFAULT_TEXT_PLAIN;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
package io.quarkus.ts.http.advanced.reactive;

import io.quarkus.test.bootstrap.DevModeQuarkusService;
import io.quarkus.test.scenarios.QuarkusScenario;
import io.quarkus.test.services.DevModeQuarkusApplication;
import io.quarkus.ts.http.advanced.reactive.brotli4j.Brotli4JHttpServerConfig;
import io.quarkus.ts.http.advanced.reactive.brotli4j.Brotli4JResource;
import io.quarkus.ts.http.advanced.reactive.brotli4j.Brotli4JRestMock;
import io.restassured.response.Response;
import jakarta.ws.rs.core.HttpHeaders;
import jakarta.ws.rs.core.MediaType;
import org.junit.jupiter.api.Test;

import static io.quarkus.ts.http.advanced.reactive.Brotli4JHttpIT.CONTENT_LENGTH_DEFAULT_TEXT_PLAIN;
import static io.quarkus.ts.http.advanced.reactive.Brotli4JResource.DEFAULT_TEXT_PLAIN;
import static io.quarkus.ts.http.advanced.reactive.brotli4j.Brotli4JResource.DEFAULT_TEXT_PLAIN;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;

import jakarta.ws.rs.core.HttpHeaders;
import jakarta.ws.rs.core.MediaType;

import org.junit.jupiter.api.Test;

import io.quarkus.test.bootstrap.DevModeQuarkusService;
import io.quarkus.test.scenarios.QuarkusScenario;
import io.quarkus.test.services.DevModeQuarkusApplication;
import io.restassured.response.Response;

@QuarkusScenario
public class DevModeBrotli4JHttpIT {
private static final String COMPRESSION_ENABLED_PROPERTY = "quarkus.http.enable-compression";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.http.advanced.reactive;
package io.quarkus.ts.http.advanced.reactive.brotli4j;

import jakarta.enterprise.context.ApplicationScoped;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.http.advanced.reactive;
package io.quarkus.ts.http.advanced.reactive.brotli4j;

import java.util.HashMap;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.quarkus.ts.http.advanced.reactive;
package io.quarkus.ts.http.advanced.reactive.brotli4j;

import java.io.IOException;
import java.io.InputStream;
Expand Down

0 comments on commit 0f7c56b

Please sign in to comment.