| java.security.UnresolvedPermissionCollection_ImplTest
UnresolvedPermissionCollection_ImplTest | public class UnresolvedPermissionCollection_ImplTest extends TestCase (Code) | | Tests for UnresolvedPermissionCollection class fields and methods
|
testAdd | public void testAdd()(Code) | | Can add any number of UnresolvedPermission instances, but no any other permissions.
Cannot add if collection is read-only.
|
testElements | public void testElements()(Code) | | Should return non-null empty enumeration for empty collection.
For non-empty collection, should always return enumeration over unique elements.
|
testImplies | public void testImplies()(Code) | | This collection never implies any permission.
|
testResolveCollection | public void testResolveCollection()(Code) | | For null collection passed, should behave correctly:
- If nothing resolved, returns null and does not remove elements
- If some permission resolved, returns proper collection and removes resolved elements
|
testResolveCollectionPartial | public void testResolveCollectionPartial()(Code) | | Test for case when some permissions of the expected type were not resolved for some reason,
while others were resolved. Returned collection should contain resolved permissions only,
and the unresolved collection should retain unresolved ones only.
|
testResolveCollectionReturnedCollection | public void testResolveCollectionReturnedCollection()(Code) | | For real collection passed, should behave correctly:
- If nothing resolved, returns the collection and does not remove elements
- If some permission resolved, returns the collection and removes resolved elements
|
|
|