Code example for ECFieldFp

Methods: equals

0
     * Test #1 for <code>equals()</code> method.<br> 
     * 
     * Assertion: object equals to itself.  
     */ 
    public final void testEqualsObject01() { 
        ECFieldFp obj = new ECFieldFp(BigInteger.valueOf(23L));
        assertTrue(obj.equals(obj));
    } 
 
    /** 
     * Test #2 for <code>equals(Object obj)</code> method.<br> 
     * 
     * Assertion: returns false if <code>obj</code> is <code>null</code> 
     */ 
    public final void testEqualsObject02() { 
        assertFalse(new ECFieldFp(BigInteger.valueOf(23L)).equals(null));
    } 
 
    /** 
     * Test #3 for <code>equals(Object obj)</code> method.<br>