Project

General

Profile

« Previous | Next » 

Revision 1085

Added by Jing Tao about 22 years ago

Add some debug message in the code.

View differences:

junittests/edu/ucsb/nceas/metacatjunittests/MetaCatServletTest.java
54 54
  public MetaCatServletTest(String name)
55 55
  {
56 56
    super(name);
57
    System.out.println("metacatURL: "+metacatURL);
58 57
  }
59 58

  
60 59
 /**
......
330 329

  
331 330
    // Now contact metacat
332 331
    String response = getMetacatString(prop);
332
    MetaCatUtil.debugMessage("Login Message: "+response, 30);
333 333
    boolean connected = false;
334 334
    if (response.indexOf("<login>") != -1) {
335 335
      connected = true;
......
356 356
    prop.put("qformat", "xml");
357 357
  
358 358
    String response = getMetacatString(prop);
359
     MetaCatUtil.debugMessage("Logout Message: "+response, 30);
359 360
    HttpMessage.setCookie(null);
360 361
     
361 362
    if (response.indexOf("<logout>") != -1) 
......
386 387
    
387 388
    message = getMetacatString(prop);
388 389
    message = message.trim();
390
    MetaCatUtil.debugMessage("Read Message: "+message, 30);
389 391
    if (message==null || message.equals("")||message.indexOf("<error>") != -1 )
390 392
    {//there was an error
391 393
      
......
421 423
    prop.put("docid", docid);
422 424
    
423 425
    String message = getMetacatString(prop);
424
    
426
    MetaCatUtil.debugMessage("Insert or Update Message: "+message, 30);
425 427
    if(message.indexOf("<error>") != -1)
426 428
    {//there was an error
427 429
      
......
449 451
    prop.put("docid", name);
450 452
 
451 453
    String message = getMetacatString(prop);
452
    System.out.println("Message: "+message);
454
    MetaCatUtil.debugMessage("Delete Message: "+message, 30);
453 455
    if(message.indexOf("<error>") != -1)
454 456
    {//there was an error
455 457
      

Also available in: Unified diff