Code example for NoSuchAlgorithmException

Methods: toString

0
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "SecureRandom", 
        args = {} 
    ) 
    public final void testSecureRandom() { 
        SecureRandom sr = new SecureRandom();
        if (!sr.getAlgorithm().equals("someRandom")  ||
                sr.getProvider()!= p) {
            fail("incorrect SecureRandom implementation" + p.getName());
        }     
    } 
 
    /* 
     * Class under test for void SecureRandom(byte[]) 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL, 
        notes = "Null parameter checking missed", 
        method = "SecureRandom",