1 package org.openecomp.portalapp.service;
5 import org.junit.Assert;
7 import org.openecomp.portalsdk.core.MockApplicationContextTestSuite;
8 import org.openecomp.portalsdk.core.domain.Profile;
9 import org.openecomp.portalsdk.core.domain.User;
10 import org.openecomp.portalsdk.core.service.ProfileService;
11 import org.openecomp.portalsdk.core.service.UserProfileService;
12 import org.springframework.beans.factory.annotation.Autowired;
15 public class ProfileServiceTest extends MockApplicationContextTestSuite {
18 ProfileService service;
21 UserProfileService userProfileService;
24 public void testFindAll() {
26 List<Profile> profiles = service.findAll();
27 Assert.assertTrue(profiles.size() > 0);
31 public void testFindAllActive() {
33 List<User> users = userProfileService.findAllActive();
34 List<User> activeUsers = userProfileService.findAllActive();
35 Assert.assertTrue(users.size() - activeUsers.size() >= 0);