Skip to content

Commit

Permalink
Add test for io.netty.versions.properties entries
Browse files Browse the repository at this point in the history
(cherry picked from commit 524a9fd)
  • Loading branch information
gsmet committed Apr 26, 2021
1 parent 3e7e5e3 commit 87fbd26
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import javax.enterprise.context.ApplicationScoped;

import io.netty.util.Version;
import io.quarkus.vertx.web.Route;
import io.vertx.core.http.HttpMethod;
import io.vertx.ext.web.RoutingContext;
Expand All @@ -22,4 +23,11 @@ public void greetings(RoutingContext rc) {
}
rc.response().end("hello " + name);
}

@Route(path = "/netty-version", methods = HttpMethod.GET)
public void nettyVersion(RoutingContext rc) {
rc.response().end(Version.identify().containsKey("netty-common") + ";" +
Version.identify().containsKey("netty-handler") + ";" +
Version.identify().containsKey("netty-codec"));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public void testDeclarativeRoutes() {
.header("X-Header", "intercepting the request")
.statusCode(200)
.body(is("hello quarkus"));

RestAssured.get("/netty-version").then()
.statusCode(200)
.body(is("true;true;true"));
}

}

0 comments on commit 87fbd26

Please sign in to comment.