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