r4503 - trunk/test/edu/ucsb/nceas/metacatnettest

daigle at ecoinformatics.org daigle at ecoinformatics.org
Mon Nov 3 11:06:32 PST 2008


Author: daigle
Date: 2008-11-03 11:06:31 -0800 (Mon, 03 Nov 2008)
New Revision: 4503

Modified:
   trunk/test/edu/ucsb/nceas/metacatnettest/MetaCatServletNetTest.java
Log:
Change info log messages to be debug.

Modified: trunk/test/edu/ucsb/nceas/metacatnettest/MetaCatServletNetTest.java
===================================================================
--- trunk/test/edu/ucsb/nceas/metacatnettest/MetaCatServletNetTest.java	2008-11-03 19:05:38 UTC (rev 4502)
+++ trunk/test/edu/ucsb/nceas/metacatnettest/MetaCatServletNetTest.java	2008-11-03 19:06:31 UTC (rev 4503)
@@ -109,7 +109,7 @@
 		//create random number for docid, so it can void repeat
 		number = Math.random() * 100000;
 		serial = Integer.toString(((new Double(number)).intValue()));
-		logMetacat.info("serial: " + serial);
+		logMetacat.debug("serial: " + serial);
 		suite.addTest(new MetaCatServletNetTest("testInsertXMLDocument", serial));
 		suite.addTest(new MetaCatServletNetTest("testReadXMLDocumentXMLFormat", serial));
 		suite.addTest(new MetaCatServletNetTest("testUpdateXMLDocument", serial));
@@ -184,7 +184,7 @@
 		debug("\nRunning: testInsertXMLDocument test");
 		String name = "john" + PropertyService.getProperty("document.accNumSeparator") + serialNumber
 				+ PropertyService.getProperty("document.accNumSeparator") + "1";
-		logMetacat.info("insert docid: " + name);
+		logMetacat.debug("insert docid: " + name);
 		String content = "<?xml version=\"1.0\"?>"
 				+ "<!DOCTYPE acl PUBLIC \"-//ecoinformatics.org//"
 				+ "eml-access-2.0.0beta6//EN\" \"http://pine.nceas.ucsb."
@@ -195,7 +195,7 @@
 				+ "<permission>all</permission>" + "</allow>" + "<allow>"
 				+ "<principal>public</principal>" + "<permission>read</permission>"
 				+ "</allow>" + "</acl>";
-		logMetacat.info("xml document: " + content);
+		logMetacat.debug("xml document: " + content);
 		assertTrue(handleXMLDocument(content, name, "insert"));
 
 	}
@@ -208,7 +208,7 @@
 		debug("\nRunning: testInsertInvalidateXMLDocument test");
 		String name = "john" + PropertyService.getProperty("document.accNumSeparator") + serialNumber
 				+ PropertyService.getProperty("document.accNumSeparator") + "1";
-		logMetacat.info("insert docid: " + name);
+		logMetacat.debug("insert docid: " + name);
 		String content = "<?xml version=\"1.0\"?>"
 				+ "<acl authSystem=\"knb\" order=\"allowFirst\">" + "<identifier>" + name
 				+ "</identifier>" + "<allow>"
@@ -216,7 +216,7 @@
 				+ "<permission>all</permission>" + "</allow>" + "<allow>"
 				+ "<principal>public</principal>" + "<permission>read</permission>"
 				+ "</allow>" + "</acl>";
-		logMetacat.info("xml document: " + content);
+		logMetacat.debug("xml document: " + content);
 		assertTrue(handleXMLDocument(content, name, "insert"));
 	}
 
@@ -228,7 +228,7 @@
 		debug("\nRunning: testInsertNonWellFormedXMLDocument test");
 		String name = "john" + PropertyService.getProperty("document.accNumSeparator") + serialNumber
 				+ PropertyService.getProperty("document.accNumSeparator") + "1";
-		logMetacat.info("insert non well-formed docid: " + name);
+		logMetacat.debug("insert non well-formed docid: " + name);
 		String content = "<?xml version=\"1.0\"?>"
 				+ "<acl authSystem=\"knb\" order=\"allowFirst\">" + "<identifier>" + name
 				+ "</identifier>" + "<allow>"
@@ -237,7 +237,7 @@
 				+ "<principal>public</principal>" + "<permission>read</permission>"
 				+ "</allow>";
 
-		logMetacat.info("xml document: " + content);
+		logMetacat.debug("xml document: " + content);
 		assertTrue(!handleXMLDocument(content, name, "insert"));
 	}
 
@@ -281,7 +281,7 @@
 		debug("\nRunning: testUpdateXMLDocument test");
 		String name = "john" + PropertyService.getProperty("document.accNumSeparator") + serialNumber
 				+ PropertyService.getProperty("document.accNumSeparator") + "2";
-		logMetacat.info("update docid: " + name);
+		logMetacat.debug("update docid: " + name);
 		String content = "<?xml version=\"1.0\"?>"
 				+ "<!DOCTYPE acl PUBLIC \"-//ecoinformatics.org//"
 				+ "eml-access-2.0.0beta6//EN\" \"http://pine.nceas.ucsb."
@@ -292,7 +292,7 @@
 				+ "<permission>all</permission>" + "</allow>" + "<allow>"
 				+ "<principal>public</principal>" + "<permission>read</permission>"
 				+ "</allow>" + "</acl>";
-		logMetacat.info("xml document: " + content);
+		logMetacat.debug("xml document: " + content);
 		assertTrue(handleXMLDocument(content, name, "update"));
 
 	}
@@ -304,8 +304,8 @@
 		debug("\nRunning: testInertDataFile test");
 		String name = "john" + PropertyService.getProperty("document.accNumSeparator") + serialNumber
 				+ PropertyService.getProperty("document.accNumSeparator") + "1";
-		logMetacat.info("insert data file docid: " + name);
-		logMetacat.info("insert data file ");
+		logMetacat.debug("insert data file docid: " + name);
+		logMetacat.debug("insert data file ");
 		File hello = new File("test/jones.204.22.xml");
 
 		assertTrue(insertDataFile(name, hello));
@@ -318,7 +318,7 @@
 		debug("\nRunning: testDeleteXMLDocument test");
 		String name = "john" + PropertyService.getProperty("document.accNumSeparator") + serialNumber
 				+ PropertyService.getProperty("document.accNumSeparator") + "2";
-		logMetacat.info("delete docid: " + name);
+		logMetacat.debug("delete docid: " + name);
 		assertTrue(handleDeleteFile(name));
 
 	}
@@ -348,7 +348,7 @@
 
 		// Now contact metacat
 		String response = getMetacatString(prop);
-		logMetacat.info("Login Message: " + response);
+		logMetacat.debug("Login Message: " + response);
 		boolean connected = false;
 		if (response.indexOf("<login>") != -1) {
 			connected = true;
@@ -374,7 +374,7 @@
 		prop.put("qformat", "xml");
 
 		String response = getMetacatString(prop);
-		logMetacat.info("Logout Message: " + response);
+		logMetacat.debug("Logout Message: " + response);
 		edu.ucsb.nceas.morpho.framework.HttpMessage.setCookie(null);
 
 		if (response.indexOf("<logout>") != -1) {
@@ -432,7 +432,7 @@
 		prop.put("docid", docid);
 
 		String message = getMetacatString(prop);
-		logMetacat.info("Insert or Update Message: " + message);
+		logMetacat.debug("Insert or Update Message: " + message);
 		if (message.indexOf("<error>") != -1) {//there was an error
 
 			return false;
@@ -453,7 +453,7 @@
 		prop.put("docid", name);
 
 		String message = getMetacatString(prop);
-		logMetacat.info("Delete Message: " + message);
+		logMetacat.debug("Delete Message: " + message);
 		if (message.indexOf("<error>") != -1) {//there was an error
 
 			return false;



More information about the Metacat-cvs mailing list