Code example for SecurityPermission

Methods: getName

0
	/** 
	 * @tests java.security.Permission#Permission(java.lang.String) 
	 */ 
	public void test_ConstructorLjava_lang_String() { 
		// test method java.security.permission.Permission(string) 
		SecurityPermission permi = new SecurityPermission(
				"Testing the permission abstract class"); 
		String name = permi.getName();
		assertEquals("Permission Constructor failed",
				"Testing the permission abstract class", name);
	} 
 
	/** 
	 * @tests java.security.Permission#checkGuard(java.lang.Object) 
	 */ 
	public void test_checkGuardLjava_lang_Object() { 
		// test method java.security.permission.checkGuard(object) 
		SecurityPermission permi = new SecurityPermission(
				"Testing the permission abstract class"); 
		String name = permi.getName();
		try {