Test fixes

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2219 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Andrew Hind
2006-01-26 16:36:48 +00:00
parent aa831ddd85
commit 05a1f2b65f
2 changed files with 3 additions and 8 deletions

View File

@@ -132,6 +132,7 @@ public class SimpleAuthorityServiceTest extends TestCase
assertTrue(pubAuthorityService.getAllAuthorities(AuthorityType.GUEST).contains(PermissionService.GUEST));
assertEquals(0, pubAuthorityService.getAllAuthorities(AuthorityType.OWNER).size());
assertEquals(0, pubAuthorityService.getAllAuthorities(AuthorityType.ROLE).size());
assertEquals(2, pubAuthorityService.getAllAuthorities(AuthorityType.USER).size());
assertEquals(personService.getAllPeople().size(), pubAuthorityService.getAllAuthorities(AuthorityType.USER)
.size());

View File

@@ -179,8 +179,6 @@ public class PersonTest extends BaseSpringTest
assertTrue(personService.getAllPeople().contains(personService.getPerson("andy")));
assertTrue(personService.getAllPeople().contains(personService.getPerson("derek")));
setComplete();
endTransaction();
}
public void testMutableProperties()
@@ -192,8 +190,6 @@ public class PersonTest extends BaseSpringTest
assertTrue(personService.getMutableProperties().contains(ContentModel.PROP_EMAIL));
assertTrue(personService.getMutableProperties().contains(ContentModel.PROP_ORGID));
setComplete();
endTransaction();
}
public void testPersonCRUD1()
@@ -266,8 +262,6 @@ public class PersonTest extends BaseSpringTest
personService.deletePerson("derek");
assertEquals(0, personService.getAllPeople().size());
setComplete();
endTransaction();
}
private void testProperties(NodeRef nodeRef, String userName, String firstName, String lastName, String email,