Project

General

Profile

« Previous | Next » 

Revision 4339

Added by daigle about 16 years ago

Add more debug statements

View differences:

test/edu/ucsb/nceas/metacattest/InlineDataAccessTest.java
335 335
     * -> he tries to read it after deleteing - failure
336 336
     */
337 337
    public void inlineDataCasesTest_1() {
338
		debug("\nRunning: inlineDataCasesTest_1()");
338 339
        try {
339 340
            newdocid = generateDocid();
340 341
            m.login(username, password);
......
410 411
     * -> tries to delete it  - failure
411 412
     */
412 413
    public void inlineDataCasesTest_2() {
414
		debug("\nRunning: inlineDataCasesTest_2()");
413 415
        try {
414 416
            newdocid = generateDocid();
415 417
            m.login(username, password);
......
473 475
     * -> tries to delete it
474 476
     */
475 477
    public void inlineDataCasesTest_3() {
478
		debug("\nRunning: inlineDataCasesTest_3()");
476 479
        try {
477 480

  
478 481
            /////////Case 1./////////////////////
......
694 697
     * -> tries to delete it
695 698
     */
696 699
    public void inlineDataCasesTest_4() {
700
		debug("\nRunning: inlineDataCasesTest_4()");
697 701
        try {
698 702
            /////////Case 1./////////////////////
699 703
            // insert an inline document - read only
......
911 915
     *    access for metadata and no access for data
912 916
     */
913 917
    public void inlineDataCasesTest_5() {
918
		debug("\nRunning: inlineDataCasesTest_5()");
914 919
        try {
915 920

  
916 921
            m.login(username, password);
917 922

  
918 923
            /////////Case 1
924
            debug("Case 1:");
919 925
            testdocument = getTestEmlDoc("InlineDataAccessTest: Doing insert",
920 926
                                         null, null,
921 927
                                         null, null, null,
......
929 935

  
930 936

  
931 937
            /////////Case 2
938
            debug("Case 2:");
932 939
            m.login(username, password);
933 940
            testdocument = getTestEmlDoc("InlineDataAccessTest: Doing insert",
934 941
                                         testEmlInlineBlock1, null, null,
......
949 956
            updateDocid(newdocid + ".2", testdocument, SUCCESS, false);
950 957

  
951 958
            /////////Case 3
952

  
959
            debug("Case 3:");
953 960
            // insert a document
954 961
            m.login(username, password);
955 962
            testdocument = getTestEmlDoc("InlineDataAccessTest: Doing insert",
......
1009 1016
       *    to the old document
1010 1017
       */
1011 1018
      public void inlineDataCasesTest_6() {
1019
  		debug("\nRunning: inlineDataCasesTest_6()");
1012 1020
          try {
1013 1021

  
1014 1022
              // insert the document
......
1320 1328
            if (result) {
1321 1329

  
1322 1330
                if (!testDoc.equals(doc)) {
1323
                    System.out.println("doc    :" + doc);
1324
                    System.out.println("testDoc:" + testDoc);
1331
					System.out.println("doc ***********************");
1332
					System.out.println(doc);
1333
					System.out.println("end doc ***********************");
1334
					System.out.println("testDoc ***********************");
1335
					System.out.println(testDoc);
1336
					System.out.println("end testDoc ***********************");
1325 1337
                }
1326 1338

  
1327 1339
                assertTrue(testDoc.equals(doc));

Also available in: Unified diff