use of io.lumeer.storage.api.query.SuggestionQuery in project engine by Lumeer.
the class MorphiaViewDaoTest method testGetViewsBySuggestionTextDifferentUser.
@Test
public void testGetViewsBySuggestionTextDifferentUser() {
createView(CODE, NAME);
createView(CODE2, NAME2);
createView(CODE3, NAME3);
SuggestionQuery query = SuggestionQuery.createBuilder(USER2).text("test").build();
List<View> views = viewDao.getViews(query);
assertThat(views).extracting(View::getCode).isEmpty();
}
Aggregations