use of org.talend.components.api.service.common.testcomponent.inject.TestInjectComponentDefinition in project components by Talend.
the class DefintitionRegistryTest method testCreateNewPropertiesWithInjected.
@Test
public void testCreateNewPropertiesWithInjected() {
DefinitionRegistryService registry = new DefinitionRegistry();
TestInjectComponentDefinition def = new TestInjectComponentDefinition();
TestInjectComponentProperties testProps = (TestInjectComponentProperties) registry.createProperties(def, "testProps");
assertThat(testProps.getDefinitionRegistry(), equalTo(registry));
}
Aggregations