Code example for EllipticCurve

Methods: getB

    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() { 
Experience pair programming with AI  Get Codota for Java