verify = true;
testCase -= 10;
}
// a - same object
BasicProxyPreparer bpp = callConstructor(
testCase, verify, mc, perm);
if (!bpp.equals(bpp)) {
throw new TestException(
"equals method should return true (a)");
}
// b - eqaul object
bpp = callConstructor(
testCase, verify, mc, perm);
BasicProxyPreparer bpp2 = callConstructor(
testCase, verify, mc, perm);
if (!bpp.equals(bpp2)) {
throw new TestException(
"equals method should return true (b)");
}
// c - different class
bpp = callFakeConstructor(
testCase, verify, mc, perm);
BasicProxyPreparer fbpp = callConstructor(
testCase, verify, mc, perm);
if (bpp.equals(bpp2)) {
throw new TestException(
"equals method should return false (c)");
}