Skip to content

Commit

Permalink
upgrade to quarkus 3.15.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Matej Pucihar committed Oct 15, 2024
1 parent b9dd8b6 commit 80288ad
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 21 deletions.
18 changes: 12 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>3.8.2</quarkus.platform.version>
<quarkus.platform.version>3.15.1</quarkus.platform.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.2.5</surefire-plugin.version>
</properties>
Expand All @@ -28,25 +28,30 @@
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.34</version>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive-jackson</artifactId>
<artifactId>quarkus-rest-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-hibernate-validator</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-smallrye-reactive-messaging-kafka</artifactId>
<artifactId>quarkus-messaging-kafka</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-hibernate-orm-panache</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-reactive-jackson</artifactId>
<artifactId>quarkus-rest-client-jackson</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand All @@ -62,7 +67,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy-reactive</artifactId>
<artifactId>quarkus-rest</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand Down Expand Up @@ -142,7 +147,8 @@
</activation>
<properties>
<skipITs>false</skipITs>
<quarkus.package.type>native</quarkus.package.type>
<quarkus.native.enabled>true</quarkus.native.enabled>
<quarkus.package.jar.enabled>false</quarkus.package.jar.enabled>
</properties>
</profile>
</profiles>
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#uncomment trace logger of arjuna and the exception will always fall xD
#quarkus.log.category."com.arjuna".level=trace
#quarkus.log.category."com.arjuna".min-level=trace
#quarkus.log.category."com.arjuna".min-level=trace
#quarkus.log.category."io.smallrye".min-level=trace
#quarkus.log.category."io.smallrye".level=trace
30 changes: 16 additions & 14 deletions src/test/java/si/puci/GreetingResourceTest.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
package si.puci;

import io.quarkus.logging.Log;
import io.quarkus.test.junit.QuarkusTest;
import io.smallrye.mutiny.Multi;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import static io.restassured.RestAssured.given;
import static org.hamcrest.CoreMatchers.is;

Expand All @@ -15,7 +8,16 @@
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicReference;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

import io.quarkus.logging.Log;
import io.quarkus.test.junit.QuarkusTest;
import io.smallrye.mutiny.Multi;
import lombok.extern.jbosslog.JBossLog;

@QuarkusTest
@JBossLog
class GreetingResourceTest
{
@Test
Expand All @@ -33,7 +35,7 @@ void mutinyEmitterSendAndAwait()
.statusCode(200)
.body(is("mutiny-emitter-send-and-await")))
.subscribe().with(
Log::info,
log::info,
err -> {
Log.error(err);
ex.set(err);
Expand Down Expand Up @@ -82,9 +84,9 @@ void emitterSendBlockAtEnd()
.statusCode(200)
.body(is("emitter-send-block-at-end")))
.subscribe().with(
Log::info,
log::info,
err -> {
Log.error(err);
log.error(err);
ex.set(err);
failure.set(true);
});
Expand All @@ -100,7 +102,7 @@ void emitterSendBlockAtEnd()
subscription.cancel();
if (ex.get() != null)
{
Log.error(ex.get());
log.error(ex.get());
}
Assertions.assertFalse(failure.get());
//no error!
Expand All @@ -120,9 +122,9 @@ void emitterSendReturnFut()
.statusCode(200)
.body(is("emitter-send-return-fut")))
.subscribe().with(
Log::info,
log::info,
err -> {
Log.error(err);
log.error(err);
ex.set(err);
failure.set(true);
});
Expand All @@ -138,7 +140,7 @@ void emitterSendReturnFut()
subscription.cancel();
if (ex.get() != null)
{
Log.error(ex.get());
log.error(ex.get());
}
Assertions.assertFalse(failure.get());
//no error!
Expand Down

0 comments on commit 80288ad

Please sign in to comment.