Search in sources :

Example 1 with TestNestedInjectComponentProperties

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));
}
Also used : TestNestedInjectComponentProperties(org.talend.components.api.service.common.testcomponent.inject.TestNestedInjectComponentProperties) TestNestedInjectComponentDefinition(org.talend.components.api.service.common.testcomponent.inject.TestNestedInjectComponentDefinition) DefinitionRegistryService(org.talend.daikon.definition.service.DefinitionRegistryService) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 TestNestedInjectComponentDefinition (org.talend.components.api.service.common.testcomponent.inject.TestNestedInjectComponentDefinition)1 TestNestedInjectComponentProperties (org.talend.components.api.service.common.testcomponent.inject.TestNestedInjectComponentProperties)1 DefinitionRegistryService (org.talend.daikon.definition.service.DefinitionRegistryService)1