Unit tests
[vid.git] / epsdk-app-onap / src / test / java / org / onap / portalapp / conf / ExternalAppConfigTest.java
1 package org.onap.portalapp.conf;
2
3 import java.util.List;
4
5 import org.junit.Test;
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;
15
16 public class ExternalAppConfigTest {
17
18     private ExternalAppConfig createTestSubject() {
19         return new ExternalAppConfig();
20     }
21
22     @Test
23     public void testViewResolver() throws Exception {
24         ExternalAppConfig testSubject;
25         ViewResolver result;
26
27         // default test
28         testSubject = createTestSubject();
29         result = testSubject.viewResolver();
30     }
31
32
33
34     @Test
35     public void testDataAccessService() throws Exception {
36         ExternalAppConfig testSubject;
37         DataAccessService result;
38
39         // default test
40         testSubject = createTestSubject();
41         result = testSubject.dataAccessService();
42     }
43
44     @Test
45     public void testAddTileDefinitions() throws Exception {
46         ExternalAppConfig testSubject;
47         List<String> result;
48
49         // default test
50         testSubject = createTestSubject();
51         result = testSubject.addTileDefinitions();
52     }
53
54    
55
56     @Test
57     public void testCacheManager() throws Exception {
58         ExternalAppConfig testSubject;
59         //AbstractCacheManager result;
60
61         // default test
62         testSubject = createTestSubject();
63         testSubject.cacheManager();
64     }
65    
66
67
68     @Test
69     public void testSetSchedulerRegistryAdapter() throws Exception {
70         ExternalAppConfig testSubject;
71         RegistryAdapter schedulerRegistryAdapter = null;
72
73         // default test
74         testSubject = createTestSubject();
75         testSubject.setSchedulerRegistryAdapter(schedulerRegistryAdapter);
76     }
77
78     @Test
79     public void testLoginStrategy() throws Exception {
80         ExternalAppConfig testSubject;
81         LoginStrategy result;
82
83         // default test
84         testSubject = createTestSubject();
85         result = testSubject.loginStrategy();
86     }
87 }