Search in sources :

Example 6 with TestConfig

use of com.haulmont.cuba.core.config.TestConfig 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

TestConfig (com.haulmont.cuba.core.config.TestConfig)6 Test (org.junit.Test)6 Configuration (com.haulmont.cuba.core.global.Configuration)4 TestBeanToInjectConfig (com.haulmont.cuba.core.config.TestBeanToInjectConfig)2 ParseException (java.text.ParseException)2 RoleType (com.haulmont.cuba.security.entity.RoleType)1 User (com.haulmont.cuba.security.entity.User)1 SimpleDateFormat (java.text.SimpleDateFormat)1 Date (java.util.Date)1 UUID (java.util.UUID)1