Code example for AllPermission

Methods: implies

0
	 */ 
	public void test_impliesLjava_security_Permission() { 
		// Test for method boolean 
		// java.security.AllPermission.implies(java.security.Permission) 
		assertTrue("AllPermission does not imply a AllPermission.",
				new AllPermission().implies(new AllPermission()));
		assertTrue("AllPermission does not imply a SecurityPermission.",
				new AllPermission().implies(new SecurityPermission("ugh!")));
		assertTrue("SecurityPermission implies AllPermission.",
				!(new SecurityPermission("ugh!").implies(new AllPermission())));
	} 
}