@@ -0,0 +1,1494 @@
+package io.quarkus.test.devconsole;%0A%0Aimport org.hamcrest.Matchers;%0Aimport org.jboss.shrinkwrap.api.asset.StringAsset;%0Aimport org.junit.jupiter.api.Test;%0Aimport org.junit.jupiter.api.extension.RegisterExtension;%0A%0Aimport io.quarkus.test.QuarkusDevModeTest;%0Aimport io.restassured.RestAssured;%0A%0A/**%0A * Note that this test cannot be placed under the relevant %7B@code -deployment%7D module because then the DEV UI processor would%0A * not be able to locate the template resources correctly.%0A */%0Apublic class DevConsoleHibernateSearchDisabledTest %7B%0A%0A    @RegisterExtension%0A    static final QuarkusDevModeTest test = new QuarkusDevModeTest()%0A            .withApplicationRoot((jar) -%3E jar.addAsResource(%0A                    new StringAsset(%22quarkus.datasource.db-kind=h2%5Cn%22%0A                            + %22quarkus.datasource.jdbc.url=jdbc:h2:mem:test%5Cn%22%0A                            // Hibernate Search is disabled: the dev console should be empty.%0A                            + %22quarkus.hibernate-search-orm.enabled=false%5Cn%22%0A                            + %22quarkus.hibernate-search-orm.elasticsearch.version=7.10%5Cn%22),%0A                    %22application.properties%22)%0A                    .addClasses(MyIndexedEntity.class));%0A%0A    @Test%0A    public void testPages() %7B%0A        RestAssured.get(%22q/dev/io.quarkus.quarkus-hibernate-search-orm-elasticsearch/entity-types%22)%0A                .then()%0A                .statusCode(200)%0A                .body(Matchers.containsString(%22No indexed entities were found%22));%0A    %7D%0A%0A%7D%0A

Test the Hibernate Search Dev Console when Hibernate Search is disabled