use of org.talend.components.api.service.common.testcomponent.TestComponentWizardDefinition in project components by Talend.
the class DefintitionRegistryTest method testAddComponentWizardDefinition.
@Test
public void testAddComponentWizardDefinition() {
DefinitionRegistry registry = new DefinitionRegistry();
ComponentWizardDefinition def = new TestComponentWizardDefinition();
registry.registerComponentWizardDefinition(Arrays.asList(def));
assertThat(registry.getDefinitionsMapByType(ComponentWizardDefinition.class).keySet(), hasSize(1));
assertThat(registry.getDefinitionsMapByType(ComponentWizardDefinition.class), hasEntry(def.getName(), def));
}
Aggregations