Author: sebb
Date: Mon Apr 10 15:58:21 2017
New Revision: 1790867

URL: http://svn.apache.org/viewvc?rev=1790867&view=rev
Log:
Drop unused/useless code

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=1790867&r1=1790866&r2=1790867&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 15:58:21 2017
@@ -49,8 +49,7 @@ public class ApdexPerTransactionTest ext
                
                
props.load(this.getClass().getResourceAsStream("reportgenerator_test.properties"));
                final String apdexPerTransaction = getOptionalProperty(props, 
-                       REPORT_GENERATOR_KEY_APDEX_PER_TRANSACTION, 
-                       String.class);
+                       REPORT_GENERATOR_KEY_APDEX_PER_TRANSACTION);
                assertEquals(apdexString, apdexPerTransaction);
        }
        
@@ -59,8 +58,7 @@ public class ApdexPerTransactionTest ext
         final Props props = new Props();
         
props.load(this.getClass().getResourceAsStream("reportgenerator_test.properties"));
         final String title = getOptionalProperty(props, 
-                "jmeter.reportgenerator.graph.responseTimePercentiles.title", 
-                String.class);
+                "jmeter.reportgenerator.graph.responseTimePercentiles.title");
         assertNotNull("title should not be null", title);
     }
     
@@ -131,17 +129,11 @@ public class ApdexPerTransactionTest ext
                
        }
        
-       private static String getOptionalProperty(Props props,
-            String key, Class<String> clazz) {
-        String property = getProperty(props, key, null, clazz);
-        if (property != null) {
-        }
-        return property;
+       private static String getOptionalProperty(Props props, String key) {
+        return getProperty(props, key, null);
     }
        
-       private static String getProperty(Props props, String key,
-            String defaultValue, Class<String> clazz)
-             {
+       private static String getProperty(Props props, String key, String 
defaultValue) {
         String value = props.getValue(key);
         if (value == null) {
             return defaultValue;


Reply via email to