Changeset 5549 for ComponentRegistry/trunk/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/impl/database/GroupServiceImplTest.java
- Timestamp:
- 08/11/14 16:07:55 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/trunk/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/impl/database/GroupServiceImplTest.java
r4098 r5549 8 8 9 9 import clarin.cmdi.componentregistry.BaseUnitTest; 10 import clarin.cmdi.componentregistry.UserUnauthorizedException; 10 11 import clarin.cmdi.componentregistry.model.BaseDescription; 11 12 import clarin.cmdi.componentregistry.model.ComponentDescription; 12 13 import clarin.cmdi.componentregistry.model.Group; 13 import clarin.cmdi.componentregistry.model.GroupMembership;14 14 import clarin.cmdi.componentregistry.model.Ownership; 15 15 import clarin.cmdi.componentregistry.model.ProfileDescription; … … 47 47 profile.setId(ProfileDescription.PROFILE_PREFIX+sid); 48 48 profile.setName("profilename"); 49 profile.setCreatorName(DummyPrincipal.DUMMY_PRINCIPAL.getName()); 49 50 Number id = componentDescriptionDao.insertDescription(profile, "someContent", 50 51 isPublic, ownerId); … … 58 59 componentDescription.setId(ComponentDescription.COMPONENT_PREFIX+"4567"); 59 60 componentDescription.setName("componentname"); 61 componentDescription.setCreatorName(DummyPrincipal.DUMMY_PRINCIPAL.getName()); 60 62 Number id = componentDescriptionDao.insertDescription( 61 63 componentDescription, "someContent", isPublic, ownerId); … … 255 257 256 258 @Test 257 public void testTransferComponentOwnershipFromUserToGroup() {259 public void testTransferComponentOwnershipFromUserToGroup() throws UserUnauthorizedException{ 258 260 259 261 // Make a group … … 307 309 308 310 @Test 309 public void testtransferComponentOwnershipFromUserToGroup() {311 public void testtransferComponentOwnershipFromUserToGroup() throws UserUnauthorizedException{ 310 312 311 313 // Make a group … … 360 362 361 363 @Test 362 public void testTransferItemOwnershipFromUserToGroup() {364 public void testTransferItemOwnershipFromUserToGroup() throws UserUnauthorizedException{ 363 365 //TODO: improve test by mixing in components and exclusing components/profiles 364 366 // Make a group … … 413 415 414 416 @Test 415 public void testGetGroupsTheItemIsAMemberOf() {417 public void testGetGroupsTheItemIsAMemberOf() throws UserUnauthorizedException{ 416 418 // Make a group 417 419 Group group1 = groupDao.findOne(groupService.createNewGroup("Group 1",
Note: See TracChangeset
for help on using the changeset viewer.