Code example for ECPoint

Methods: getAffineY

0
     * 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();
        assertEquals(y, yRet);
        assertSame(y, yRet);
    } 
 
    /** 
     * Test #2 for <code>getAffineX()</code> method<br> 
     * Assertion: returns <code>null</code> for <code>ECPoint.POINT_INFINITY</code><br> 
     * Test preconditions: none<br> 
     * Expected: must return <code>null</code> for 
     * <code>ECPoint.POINT_INFINITY</code> 
     */ 
    public final void testGetAffineY02() { 
        assertNull(ECPoint.POINT_INFINITY.getAffineY());
    }