Search in sources :

Example 1 with ConfigTestUtils

use of com.agiletec.ConfigTestUtils in project entando-core by entando.

the class UserProfileManagerTest method setUp.

@Before
public void setUp() throws Exception {
    MockServletContext servletContext = new MockServletContext("", new FileSystemResourceLoader());
    new ConfigTestUtils().createApplicationContext(servletContext);
    MockitoAnnotations.initMocks(this);
    this.userProfileManager.setEntityClassName(className);
    this.userProfileManager.setConfigItemName(configItemName);
    this.userProfileManager.setBeanName(this.beanName);
}
Also used : FileSystemResourceLoader(org.springframework.core.io.FileSystemResourceLoader) MockServletContext(org.springframework.mock.web.MockServletContext) ConfigTestUtils(com.agiletec.ConfigTestUtils) Before(org.junit.Before)

Aggregations

ConfigTestUtils (com.agiletec.ConfigTestUtils)1 Before (org.junit.Before)1 FileSystemResourceLoader (org.springframework.core.io.FileSystemResourceLoader)1 MockServletContext (org.springframework.mock.web.MockServletContext)1