Search in sources :

Example 1 with TestInjectComponentDefinition

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

Aggregations

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