r4504 - trunk/test/edu/ucsb/nceas/metacattest

daigle at ecoinformatics.org daigle at ecoinformatics.org
Mon Nov 3 11:07:18 PST 2008


Author: daigle
Date: 2008-11-03 11:07:18 -0800 (Mon, 03 Nov 2008)
New Revision: 4504

Modified:
   trunk/test/edu/ucsb/nceas/metacattest/OnlineDataAccessTest.java
Log:
Add debug statements at the beginning of every test module.

Modified: trunk/test/edu/ucsb/nceas/metacattest/OnlineDataAccessTest.java
===================================================================
--- trunk/test/edu/ucsb/nceas/metacattest/OnlineDataAccessTest.java	2008-11-03 19:06:31 UTC (rev 4503)
+++ trunk/test/edu/ucsb/nceas/metacattest/OnlineDataAccessTest.java	2008-11-03 19:07:18 UTC (rev 4504)
@@ -327,6 +327,7 @@
      */
     public void onlineDataCasesTest_1() {
         try {
+			debug("\nRunning: onlineDataCasesTest_1");
 
             // upload online data
             onlineDocid = generateDocid();
@@ -402,6 +403,7 @@
      */
     public void onlineDataCasesTest_2() {
         try {
+			debug("\nRunning: onlineDataCasesTest_2");
 
             // upload an online document
             onlineDocid = generateDocid();
@@ -476,6 +478,7 @@
      */
     public void onlineDataCasesTest_3() {
         try {
+			debug("\nRunning: onlineDataCasesTest_3");
 
             /////////Case 1./////////////////////
             // upload an online document - read only
@@ -679,6 +682,7 @@
      */
     public void onlineDataCasesTest_4() {
         try {
+			debug("\nRunning: onlineDataCasesTest_4");
 
             /////////Case 1./////////////////////
             // upload an online document - read only
@@ -874,7 +878,8 @@
      *    exist - wrong url
      */
     public void onlineDataCasesTest_5() {
-        try {
+        try {       	
+			debug("\nRunning: onlineDataCasesTest_5");
 
             // upload online data
             onlineDocid = generateDocid();
@@ -925,7 +930,7 @@
      */
     public void onlineDataCasesTest_6() {
         try {
-
+			debug("\nRunning: onlineDataCasesTest_6");
             // insert a document
             m.login(username, password);
             testdocument = getTestEmlDoc("OnlineDataAccessTest: Doing insert",
@@ -1130,7 +1135,7 @@
         catch (MetacatException me) {
             if (! (expectedKarmaFailure &&
                    (me.getMessage().indexOf(
-                "User try to update a access module which it doesn't have \"ALL\" permission") !=
+                "User tried to update an access module when they don't have \"ALL\" permission") !=
                     -1))) {
                 fail("Metacat Error:\n" + me.getMessage());
             }



More information about the Metacat-cvs mailing list