use of org.talend.components.api.service.common.testcomponent.ComponentPropertiesWithDefinedI18N in project components by Talend.
the class ComponentServiceTest method testSupportsProps.
@Test
public void testSupportsProps() throws Throwable {
ComponentProperties props = getComponentService().getComponentProperties(TestComponentDefinition.COMPONENT_NAME);
ComponentPropertiesWithDefinedI18N anotherProp = (ComponentPropertiesWithDefinedI18N) new ComponentPropertiesWithDefinedI18N("foo").init();
List<ComponentDefinition> comps = getComponentService().getPossibleComponents(props, anotherProp);
assertEquals("TestComponent", comps.get(0).getName());
comps = getComponentService().getPossibleComponents(new NestedComponentProperties("props"), new NotExistingComponentProperties());
assertEquals(0, comps.size());
}
Aggregations