use of org.corpus_tools.annis.gui.querybuilder.QueryBuilderChooser in project ANNIS by korpling.
the class FlatQueryBuilderTest method setup.
@BeforeEach
public void setup() {
UIScopeImpl.setBeanStoreRetrievalStrategy(new SingletonBeanStoreRetrievalStrategy());
this.ui = beanFactory.getBean(AnnisUI.class);
MockVaadin.setup(() -> this.ui);
ui.getQueryState().setSelectedCorpora(Sets.newSet("pcc2"));
// Click on the query builder button and select the flat query builder
_click(_get(Button.class, spec -> spec.withCaption("Query<br />Builder")));
ComboBox queryBuilderChooser = _get(_get(QueryBuilderChooser.class), ComboBox.class);
queryBuilderChooser.select("Word sequences and meta information");
this.queryBuilder = _get(FlatQueryBuilder.class);
}
Aggregations