Skip to content

Commit

Permalink
Test for mongo version of #5885 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Dec 16, 2019
1 parent e830a79 commit 75489e2
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package io.quarkus.it.mongodb.panache.bugs;

import io.quarkus.mongodb.panache.PanacheMongoRepositoryBase;

public abstract class Bug5885AbstractRepository<T> implements PanacheMongoRepositoryBase<T, Long> {

}
Original file line number Diff line number Diff line change
@@ -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<PersonEntity> {
}
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}
}

0 comments on commit 75489e2

Please sign in to comment.