use of org.kie.workbench.common.screens.examples.model.ExampleRepository in project kie-wb-common by kiegroup.
the class ExamplesServiceImplTest method testGetProjects_NullRepositoryUrl.
@Test
public void testGetProjects_NullRepositoryUrl() {
final Set<ExampleProject> modules = service.getProjects(new ExampleRepository(null));
assertNotNull(modules);
assertEquals(0, modules.size());
}
use of org.kie.workbench.common.screens.examples.model.ExampleRepository 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();
}
Aggregations