Code example for ECPoint

Methods: equals

0
     * (both must refer the same object) 
     */ 
    @TestTargetNew( 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies positive functionality.", 
        method = "getAffineY", 
        args = {} 
    ) 
    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