Code example for ECPoint

Methods: getAffineY

0
        BigInteger x = BigInteger.valueOf(-23456L);
        ECPoint p = new ECPoint(x, BigInteger.valueOf(23456L));
        BigInteger xRet = p.getAffineX();
        assertEquals(x, xRet);
        assertSame(x, xRet);
    } 
 
    /** 
     * 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> 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies that getAffineX returns null for POINT_INFINITY.", 
        method = "getAffineX", 
        args = {} 
    ) 
    public final void testGetAffineX02() {