Search in sources :

Example 1 with TestComponentWizardDefinition

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));
}
Also used : TestComponentWizardDefinition(org.talend.components.api.service.common.testcomponent.TestComponentWizardDefinition) ComponentWizardDefinition(org.talend.components.api.wizard.ComponentWizardDefinition) TestComponentWizardDefinition(org.talend.components.api.service.common.testcomponent.TestComponentWizardDefinition) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 TestComponentWizardDefinition (org.talend.components.api.service.common.testcomponent.TestComponentWizardDefinition)1 ComponentWizardDefinition (org.talend.components.api.wizard.ComponentWizardDefinition)1