assertFalse(key.equals(stdKey));
assertFalse(stdKey.equals(key));
}
public void testEqualityBasic() {
StatementKey key1 = StatementKeyFactory.newPrepared(
"select * from sys.systables", "APP",
ResultSet.HOLD_CURSORS_OVER_COMMIT);
StatementKey key2 = StatementKeyFactory.newPrepared(
"select * from sys.systables", "APP",
ResultSet.HOLD_CURSORS_OVER_COMMIT);
StatementKey key3 = StatementKeyFactory.newPrepared(
"select * from sys.systables", "APP",
ResultSet.HOLD_CURSORS_OVER_COMMIT);
assertTrue(key1.equals(key2));
assertTrue(key2.equals(key1));
assertTrue(key2.equals(key3));