jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1521642 - /jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractTestElement.java
Date Tue, 10 Sep 2013 20:59:55 GMT
Author: sebb
Date: Tue Sep 10 20:59:55 2013
New Revision: 1521642

URL: http://svn.apache.org/r1521642
Log:
Make it easier to enable/disable test elements from anywhere

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractTestElement.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractTestElement.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractTestElement.java?rev=1521642&r1=1521641&r2=1521642&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractTestElement.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testelement/AbstractTestElement.java Tue Sep 10
20:59:55 2013
@@ -615,15 +615,16 @@ public abstract class AbstractTestElemen
         return true;
     }
 
-    /**
-     * {@inheritDoc}
-     */
     // Moved from JMeter class
     @Override
     public boolean isEnabled() {
         return getProperty(TestElement.ENABLED) instanceof NullProperty || getPropertyAsBoolean(TestElement.ENABLED);
     }
-    
+
+    public void setEnabled(boolean enabled) {
+        setProperty(new BooleanProperty(TestElement.ENABLED, enabled));
+    }
+
     /** 
      * {@inheritDoc}}
      */



Mime
View raw message