Skip to content

Commit

Permalink
Add Dev UI smoke test case
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Jul 7, 2021
1 parent 60675f6 commit 7376972
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package io.quarkus.vertx.http.devconsole;

import org.hamcrest.Matchers;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

import io.quarkus.test.QuarkusDevModeTest;
import io.restassured.RestAssured;

public class DevConsoleSmokeTest {

@RegisterExtension
static final QuarkusDevModeTest config = new QuarkusDevModeTest()
.setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class));

@Test
public void testDevConsoleNotBroken() {
RestAssured.with()
.get("q/dev")
.then()
.statusCode(200).body(Matchers.containsString("Dev UI"));

}
}

0 comments on commit 7376972

Please sign in to comment.