Code example for RSAKeyGenParameterSpec

0
 */ 
@TestTargetClass(RSAKeyGenParameterSpec.class)
public class RSAKeyGenParameterSpecTest extends TestCase {
 
    /** 
     * Test for <code>RSAKeyGenParameterSpec(int,BigInteger)</code> ctor 
     * Assertion: constructs <code>RSAKeyGenParameterSpec</code> 
     * object using valid parameters 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "RSAKeyGenParameterSpec", 
        args = {int.class, java.math.BigInteger.class}
    ) 
    public final void testRSAKeyGenParameterSpec() { 
        AlgorithmParameterSpec aps =
            new RSAKeyGenParameterSpec(512, BigInteger.valueOf(0L));
        assertTrue(aps instanceof RSAKeyGenParameterSpec);
    }