Code example for AllPermission

Methods: hashCode

0
	 * @tests java.security.AllPermission#hashCode() 
	 */ 
	public void test_hashCode() { 
		final int ALLPERMISSION_HASH = 1;
		// Test for method int java.security.AllPermission.hashCode() 
		AllPermission TestAllPermission = new AllPermission();
		assertTrue("AllPermission hashCode is wrong. Should have been "
				+ ALLPERMISSION_HASH + " but was "
				+ TestAllPermission.hashCode(),
				TestAllPermission.hashCode() == ALLPERMISSION_HASH);
	} 
 
	/** 
	 * @tests java.security.AllPermission#implies(java.security.Permission) 
	 */ 
	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.",