Project

General

Profile

« Previous | Next » 

Revision 1120

Added by Jing Tao over 22 years ago

Change some debug message.

View differences:

test/edu/ucsb/nceas/metacatnettest/MetaCatServletNetTest.java
220 220
  {
221 221
    String name = "john"+MetaCatUtil.getOption("accNumSeparator")
222 222
                     +serialNumber+MetaCatUtil.getOption("accNumSeparator")+"1";
223
    MetaCatUtil.debugMessage("docid: "+name, 20);
223
    MetaCatUtil.debugMessage("insert docid: "+name, 20);
224 224
    String content="<?xml version=\"1.0\"?>"
225 225
                   +"<!DOCTYPE acl PUBLIC \"-//ecoinformatics.org//"
226 226
                   +"eml-access-2.0.0beta6//EN\" \"http://pine.nceas.ucsb."
......
249 249
  {
250 250
    String name = "john"+MetaCatUtil.getOption("accNumSeparator")
251 251
                     +serialNumber+MetaCatUtil.getOption("accNumSeparator")+"1";
252
    MetaCatUtil.debugMessage("docid: "+name, 20);
252
    MetaCatUtil.debugMessage("insert docid: "+name, 20);
253 253
    String content="<?xml version=\"1.0\"?>"
254 254
                   +"<acl authSystem=\"knb\" order=\"allowFirst\">"
255 255
                   +"<identifier>"+name+"</identifier>"
......
274 274
  {
275 275
    String name = "john"+MetaCatUtil.getOption("accNumSeparator")
276 276
                     +serialNumber+MetaCatUtil.getOption("accNumSeparator")+"1";
277
    MetaCatUtil.debugMessage("docid: "+name, 20);
277
    MetaCatUtil.debugMessage("insert non well-formed docid: "+name, 20);
278 278
    String content="<?xml version=\"1.0\"?>"
279 279
                   +"<acl authSystem=\"knb\" order=\"allowFirst\">"
280 280
                   +"<identifier>"+name+"</identifier>"
......
332 332
  {
333 333
    String name = "john"+MetaCatUtil.getOption("accNumSeparator")
334 334
                     +serialNumber+MetaCatUtil.getOption("accNumSeparator")+"2";
335
    MetaCatUtil.debugMessage("docid: "+name, 20);
335
    MetaCatUtil.debugMessage("update docid: "+name, 20);
336 336
    String content="<?xml version=\"1.0\"?>"
337 337
                   +"<!DOCTYPE acl PUBLIC \"-//ecoinformatics.org//"
338 338
                   +"eml-access-2.0.0beta6//EN\" \"http://pine.nceas.ucsb."
......
374 374
  {
375 375
    String name = "john"+MetaCatUtil.getOption("accNumSeparator")
376 376
                     +serialNumber+MetaCatUtil.getOption("accNumSeparator")+"2";
377
    MetaCatUtil.debugMessage("delete docid: "+name, 20);
377 378
    assert(handleDeleteFile(name));
378 379
   
379 380
  }
test/edu/ucsb/nceas/metacattest/MetaCatServletTest.java
215 215
  {
216 216
    String name = "john"+MetaCatUtil.getOption("accNumSeparator")
217 217
                     +serialNumber+MetaCatUtil.getOption("accNumSeparator")+"1";
218
    MetaCatUtil.debugMessage("docid: "+name, 20);
218
    MetaCatUtil.debugMessage("insert docid: "+name, 20);
219 219
    String content="<?xml version=\"1.0\"?>"
220 220
                   +"<!DOCTYPE acl PUBLIC \"-//ecoinformatics.org//"
221 221
                   +"eml-access-2.0.0beta6//EN\" \"http://pine.nceas.ucsb."
......
244 244
  {
245 245
    String name = "john"+MetaCatUtil.getOption("accNumSeparator")
246 246
                     +serialNumber+MetaCatUtil.getOption("accNumSeparator")+"1";
247
    MetaCatUtil.debugMessage("docid: "+name, 20);
247
    MetaCatUtil.debugMessage("insert docid: "+name, 20);
248 248
    String content="<?xml version=\"1.0\"?>"
249 249
                   +"<acl authSystem=\"knb\" order=\"allowFirst\">"
250 250
                   +"<identifier>"+name+"</identifier>"
......
269 269
  {
270 270
    String name = "john"+MetaCatUtil.getOption("accNumSeparator")
271 271
                     +serialNumber+MetaCatUtil.getOption("accNumSeparator")+"1";
272
    MetaCatUtil.debugMessage("docid: "+name, 20);
272
    MetaCatUtil.debugMessage("insert non well-formed docid: "+name, 20);
273 273
    String content="<?xml version=\"1.0\"?>"
274 274
                   +"<acl authSystem=\"knb\" order=\"allowFirst\">"
275 275
                   +"<identifier>"+name+"</identifier>"
......
327 327
  {
328 328
    String name = "john"+MetaCatUtil.getOption("accNumSeparator")
329 329
                     +serialNumber+MetaCatUtil.getOption("accNumSeparator")+"2";
330
    MetaCatUtil.debugMessage("docid: "+name, 20);
330
    MetaCatUtil.debugMessage("update docid: "+name, 20);
331 331
    String content="<?xml version=\"1.0\"?>"
332 332
                   +"<!DOCTYPE acl PUBLIC \"-//ecoinformatics.org//"
333 333
                   +"eml-access-2.0.0beta6//EN\" \"http://pine.nceas.ucsb."
......
355 355
  {
356 356
    String name = "john"+MetaCatUtil.getOption("accNumSeparator")
357 357
                     +serialNumber+MetaCatUtil.getOption("accNumSeparator")+"2";
358
    MetaCatUtil.debugMessage("delete docid: "+name, 20);
358 359
    assert(handleDeleteFile(name));
359 360
   
360 361
  }
......
386 387

  
387 388
    // Now contact metacat
388 389
    String response = getMetacatString(prop);
389
    MetaCatUtil.debugMessage("Login Message: "+response, 30);
390
    MetaCatUtil.debugMessage("Login Message: "+response, 55);
390 391
    boolean connected = false;
391 392
    if (response.indexOf("<login>") != -1) {
392 393
      connected = true;
......
413 414
    prop.put("qformat", "xml");
414 415
  
415 416
    String response = getMetacatString(prop);
416
     MetaCatUtil.debugMessage("Logout Message: "+response, 30);
417
     MetaCatUtil.debugMessage("Logout Message: "+response, 55);
417 418
    HttpMessage.setCookie(null);
418 419
     
419 420
    if (response.indexOf("<logout>") != -1) 
......
480 481
    prop.put("docid", docid);
481 482
    
482 483
    String message = getMetacatString(prop);
483
    MetaCatUtil.debugMessage("Insert or Update Message: "+message, 30);
484
    MetaCatUtil.debugMessage("Insert or Update Message: "+message, 55);
484 485
    if(message.indexOf("<error>") != -1)
485 486
    {//there was an error
486 487
      
......
508 509
    prop.put("docid", name);
509 510
 
510 511
    String message = getMetacatString(prop);
511
    MetaCatUtil.debugMessage("Delete Message: "+message, 30);
512
    MetaCatUtil.debugMessage("Delete Message: "+message, 55);
512 513
    if(message.indexOf("<error>") != -1)
513 514
    {//there was an error
514 515
      

Also available in: Unified diff