use of org.corpus_tools.annis.gui.SingletonBeanStoreRetrievalStrategy in project ANNIS by korpling.
the class AdminViewTest method setup.
@BeforeEach
void setup() throws IOException {
UIScopeImpl.setBeanStoreRetrievalStrategy(new SingletonBeanStoreRetrievalStrategy());
this.ui = beanFactory.getBean(AnnisUI.class);
MockVaadin.setup(() -> ui);
_click(_get(Button.class, spec -> spec.withCaption("Administration")));
}
use of org.corpus_tools.annis.gui.SingletonBeanStoreRetrievalStrategy in project ANNIS by korpling.
the class MigrationPanelTest method setup.
@BeforeEach
void setup() throws IOException {
UIScopeImpl.setBeanStoreRetrievalStrategy(new SingletonBeanStoreRetrievalStrategy());
this.ui = beanFactory.getBean(AnnisUI.class);
this.legacyServer = new MockWebServer();
this.legacyServer.start();
MockVaadin.setup(() -> ui);
}
use of org.corpus_tools.annis.gui.SingletonBeanStoreRetrievalStrategy in project ANNIS by korpling.
the class ReferenceLinkEditorTest method setup.
@BeforeEach
void setup() throws IOException {
UIScopeImpl.setBeanStoreRetrievalStrategy(new SingletonBeanStoreRetrievalStrategy());
this.ui = beanFactory.getBean(AnnisUI.class);
MockVaadin.setup(() -> ui);
_click(_get(Button.class, spec -> spec.withCaption("Administration")));
TabSheet tab = _get(TabSheet.class);
panel = _get(ReferenceLinkEditor.class);
tab.setSelectedTab(panel);
// Add some example entries
ui.getUrlShortener().getRepo().deleteAll();
UrlShortener urlShortener = this.ui.getUrlShortener();
entry1 = new UrlShortenerEntry();
entry1.setId(UUID.fromString("4366b0a5-6b27-40fe-ac5d-08e75c9eef51"));
entry1.setUrl(URI.create("/test1"));
urlShortener.getRepo().save(entry1);
entry2 = new UrlShortenerEntry();
entry2.setId(UUID.fromString("b1912b10-93f3-4018-84e8-6bf7572ee163"));
entry2.setUrl(URI.create("/test2"));
entry2.setTemporaryUrl(URI.create("/temp2"));
urlShortener.getRepo().save(entry2);
}
use of org.corpus_tools.annis.gui.SingletonBeanStoreRetrievalStrategy in project ANNIS by korpling.
the class CSVExporterTest method setup.
@BeforeEach
void setup() {
UIScopeImpl.setBeanStoreRetrievalStrategy(new SingletonBeanStoreRetrievalStrategy());
this.ui = beanFactory.getBean(AnnisUI.class);
MockVaadin.setup(() -> ui);
}
use of org.corpus_tools.annis.gui.SingletonBeanStoreRetrievalStrategy in project ANNIS by korpling.
the class TextColumnExporterTest method setup.
@BeforeEach
void setup() {
UIScopeImpl.setBeanStoreRetrievalStrategy(new SingletonBeanStoreRetrievalStrategy());
this.ui = beanFactory.getBean(AnnisUI.class);
MockVaadin.setup(() -> ui);
}
Aggregations