| java.security.BasicPermissionTest
BasicPermissionTest | public class BasicPermissionTest extends TestCase (Code) | | Tests for BasicPermission
|
Method Summary | |
public static void | main(String[] args) | public void | testCollection() | public void | testCtor() Check all constructors: an object is created with the specified valid name. | public void | testEquals() | public void | testImplies() implies() should return true if a permission is equal to or is implied
by wildcarded permission, false otherwise. |
BasicPermissionTest | public BasicPermissionTest(String arg0)(Code) | | Constructor for BasicPermissionTest.
Parameters: arg0 - |
testCollection | public void testCollection()(Code) | | newPermissionCollection() should return new BasicPermissionCollection on every invocation
|
testCtor | public void testCtor()(Code) | | Check all constructors: an object is created with the specified valid name.
If name equal null then NPE should be thrown.
If name is empty then IAE should be thrown.
Action is ignored.
|
testEquals | public void testEquals()(Code) | | two BasicPermissions are equal if name and class are equal;
equal permissions should have the same hash code
|
testImplies | public void testImplies()(Code) | | implies() should return true if a permission is equal to or is implied
by wildcarded permission, false otherwise.
|
|
|