Code example for ECPoint

Methods: getAffineX

0
     * Test preconditions: none<br> 
     * Expected: must return <code>null</code> for 
     * <code>ECPoint.POINT_INFINITY</code> 
     */ 
    public final void testGetAffineX02() { 
        assertNull(ECPoint.POINT_INFINITY.getAffineX());
    } 
 
    /** 
     * Test #1 for <code>getAffineY()</code> method<br> 
     * Assertion: returns affine <code>y</code> coordinate<br> 
     * Test preconditions: <code>ECPoint</code> instance 
     * created using valid parameters<br> 
     * Expected: must return affine <code>y</code> coordinate 
     * which is equal to the one passed to the constructor; 
     * (both must refer the same object) 
     */ 
    public final void testGetAffineY01() { 
        BigInteger y =  BigInteger.valueOf(23456L);
        ECPoint p = new ECPoint(BigInteger.valueOf(-23456L), y);
        BigInteger yRet = p.getAffineY();