diff options
author | 2018-03-18 16:06:37 +0200 | |
---|---|---|
committer | 2018-03-18 16:06:37 +0200 | |
commit | 8fdf2dee7684f4911a58a2350626300af52b6e4d (patch) | |
tree | 656b4e847e097838f470a468c92aa7a1ebc282d6 /epsdk-app-onap/src/test/java/org/onap/portalapp/service | |
parent | c9d63f49af5455f503ca63395121b7cd4d8c8c88 (diff) |
Unit tests
Change-Id: I9ff2a916f09856e3a79d037a8815224ddb9e7a9b
Issue-ID: VID-197
Signed-off-by: Sonsino, Ofir (os0695) <os0695@intl.att.com>
Diffstat (limited to 'epsdk-app-onap/src/test/java/org/onap/portalapp/service')
-rw-r--r-- | epsdk-app-onap/src/test/java/org/onap/portalapp/service/AdminAuthExtensionTest.java | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/epsdk-app-onap/src/test/java/org/onap/portalapp/service/AdminAuthExtensionTest.java b/epsdk-app-onap/src/test/java/org/onap/portalapp/service/AdminAuthExtensionTest.java new file mode 100644 index 000000000..6b1066b5e --- /dev/null +++ b/epsdk-app-onap/src/test/java/org/onap/portalapp/service/AdminAuthExtensionTest.java @@ -0,0 +1,45 @@ +package org.onap.portalapp.service; + +import java.util.Set; + +import org.junit.Test; +import org.onap.portalsdk.core.domain.Role; +import org.onap.portalsdk.core.domain.User; + +public class AdminAuthExtensionTest { + + private AdminAuthExtension createTestSubject() { + return new AdminAuthExtension(); + } + + @Test + public void testSaveUserExtension() throws Exception { + AdminAuthExtension testSubject; + User user = null; + + // default test + testSubject = createTestSubject(); + testSubject.saveUserExtension(user); + } + + @Test + public void testEditUserExtension() throws Exception { + AdminAuthExtension testSubject; + User user = null; + + // default test + testSubject = createTestSubject(); + testSubject.editUserExtension(user); + } + + @Test + public void testSaveUserRoleExtension() throws Exception { + AdminAuthExtension testSubject; + Set<Role> roles = null; + User user = null; + + // default test + testSubject = createTestSubject(); + testSubject.saveUserRoleExtension(roles, user); + } +}
\ No newline at end of file |