Code example for Provider

Methods: getName

0
	/* 
	 * @see TestCase#tearDown() 
	 */ 
	protected void tearDown() throws Exception { 
		super.tearDown(); 
		Security.removeProvider(p.getName());
	} 
 
	/* 
	 * Class under test for MessageDigest getInstance(String) 
	 */ 
	public void testGetInstanceString1() throws Exception { 
		MessageDigest md1 = MessageDigest.getInstance("ABC");		
		checkMD1(md1, p);
	} 
	 
	/* 
	 * Class under test for MessageDigest getInstance(String) 
	 */ 
	public void testGetInstanceString2() throws Exception { 
		MessageDigest md2 = MessageDigest.getInstance("CBA");