jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1790818 - /jmeter/trunk/test/src/org/apache/jmeter/report/dashboard/ApdexPerTransactionTest.java
Date Mon, 10 Apr 2017 12:53:39 GMT
Author: sebb
Date: Mon Apr 10 12:53:39 2017
New Revision: 1790818

URL: http://svn.apache.org/viewvc?rev=1790818&view=rev
Log:
Don't hide IOError in the log file

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/report/dashboard/ApdexPerTransactionTest.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/report/dashboard/ApdexPerTransactionTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/report/dashboard/ApdexPerTransactionTest.java?rev=1790818&r1=1790817&r2=1790818&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/report/dashboard/ApdexPerTransactionTest.java
(original)
+++ jmeter/trunk/test/src/org/apache/jmeter/report/dashboard/ApdexPerTransactionTest.java
Mon Apr 10 12:53:39 2017
@@ -37,16 +37,12 @@ import org.apache.jmeter.report.config.R
 import org.apache.jmeter.util.JMeterUtils;
 import org.apache.oro.text.regex.PatternMatcher;
 import org.junit.Test;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
 
 import jodd.props.Props;
 import jodd.props.PropsEntry;
 
 public class ApdexPerTransactionTest extends JMeterTestCase {
 	
-	private static final Logger log = LoggerFactory.getLogger(ApdexPerTransactionTest.class);
-	
 	// prop in the file mixes comma, semicolon and spans several lines.
 	// it also includes hardcoded sample names mixed with regexes 
 	private static final String apdexString = "sample(\\d+):1000|2000;samples12:3000|4000;scenar01-12:5000|6000";
@@ -165,7 +161,7 @@ public class ApdexPerTransactionTest ext
         try (FileInputStream inStream = new FileInputStream(file)) {
             props.load(inStream);
         } catch (IOException e) {
-            log.error("Problem loading properties. " + e); // NOSONAR
+            fail("Problem loading properties. " + e); // NOSONAR
         }
         return props;
     }



Mime
View raw message