Search in sources :

Example 1 with TestComponentProperties

use of org.talend.components.api.testcomponent.TestComponentProperties in project components by Talend.

the class ComponentPropertiesInitializationTest method test.

@Test
@Ignore("This is just an example of how performance tests can be written")
@PerfTest(invocations = 5, threads = 1)
@Required(max = 200, average = 100)
public void test() {
    TestComponentDefinition cd = new TestComponentDefinition();
    TestComponentProperties prop = (TestComponentProperties) cd.createRuntimeProperties();
    prop.init();
}
Also used : TestComponentProperties(org.talend.components.api.testcomponent.TestComponentProperties) TestComponentDefinition(org.talend.components.api.testcomponent.TestComponentDefinition) Ignore(org.junit.Ignore) Required(org.databene.contiperf.Required) PerfTest(org.databene.contiperf.PerfTest) Test(org.junit.Test) PerfTest(org.databene.contiperf.PerfTest)

Example 2 with TestComponentProperties

use of org.talend.components.api.testcomponent.TestComponentProperties in project components by Talend.

the class ComponentDefinitionTest method test.

@Test
public void test() {
    TestComponentDefinition cd = new TestComponentDefinition();
    TestComponentProperties prop = (TestComponentProperties) cd.createRuntimeProperties();
    assertNotNull(prop.initLater);
    assertNull(prop.mainForm);
}
Also used : TestComponentProperties(org.talend.components.api.testcomponent.TestComponentProperties) TestComponentDefinition(org.talend.components.api.testcomponent.TestComponentDefinition) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)2 TestComponentDefinition (org.talend.components.api.testcomponent.TestComponentDefinition)2 TestComponentProperties (org.talend.components.api.testcomponent.TestComponentProperties)2 PerfTest (org.databene.contiperf.PerfTest)1 Required (org.databene.contiperf.Required)1 Ignore (org.junit.Ignore)1