Code example for EllipticCurve

Methods: getB

0
     */ 
    public final void testGetB() { 
        ECFieldF2m f = new ECFieldF2m(5);
        BigInteger a = BigInteger.valueOf(5L);
        BigInteger b = BigInteger.valueOf(19L);
        EllipticCurve c = new EllipticCurve(f, a, b);
        assertEquals(b, c.getB());
        assertSame(b, c.getB());
    } 
 
    /** 
     * Test for <code>getField()</code> method<br> 
     * Assertion: returns <code>field</code><br> 
     * Test preconditions: <code>ECFieldF2m</code> instance 
     * created using valid parameters<br> 
     * Expected: must return <code>field</code> which is equal 
     * to the one passed to the constructor; (both must refer 
     * the same object) 
     */ 
    public final void testGetField() { 
Contextual code suggestions in your IDE  Get Codota for Java