use of org.kie.workbench.common.screens.examples.model.ExamplesMetaData in project kie-wb-common by kiegroup.
the class ExamplesWizard method start.
@Override
public void start() {
for (WizardPage page : pages) {
page.initialise();
((ExamplesWizardPage) page).setModel(model);
}
examplesService.call(new RemoteCallback<ExamplesMetaData>() {
@Override
public void callback(final ExamplesMetaData metaData) {
final ExampleRepository repository = metaData.getRepository();
sourceRepositoryPage.setPlaygroundRepository(repository);
ExamplesWizard.super.start();
}
}).getMetaData();
}
use of org.kie.workbench.common.screens.examples.model.ExamplesMetaData in project kie-wb-common by kiegroup.
the class ExamplesServiceImplTest method testGetMetaData.
@Test
public void testGetMetaData() {
// Emulate @PostConstruct mechanism
service.initPlaygroundRepository();
final ExamplesMetaData metaData = service.getMetaData();
assertNotNull(metaData);
assertNotNull(metaData.getRepository());
assertNotNull(metaData.getRepository().getUrl());
}
Aggregations