117 // |
117 // |
118 // Test Member Function |
118 // Test Member Function |
119 // |
119 // |
120 void testAdd_00(Itk::TestMgr * testMgr) |
120 void testAdd_00(Itk::TestMgr * testMgr) |
121 { |
121 { |
122 char *xml_file = (char *)__FUNCTION__; |
|
123 assert_failed = 0; |
|
124 testAddSms(testMgr, |
122 testAddSms(testMgr, |
125 1, |
123 1, |
126 L"This is a happy message"); |
124 L"This is a happy message"); |
127 util_->flush(); |
125 util_->flush(); |
128 testSearch(testMgr); |
126 testSearch(testMgr); |
129 testResultXml(xml_file); |
127 |
130 } |
128 } |
131 |
129 |
132 void testAdd_01(Itk::TestMgr * testMgr) |
130 void testAdd_01(Itk::TestMgr * testMgr) |
133 { |
131 { |
134 char *xml_file = (char *)__FUNCTION__; |
|
135 assert_failed = 0; |
|
136 testAddSms(testMgr, |
132 testAddSms(testMgr, |
137 2, |
133 2, |
138 L"This is another happy message"); |
134 L"This is another happy message"); |
139 util_->flush(); |
135 util_->flush(); |
140 testSearch(testMgr); |
136 testSearch(testMgr); |
141 testResultXml(xml_file); |
137 |
142 } |
138 } |
143 |
139 |
144 void testFlush_02(Itk::TestMgr * testMgr) |
140 void testFlush_02(Itk::TestMgr * testMgr) |
145 { |
141 { |
146 char *xml_file = (char *)__FUNCTION__; |
|
147 assert_failed = 0; |
|
148 testFlush(testMgr); |
142 testFlush(testMgr); |
149 testResultXml(xml_file); |
143 |
150 } |
144 } |
151 |
145 |
152 void testAdd_03(Itk::TestMgr * testMgr) |
146 void testAdd_03(Itk::TestMgr * testMgr) |
153 { |
147 { |
154 char *xml_file = (char *)__FUNCTION__; |
|
155 assert_failed = 0; |
|
156 testAddSms(testMgr, |
148 testAddSms(testMgr, |
157 3, |
149 3, |
158 L"This is a 3rd happy message"); |
150 L"This is a 3rd happy message"); |
159 util_->flush(); |
151 util_->flush(); |
160 testSearch(testMgr); |
152 testSearch(testMgr); |
161 testResultXml(xml_file); |
153 |
162 } |
154 } |
163 |
155 |
164 void testDelete_04(Itk::TestMgr * testMgr) |
156 void testDelete_04(Itk::TestMgr * testMgr) |
165 { |
157 { |
166 char *xml_file = (char *)__FUNCTION__; |
|
167 assert_failed = 0; |
|
168 testDeleteSms(3, |
158 testDeleteSms(3, |
169 testMgr); |
159 testMgr); |
170 util_->flush(); |
160 util_->flush(); |
171 testSearch(testMgr); |
161 testSearch(testMgr); |
172 testResultXml(xml_file); |
162 |
173 } |
163 } |
174 |
164 |
175 void testDelete_05(Itk::TestMgr * testMgr) |
165 void testDelete_05(Itk::TestMgr * testMgr) |
176 { |
166 { |
177 char *xml_file = (char *)__FUNCTION__; |
|
178 assert_failed = 0; |
|
179 testDeleteSms(1, |
167 testDeleteSms(1, |
180 testMgr); |
168 testMgr); |
181 util_->flush(); |
169 util_->flush(); |
182 testSearch(testMgr); |
170 testSearch(testMgr); |
183 testResultXml(xml_file); |
171 |
184 } |
172 } |
185 |
173 |
186 void testReOpenIdx_06(Itk::TestMgr * testMgr) |
174 void testReOpenIdx_06(Itk::TestMgr * testMgr) |
187 { |
175 { |
188 char *xml_file = (char *)__FUNCTION__; |
|
189 assert_failed = 0; |
|
190 testReOpenIdxDb(testMgr); |
176 testReOpenIdxDb(testMgr); |
191 testSearch(testMgr); |
177 testSearch(testMgr); |
192 testResultXml(xml_file); |
178 |
193 } |
179 } |
194 |
180 |
195 void testAdd_07(Itk::TestMgr * testMgr) |
181 void testAdd_07(Itk::TestMgr * testMgr) |
196 { |
182 { |
197 char *xml_file = (char *)__FUNCTION__; |
|
198 assert_failed = 0; |
|
199 testAddSms(testMgr, |
183 testAddSms(testMgr, |
200 4, |
184 4, |
201 L"This is the 4th happy message"); |
185 L"This is the 4th happy message"); |
202 util_->flush(); |
186 util_->flush(); |
203 testSearch(testMgr); |
187 testSearch(testMgr); |
204 testResultXml(xml_file); |
188 |
205 } |
189 } |
206 |
190 |
207 void testAdd_08(Itk::TestMgr * testMgr) |
191 void testAdd_08(Itk::TestMgr * testMgr) |
208 { |
192 { |
209 char *xml_file = (char *)__FUNCTION__; |
|
210 assert_failed = 0; |
|
211 testAddSms(testMgr, |
193 testAddSms(testMgr, |
212 5, |
194 5, |
213 L"This is the 5th happy message"); |
195 L"This is the 5th happy message"); |
214 util_->flush(); |
196 util_->flush(); |
215 testSearch(testMgr); |
197 testSearch(testMgr); |
216 testResultXml(xml_file); |
198 |
217 } |
199 } |
218 |
200 |
219 void testDelete_09(Itk::TestMgr * testMgr) |
201 void testDelete_09(Itk::TestMgr * testMgr) |
220 { |
202 { |
221 char *xml_file = (char *)__FUNCTION__; |
|
222 assert_failed = 0; |
|
223 testDeleteSms(2, |
203 testDeleteSms(2, |
224 testMgr); |
204 testMgr); |
225 util_->flush(); |
205 util_->flush(); |
226 testSearch(testMgr); |
206 testSearch(testMgr); |
227 testResultXml(xml_file); |
207 |
228 } |
208 } |
229 |
209 |
230 void testDelete_10(Itk::TestMgr * testMgr) |
210 void testDelete_10(Itk::TestMgr * testMgr) |
231 { |
211 { |
232 char *xml_file = (char *)__FUNCTION__; |
|
233 assert_failed = 0; |
|
234 testDeleteSms(4, |
212 testDeleteSms(4, |
235 testMgr); |
213 testMgr); |
236 util_->flush(); |
214 util_->flush(); |
237 testSearch(testMgr); |
215 testSearch(testMgr); |
238 testResultXml(xml_file); |
216 |
239 } |
217 } |
240 |
218 |
241 void testReOpenIdx_11(Itk::TestMgr * testMgr) |
219 void testReOpenIdx_11(Itk::TestMgr * testMgr) |
242 { |
220 { |
243 char *xml_file = (char *)__FUNCTION__; |
|
244 assert_failed = 0; |
|
245 testReOpenIdxDb(testMgr); |
221 testReOpenIdxDb(testMgr); |
246 testSearch(testMgr); |
222 testSearch(testMgr); |
247 testResultXml(xml_file); |
223 |
248 } |
224 } |
249 |
225 |
250 |
226 |
251 |
227 |
252 private: |
228 private: |