Project

General

Profile

« Previous | Next » 

Revision 1506

Added by Jing Tao almost 22 years ago

Change from assert to assertTrue.

View differences:

test/edu/ucsb/nceas/metacattest/ReplicationServerListTest.java
179 179
   */
180 180
  public void initialize()
181 181
  {
182
    assert(1 == 1);
182
    assertTrue(1 == 1);
183 183
  }
184 184

  
185 185
   
......
189 189
  public void testEmptyServerList()
190 190
  {
191 191
    
192
    assert(serverList.isEmpty());
192
    assertTrue(serverList.isEmpty());
193 193
  }
194 194
  
195 195
  /**
......
198 198
  public void testNonEmptyServerList()
199 199
  {
200 200
    
201
    assert(!serverList.isEmpty());
201
    assertTrue(!serverList.isEmpty());
202 202
  }
203 203
  
204 204
  /**
......
207 207
  public void testSize()
208 208
  {
209 209
    int size = serverList.size();
210
    assert(size ==2);
210
    assertTrue(size ==2);
211 211
  }
212 212
  
213 213
  /**
......
217 217
  {
218 218
    ReplicationServer server = serverList.serverAt(0);
219 219
    String serverName = server.getServerName();
220
    assert(serverName.equals("dev"));
220
    assertTrue(serverName.equals("dev"));
221 221
  }
222 222
  
223 223
  /**
......
227 227
  {
228 228
    ReplicationServer server = serverList.serverAt(1);
229 229
    String serverName = server.getServerName();
230
    assert(serverName.equals("epsilon"));
230
    assertTrue(serverName.equals("epsilon"));
231 231
  }
232 232
   
233 233
  
......
236 236
   */
237 237
  public void testServerIsNotInList()
238 238
  {
239
    assert(!serverList.isGivenServerInList("localhost"));
239
    assertTrue(!serverList.isGivenServerInList("localhost"));
240 240
  }
241 241
  
242 242
  /**
......
244 244
   */
245 245
  public void testServerIsInList()
246 246
  {
247
    assert(serverList.isGivenServerInList("dev"));
247
    assertTrue(serverList.isGivenServerInList("dev"));
248 248
  }
249 249
  
250 250
  /**
......
253 253
  public void testGetLastCheckedDate()
254 254
  {
255 255
    String lastCheckedDate = serverList.getLastCheckedDate("dev");
256
    assert(lastCheckedDate.equals("0001-01-01 BC"));
256
    assertTrue(lastCheckedDate.equals("0001-01-01 BC"));
257 257
  }
258 258
  
259 259
  /**
......
261 261
   */
262 262
  public void testGetReplicationValueTrue()
263 263
  {
264
    assert(serverList.getReplicationValue("dev"));
264
    assertTrue(serverList.getReplicationValue("dev"));
265 265
  }
266 266
  
267 267
  /**
......
269 269
   */
270 270
  public void testGetReplicationValueFalse()
271 271
  {
272
    assert(!serverList.getReplicationValue("epsilon"));
272
    assertTrue(!serverList.getReplicationValue("epsilon"));
273 273
  }
274 274
  
275 275
  /**
......
277 277
   */
278 278
  public void testGetDataReplicationValueTrue()
279 279
  {
280
    assert(serverList.getDataReplicationValue("dev"));
280
    assertTrue(serverList.getDataReplicationValue("dev"));
281 281
  }
282 282
  
283 283
  /**
......
285 285
   */
286 286
  public void testGetDataReplicationValueFalse()
287 287
  {
288
    assert(!serverList.getDataReplicationValue("epsilon"));
288
    assertTrue(!serverList.getDataReplicationValue("epsilon"));
289 289
  }
290 290

  
291 291
  /**
......
293 293
   */
294 294
  public void testGetHubValueTrue()
295 295
  {
296
    assert(serverList.getHubValue("dev"));
296
    assertTrue(serverList.getHubValue("dev"));
297 297
  }
298 298
  
299 299
  /**
......
301 301
   */
302 302
  public void testGetHubValueFalse()
303 303
  {
304
    assert(!serverList.getHubValue("epsilon"));
304
    assertTrue(!serverList.getHubValue("epsilon"));
305 305
  }  
306 306

  
307 307
   

Also available in: Unified diff