1 package org.onap.portalapp.conf;
6 import org.onap.portalapp.scheduler.RegistryAdapter;
7 import org.onap.portalsdk.core.auth.LoginStrategy;
8 import org.onap.portalsdk.core.service.DataAccessService;
9 import org.springframework.jdbc.datasource.init.DataSourceInitializer;
10 import org.springframework.jdbc.datasource.init.DatabasePopulator;
11 import org.springframework.scheduling.quartz.SchedulerFactoryBean;
12 import org.springframework.web.servlet.ViewResolver;
13 import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
14 import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
16 public class ExternalAppConfigTest {
18 private ExternalAppConfig createTestSubject() {
19 return new ExternalAppConfig();
23 public void testViewResolver() throws Exception {
24 ExternalAppConfig testSubject;
28 testSubject = createTestSubject();
29 result = testSubject.viewResolver();
35 public void testDataAccessService() throws Exception {
36 ExternalAppConfig testSubject;
37 DataAccessService result;
40 testSubject = createTestSubject();
41 result = testSubject.dataAccessService();
45 public void testAddTileDefinitions() throws Exception {
46 ExternalAppConfig testSubject;
50 testSubject = createTestSubject();
51 result = testSubject.addTileDefinitions();
57 public void testCacheManager() throws Exception {
58 ExternalAppConfig testSubject;
59 //AbstractCacheManager result;
62 testSubject = createTestSubject();
63 testSubject.cacheManager();
69 public void testSetSchedulerRegistryAdapter() throws Exception {
70 ExternalAppConfig testSubject;
71 RegistryAdapter schedulerRegistryAdapter = null;
74 testSubject = createTestSubject();
78 public void testLoginStrategy() throws Exception {
79 ExternalAppConfig testSubject;
83 testSubject = createTestSubject();
84 result = testSubject.loginStrategy();