blob: c1758f5f490157803d17654938b9f38e5d8ef767 [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.service;
24
25import java.util.Set;
26
27import org.junit.Test;
28import org.onap.portalsdk.core.domain.Role;
29import org.onap.portalsdk.core.domain.User;
30
31public class AdminAuthExtensionTest {
32
33 private AdminAuthExtension createTestSubject() {
34 return new AdminAuthExtension();
35 }
36
37 @Test
38 public void testSaveUserExtension() throws Exception {
39 AdminAuthExtension testSubject;
40 User user = null;
41
42 // default test
43 testSubject = createTestSubject();
44 testSubject.saveUserExtension(user);
45 }
46
47 @Test
48 public void testEditUserExtension() throws Exception {
49 AdminAuthExtension testSubject;
50 User user = null;
51
52 // default test
53 testSubject = createTestSubject();
54 testSubject.editUserExtension(user);
55 }
56
57 @Test
58 public void testSaveUserRoleExtension() throws Exception {
59 AdminAuthExtension testSubject;
60 Set<Role> roles = null;
61 User user = null;
62
63 // default test
64 testSubject = createTestSubject();
65 testSubject.saveUserRoleExtension(roles, user);
66 }
67}