Search in sources :

Example 1 with TestBeanToInjectConfig

use of com.haulmont.cuba.core.config.TestBeanToInjectConfig in project cuba by cuba-platform.

the class ConfigProviderTest method testInjectedConfigBySetter.

@Test
public void testInjectedConfigBySetter() throws Exception {
    TestBeanToInjectConfig bean = AppBeans.get(TestBeanToInjectConfig.class);
    TestConfig config = bean.getConfig2();
    assertNotNull(config);
    assertTrue(config.getBooleanPropDef());
}
Also used : TestConfig(com.haulmont.cuba.core.config.TestConfig) TestBeanToInjectConfig(com.haulmont.cuba.core.config.TestBeanToInjectConfig) Test(org.junit.Test)

Example 2 with TestBeanToInjectConfig

use of com.haulmont.cuba.core.config.TestBeanToInjectConfig in project cuba by cuba-platform.

the class ConfigProviderTest method testInjectedConfig.

@Test
public void testInjectedConfig() throws Exception {
    TestBeanToInjectConfig bean = AppBeans.get(TestBeanToInjectConfig.class);
    TestConfig config = bean.getConfig();
    assertNotNull(config);
    assertTrue(config.getBooleanPropDef());
}
Also used : TestConfig(com.haulmont.cuba.core.config.TestConfig) TestBeanToInjectConfig(com.haulmont.cuba.core.config.TestBeanToInjectConfig) Test(org.junit.Test)

Aggregations

TestBeanToInjectConfig (com.haulmont.cuba.core.config.TestBeanToInjectConfig)2 TestConfig (com.haulmont.cuba.core.config.TestConfig)2 Test (org.junit.Test)2