jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1860524 - /jmeter/trunk/src/components/org/apache/jmeter/assertions/XPath2Assertion.java
Date Sun, 02 Jun 2019 12:47:17 GMT
Author: pmouawad
Date: Sun Jun  2 12:47:17 2019
New Revision: 1860524

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

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/assertions/XPath2Assertion.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/assertions/XPath2Assertion.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/assertions/XPath2Assertion.java?rev=1860524&r1=1860523&r2=1860524&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/assertions/XPath2Assertion.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/assertions/XPath2Assertion.java Sun Jun
 2 12:47:17 2019
@@ -37,7 +37,6 @@ public class XPath2Assertion extends Abs
     private static final long serialVersionUID = 241L;
     // + JMX file attributes
     private static final String XPATH_KEY = "XPath.xpath"; // $NON-NLS-1$
-    private static final String VALIDATE_KEY = "XPath.validate"; // $NON-NLS-1$
     private static final String NEGATE_KEY = "XPath.negate"; // $NON-NLS-1$
     private static final String NAMESPACES = "XPath.namespaces"; // $NON-NLS-1$
     // - JMX file attributes
@@ -94,29 +93,11 @@ public class XPath2Assertion extends Abs
         setProperty(new StringProperty(XPATH_KEY, xpath));
     }
 
-    /**
-     * Set use validation
-     *
-     * @param validate Flag whether validation should be used
-     */
-    public void setValidating(boolean validate) {
-        setProperty(new BooleanProperty(VALIDATE_KEY, validate));
-    }
-
     public void setNegated(boolean negate) {
         setProperty(new BooleanProperty(NEGATE_KEY, negate));
     }
 
     /**
-     * Is this validating
-     *
-     * @return boolean
-     */
-    public boolean isValidating() {
-        return getPropertyAsBoolean(VALIDATE_KEY, false);
-    }
-
-    /**
      * Negate the XPath test, that is return true if something is not found.
      *
      * @return boolean negated



Mime
View raw message