Code example for ECParameterSpec

Methods: getCurve

0
        } catch (IllegalArgumentException e) {
            // expected 
        } 
 
        // case 6: IllegalArgumentException - if h is not positive. 
        try { 
            new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), -1);
            fail("IllegalArgumentException exception has not been thrown");
        } catch (IllegalArgumentException e) {
            // expected 
        } 
    } 
 
    /** 
     * test for getCurve() method 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getCurve", 
        args = {}