diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5885AbstractRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5885AbstractRepository.java new file mode 100644 index 0000000000000..4b4549792bac3 --- /dev/null +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5885AbstractRepository.java @@ -0,0 +1,7 @@ +package io.quarkus.it.mongodb.panache.bugs; + +import io.quarkus.mongodb.panache.PanacheMongoRepositoryBase; + +public abstract class Bug5885AbstractRepository implements PanacheMongoRepositoryBase { + +} diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5885EntityRepository.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5885EntityRepository.java new file mode 100644 index 0000000000000..bb9642055fa40 --- /dev/null +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/Bug5885EntityRepository.java @@ -0,0 +1,9 @@ +package io.quarkus.it.mongodb.panache.bugs; + +import javax.enterprise.context.ApplicationScoped; + +import io.quarkus.it.mongodb.panache.person.PersonEntity; + +@ApplicationScoped +public class Bug5885EntityRepository extends Bug5885AbstractRepository { +} diff --git a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/BugResource.java b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/BugResource.java index 788c811915a7d..bc39e8c657cdb 100644 --- a/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/BugResource.java +++ b/integration-tests/mongodb-panache/src/main/java/io/quarkus/it/mongodb/panache/bugs/BugResource.java @@ -21,4 +21,14 @@ public String testBug5274() { bug5274EntityRepository.count(); return "OK"; } + + @Inject + Bug5885EntityRepository bug5885EntityRepository; + + @GET + @Path("5885") + public String testBug5885() { + bug5885EntityRepository.findById(1L); + return "OK"; + } } diff --git a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheResourceTest.java b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheResourceTest.java index ff899be5d54a2..2c75db6d87471 100644 --- a/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheResourceTest.java +++ b/integration-tests/mongodb-panache/src/test/java/io/quarkus/it/mongodb/panache/MongodbPanacheResourceTest.java @@ -334,4 +334,8 @@ public void testBug5274() { get("/bugs/5274").then().body(is("OK")); } + @Test + public void testBug5885() { + get("/bugs/5885").then().body(is("OK")); + } }