JooqRepository implements Repository { @Override public Project getProject(String projectId) { return createProjectFrom(DSL.using(connectionProvider, dialect).selectFrom(PROJECT). where(PROJECT.ID.eq(projectId)).fetchOne()); } JooqRepository(final DataSource connectionProvider, final SQLDialect dialect); @Override NamedEntity getNamedEntity(String id); @Override void create(List<NamedEntity> neList); @Override Document getDocument(final String id); @Override void create(Document doc); @Override List<Document> getDocumentsNotTaggedWithPipeline(Project project, Pipeline.Type type); @Override List<Document> getStarredDocuments(User user); @Override int star(Project project, User user, List<String> documentIds); @Override int unstar(Project project, User user, List<String> documentIds); @Override List<String> getStarredDocuments(Project project, User user); @Override int recommend(Project project, User user, List<String> documentIds); @Override int unrecommend(Project project, User user, List<String> documentIds); @Override AggregateList<User> getRecommendations(Project project, List<String> documentIds); @Override AggregateList<User> getRecommendations(Project project); @Override Set<String> getRecommentationsBy(Project project, List<User> users); @Override boolean tag(Project prj, String documentId, Tag... tags); @Override boolean untag(Project prj, String documentId, Tag... tags); @Override boolean tag(Project prj, List<String> documentIds, Tag... tags); @Override boolean untag(Project prj, List<String> documentIds, Tag... tags); @Override List<String> getDocuments(Project project, Tag... tags); @Override List<Tag> getTags(Project project, String documentId); @Override boolean deleteAll(String projectId); @Override Project getProject(String projectId); @Override List<Note> getNotes(Project prj, String documentPath); @Override List<Note> getNotes(Project prj); @Override boolean save(Note note); boolean save(User user); User getUser(String uid); @Override boolean getHealth();  }
@Test public void test_get_unknown_project() { assertThat(repository.getProject("unknown")).isNull(); }