Code example for ECPoint

Methods: getAffineX

0
        } catch (NullPointerException ok) {
        } 
 
 
        // test case 3: both : x and y are null 
        try { 
            new ECPoint(null, null);
            fail("#3: Expected NPE not thrown");
        } catch (NullPointerException ok) {
        } 
    } 
 
    /** 
     * Test #1 for <code>getAffineX()</code> method<br> 
     * Assertion: returns affine <code>x</code> coordinate<br> 
     * Test preconditions: <code>ECPoint</code> instance 
     * created using valid parameters<br> 
     * Expected: must return affine <code>x</code> coordinate 
     * which is equal to the one passed to the constructor; 
     * (both must refer the same object) 
     */