| org.jasig.portal.groups.filesystem.FileSystemGroupsTest
FileSystemGroupsTest | public class FileSystemGroupsTest extends TestCase (Code) | | This class was rewritten to eliminate external dependencies, chiefly
on the composite group service. Although this was mostly achieved,
2 dependencies remain. It needs a file system to read via java.io,
since this is what is being tested, and it requires a composite
group service configuration document. I will eventually remove these
dependencies but it seemed better to get the test in now. I was
thinking we could eventually use something like Apache Commons VFS
to set up a virtual file system (a future enhancement for the
FileSystem group service). In the meantime, this class must create a
GROUPS_ROOT directory and write to it. The class first tries to
create the directory in the user.home. If unsuccessful, it tries to
create it in the current directory, and if this is unsuccessful,
it dies.
author: Dan Ellentuck version: $Revision: 35608 $ |
FileSystemGroupsTest | public FileSystemGroupsTest(String name)(Code) | | FileSystemGroupsTest.
|
addIdsToFile | protected void addIdsToFile(File f)(Code) | | |
setUp | protected void setUp()(Code) | | |
suite | public static junit.framework.Test suite()(Code) | | junit.framework.Test |
tearDown | protected void tearDown()(Code) | | |
testFind | public void testFind() throws Exception(Code) | | Tests IEntityGroupStore.find(), which returns an instance of IEntityGroup
given a key.
|
testFindContainingGroups | public void testFindContainingGroups() throws Exception(Code) | | Tests IEntityGroupStore.findContainingGroups() for both an IEntity and
an IEntityGroup.
|
testFindEmbeddedMemberGroups | public void testFindEmbeddedMemberGroups() throws Exception(Code) | | Tests IEntityGroupStore.findMemberGroups(), findContainingGroups
|
testFindEntitiesForGroup | public void testFindEntitiesForGroup() throws Exception(Code) | | Tests IEntityGroupStore.findEntitiesForGroup().
|
testFindMemberGroupKeys | public void testFindMemberGroupKeys() throws Exception(Code) | | Tests IEntityGroupStore.findMemberGroupKeys().
|
testFindMemberGroups | public void testFindMemberGroups() throws Exception(Code) | | Tests IEntityGroupStore.findMemberGroups().
|
testSearchForGroups | public void testSearchForGroups() throws Exception(Code) | | Tests IEntityGroupStore.searchForGroups(), which returns EntityIdentifier[] given
a search string.
|
|
|