[mapguide-commits] r8380 - in trunk/MgDev/UnitTest/WebTier/Java/src/org/osgeo/mapguide/test: . common
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sat Oct 4 06:54:12 PDT 2014
Author: jng
Date: 2014-10-04 06:54:12 -0700 (Sat, 04 Oct 2014)
New Revision: 8380
Modified:
trunk/MgDev/UnitTest/WebTier/Java/src/org/osgeo/mapguide/test/MapGuideTestExecutorCollection.java
trunk/MgDev/UnitTest/WebTier/Java/src/org/osgeo/mapguide/test/common/TestExecutionRun.java
Log:
#2307: Reduce console chatter when not in debug mode
Modified: trunk/MgDev/UnitTest/WebTier/Java/src/org/osgeo/mapguide/test/MapGuideTestExecutorCollection.java
===================================================================
--- trunk/MgDev/UnitTest/WebTier/Java/src/org/osgeo/mapguide/test/MapGuideTestExecutorCollection.java 2014-10-04 13:12:12 UTC (rev 8379)
+++ trunk/MgDev/UnitTest/WebTier/Java/src/org/osgeo/mapguide/test/MapGuideTestExecutorCollection.java 2014-10-04 13:54:12 UTC (rev 8380)
@@ -463,15 +463,18 @@
}
else
{
- Console.WriteLine("\t\tNo result to compare against");
+ if (DebugSettings.Enabled)
+ Console.WriteLine("\t\tNo result to compare against");
}
}
}
}
else
{
- String pval = CommonUtility.GetStringFromStatement(stmt, "ParamValue");
- Console.WriteLine("\t\tALWAYSPASS: " + pval);
+ if (DebugSettings.Enabled) {
+ String pval = CommonUtility.GetStringFromStatement(stmt, "ParamValue");
+ Console.WriteLine("\t\tALWAYSPASS: " + pval);
+ }
}
} catch (Exception ex) {
Console.WriteLine("Exception validating response: %s", CommonUtility.ExceptionToString(ex));
Modified: trunk/MgDev/UnitTest/WebTier/Java/src/org/osgeo/mapguide/test/common/TestExecutionRun.java
===================================================================
--- trunk/MgDev/UnitTest/WebTier/Java/src/org/osgeo/mapguide/test/common/TestExecutionRun.java 2014-10-04 13:12:12 UTC (rev 8379)
+++ trunk/MgDev/UnitTest/WebTier/Java/src/org/osgeo/mapguide/test/common/TestExecutionRun.java 2014-10-04 13:54:12 UTC (rev 8380)
@@ -74,12 +74,14 @@
try {
ITestExecutor exec = _executors.GetTestExecutor(paramValue);
- Console.WriteLine("\tExecuting operation: %s", exec.getOperationName());
+ if (DebugSettings.Enabled)
+ Console.WriteLine("\tExecuting operation: %s", exec.getOperationName());
actualResult = exec.Execute(paramSetId);
testsRun.increment();
exitStatus += _executors.ValidateRequest(_unitTestDb, testName, paramSetId, paramValue, actualResult, logger);
} catch (MissingTestExecutorException ex) {
- Console.WriteLine("No test executor for %s in test: %s. Skipping test.", paramValue, testName);
+ if (DebugSettings.Enabled)
+ Console.WriteLine("No test executor for %s in test: %s. Skipping test.", paramValue, testName);
}
}
}
More information about the mapguide-commits
mailing list