Code example for AllPermission

Methods: getName

0
	/** 
	 * @tests java.security.AllPermission#AllPermission() 
	 */ 
	public void test_Constructor() { 
		// Test for method java.security.AllPermission() 
		AllPermission ap = new AllPermission();
		assertEquals("Bogus name for AllPermission \"" + ap.getName() + "\".",
				"<all permissions>", ap.getName());
	} 
 
	/** 
	 * @tests java.security.AllPermission#AllPermission(java.lang.String, 
	 *        java.lang.String) 
	 */ 
	public void test_ConstructorLjava_lang_StringLjava_lang_String() { 
		// Test for method java.security.AllPermission(java.lang.String, 
		// java.lang.String) 
		AllPermission ap = new AllPermission("Don't remember this stupid name",
				"or this action"); 
		assertEquals("Bogus name for AllPermission \"" + ap.getName() + "\".",
				"<all permissions>", ap.getName());