blob: 19e54208b3d11c03e2cdabb8fed2e01f5001111a [file] [log] [blame]
Aharoni, Pavel (pa0916)ca3cb012018-10-22 15:29:57 +03001/*-
2 * ============LICENSE_START=======================================================
3 * OSAM
4 * ================================================================================
5 * Copyright (C) 2018 AT&T
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
19 */
20
21
22
23package org.onap.portalapp.scheduler;
24
25import java.util.List;
26
27import org.junit.Test;
28import org.onap.portalsdk.core.scheduler.Registerable;
29import org.onap.portalsdk.workflow.services.WorkflowScheduleService;
30import org.springframework.scheduling.quartz.SchedulerFactoryBean;
31
32public class RegistryAdapterTest {
33
34 private RegistryAdapter createTestSubject() {
35 return new RegistryAdapter();
36 }
37
38 @Test
39 public void testSetSchedulerBean() throws Exception {
40 RegistryAdapter testSubject;
41 SchedulerFactoryBean schedulerBean = null;
42
43 // default test
44 testSubject = createTestSubject();
45 testSubject.setSchedulerBean(schedulerBean);
46 }
47
48 @Test
49 public void testGetSchedulerBean() throws Exception {
50 RegistryAdapter testSubject;
51 SchedulerFactoryBean result;
52
53 // default test
54 testSubject = createTestSubject();
55 result = testSubject.getSchedulerBean();
56 }
57
58 @Test
59 public void testGetRegistry() throws Exception {
60 RegistryAdapter testSubject;
61 Registerable result;
62
63 // default test
64 testSubject = createTestSubject();
65 result = testSubject.getRegistry();
66 }
67
68 @Test
69 public void testSetRegistry() throws Exception {
70 RegistryAdapter testSubject;
71 Registerable registry = null;
72
73 // default test
74 testSubject = createTestSubject();
75 testSubject.setRegistry(registry);
76 }
77
78 @Test
79 public void testGetWorkflowScheduleService() throws Exception {
80 RegistryAdapter testSubject;
81 WorkflowScheduleService result;
82
83 // default test
84 testSubject = createTestSubject();
85 result = testSubject.getWorkflowScheduleService();
86 }
87
88 @Test
89 public void testSetWorkflowScheduleService() throws Exception {
90 RegistryAdapter testSubject;
91 WorkflowScheduleService workflowScheduleService = null;
92
93 // default test
94 testSubject = createTestSubject();
95 testSubject.setWorkflowScheduleService(workflowScheduleService);
96 }
97}