Code example for ECPoint

Methods: getAffineX

     * Assertion: returns affine <code>x</code> coordinate<br> 
     * Test preconditions: <code>ECPoint</code> instance 
     * created using valid parameters<br> 
     * Expected: must return affine <code>x</code> coordinate 
     * which is equal to the one passed to the constructor; 
     * (both must refer the same object) 
        level = TestLevel.PARTIAL_COMPLETE, 
        notes = "Verifies positive case.", 
        method = "getAffineX", 
        args = {} 
    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);
Experience pair programming with AI  Get Codota for Java