incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asa...@apache.org
Subject svn commit: r1393426 - in /sling/trunk/performance/base/src/main/java/org/apache/sling/performance: AbstractPerformanceTest.java AbstractTest.java ReportLogger.java
Date Wed, 03 Oct 2012 11:29:20 GMT
Author: asanso
Date: Wed Oct  3 11:29:19 2012
New Revision: 1393426

URL: http://svn.apache.org/viewvc?rev=1393426&view=rev
Log:
SLING-2593 - Improvement for the Sling performance tools. Removed XML Report type since is
not implemented. Changed getenv with getProperty. Removed 2 unused classes (AbstractPerformanceTest,
AbstractTest)

Removed:
    sling/trunk/performance/base/src/main/java/org/apache/sling/performance/AbstractPerformanceTest.java
    sling/trunk/performance/base/src/main/java/org/apache/sling/performance/AbstractTest.java
Modified:
    sling/trunk/performance/base/src/main/java/org/apache/sling/performance/ReportLogger.java

Modified: sling/trunk/performance/base/src/main/java/org/apache/sling/performance/ReportLogger.java
URL: http://svn.apache.org/viewvc/sling/trunk/performance/base/src/main/java/org/apache/sling/performance/ReportLogger.java?rev=1393426&r1=1393425&r2=1393426&view=diff
==============================================================================
--- sling/trunk/performance/base/src/main/java/org/apache/sling/performance/ReportLogger.java
(original)
+++ sling/trunk/performance/base/src/main/java/org/apache/sling/performance/ReportLogger.java
Wed Oct  3 11:29:19 2012
@@ -13,7 +13,7 @@ import org.apache.commons.math.stat.desc
 public class ReportLogger {
 
 	public enum ReportType {
-		TXT, XML
+		TXT
 	}
 
 	public static void writeReport(String test, String testSuiteName,
@@ -23,8 +23,6 @@ public class ReportLogger {
 		case TXT:
 			writeReportTxt(test, testSuiteName, name, statistics);
 			break;
-		case XML:
-			throw new Exception("The XML reporting format is not yet supported");
 		default:
 			throw new Exception(
 					"The specified reporting format is not yet supported");
@@ -60,8 +58,8 @@ public class ReportLogger {
 		// useful if we run the test cases from the command line for example
 		// by using maven
 		if (testSuiteName.equals(ParameterizedTestList.TEST_CASE_ONLY)) {
-			if (System.getenv("testsuitename") != null) {
-				testSuiteName = System.getenv("testsuitename");
+			if (System.getProperty("testsuitename") != null) {
+				testSuiteName = System.getProperty("testsuitename");
 			}
 		}
 



Mime
View raw message