19 package testsuite.clusterj;
21 import testsuite.clusterj.model.AllPrimitives;
23 import com.mysql.clusterj.ClusterJUserException;
80 void createInstances(
int number) {
81 createAllPrimitivesInstances(10);
84 public void testExtraEqualNull() {
85 equalAnd1ExtraQuery(
"int_not_null_btree", 8,
"int_null_none", extraEqualPredicateProvider, null,
"idx_int_not_null_btree");
86 equalAnd1ExtraQuery(
"int_not_null_hash", 8,
"int_null_none", extraEqualPredicateProvider, null,
"none");
87 equalAnd1ExtraQuery(
"int_not_null_both", 8,
"int_null_none", extraEqualPredicateProvider, null,
"idx_int_not_null_both");
88 equalAnd1ExtraQuery(
"int_not_null_none", 8,
"int_null_none", extraEqualPredicateProvider, null,
"none");
92 public void testBtreeEqualNull() {
93 equalQuery(
"int_not_null_btree",
"none", null);
94 equalQuery(
"int_null_btree",
"none", null);
98 public void testHashEqualNull() {
99 equalQuery(
"int_not_null_hash",
"none", null);
100 equalQuery(
"int_null_hash",
"none", null);
104 public void testBothEqualNull() {
105 equalQuery(
"int_not_null_both",
"none", null);
106 equalQuery(
"int_null_both",
"none", null);
110 public void testNoneEqualNull() {
111 equalQuery(
"int_not_null_none",
"none", null);
112 equalQuery(
"int_null_none",
"none", null);
116 public void testGreaterThanNull() {
118 greaterThanQuery(
"int_not_null_btree",
"none", null);
119 error(
"Greater than query should throw ClusterJUserException with null parameter.");
120 }
catch (ClusterJUserException ex) {
125 public void testGreaterEqualNull() {
127 greaterEqualQuery(
"int_not_null_btree",
"none", null);
128 error(
"Greater equal query should throw ClusterJUserException with null parameter.");
129 }
catch (ClusterJUserException ex) {
134 public void testLessThanNull() {
136 lessThanQuery(
"int_not_null_btree",
"none", null);
137 error(
"Less than query should throw ClusterJUserException with null parameter.");
138 }
catch (ClusterJUserException ex) {
143 public void testLessEqualNull() {
145 lessEqualQuery(
"int_not_null_btree",
"none", null);
146 error(
"Less equal query should throw ClusterJUserException with null parameter.");
147 }
catch (ClusterJUserException ex) {