Code example for ECPoint

Methods: getAffineX

     * which is equal to the one passed to the constructor; 
     * (both must refer the same object) 
    public final void testGetAffineX01() { 
        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> 
    public final void testGetAffineX02() { 
Stop searching for code, let great code find you!  Add Codota to your java IDE