Code example for AllPermission

Methods: getActions

0
 
	/** 
	 * @tests java.security.AllPermission#getActions() 
	 */ 
	public void test_getActions() { 
		AllPermission ap = new AllPermission();
		// Test for method java.lang.String 
		// java.security.AllPermission.getActions() 
		assertTrue("AllPermission has non-empty actions. (" + ap.getActions()
				+ ")", ap.getActions().equals("<all actions>"));
	} 
 
	/** 
	 * @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 "