use of org.talend.components.api.service.common.testcomponent.TestComponentWizard in project components by Talend.
the class ComponentServiceTest method testGetWizard.
@Test
public void testGetWizard() {
ComponentWizard wizard = getComponentService().getComponentWizard(TestComponentWizardDefinition.COMPONENT_WIZARD_NAME, "userdata");
assertTrue(wizard instanceof TestComponentWizard);
assertEquals("userdata", wizard.getRepositoryLocation());
}
use of org.talend.components.api.service.common.testcomponent.TestComponentWizard in project components by Talend.
the class ComponentServiceTest method testGetWizardWithProps.
@Test
public void testGetWizardWithProps() {
TestComponentWizard wizard = (TestComponentWizard) getComponentService().getComponentWizard(TestComponentWizardDefinition.COMPONENT_WIZARD_NAME, "userdata");
wizard.props = new TestComponentProperties("props").init();
ComponentProperties props = (ComponentProperties) wizard.props;
List<ComponentWizard> wizards = getComponentService().getComponentWizardsForProperties(props, "userdata");
assertTrue(props == ((TestComponentWizard) wizards.get(0)).props);
}
Aggregations