* Expected: all objects in this test must be NOT equal
*/
public final void testEqualsObject02() {
// test case 1: must not be equal to null
EllipticCurve c2=null, c1 =
new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
BigInteger.ONE,
BigInteger.valueOf(19L));
assertFalse(c1.equals(c2));
// test case 2: not equal objects - field
c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
BigInteger.ONE,
BigInteger.valueOf(19L));
c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(31L)),
BigInteger.valueOf(1L),
BigInteger.valueOf(19L));
assertFalse(c1.equals(c2) || c2.equals(c1));
// test case 3: not equal objects - a
c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
BigInteger.ONE,
BigInteger.valueOf(19L));
c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
BigInteger.ZERO,
BigInteger.valueOf(19L));
assertFalse(c1.equals(c2) || c2.equals(c1));
// test case 4: not equal objects - b
c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
BigInteger.ONE,
BigInteger.valueOf(19L));
c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
BigInteger.ONE,
BigInteger.valueOf(17L));
assertFalse(c1.equals(c2) || c2.equals(c1));
// test case 5: not equal objects - both seed not null
c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
BigInteger.ONE,
BigInteger.valueOf(19L),
new byte[24]);
c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
BigInteger.valueOf(1L),
BigInteger.valueOf(19L),
new byte[25]);
assertFalse(c1.equals(c2) || c2.equals(c1));
// test case 6: not equal objects - one seed is null
c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
BigInteger.ONE,
BigInteger.valueOf(19L),
null);
c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
BigInteger.valueOf(1L),
BigInteger.valueOf(19L),
new byte[24]);
assertFalse(c1.equals(c2) || c2.equals(c1));
// test case 7: not equal objects - field class
c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
BigInteger.ONE,
BigInteger.valueOf(19L),
new byte[24]);
c2 = new EllipticCurve(new ECFieldF2m(5),
BigInteger.ONE,