void setTest(String newTest) { this.setProperty(TEST, newTest); } /*************************************************************************** * Gets the test attribute of the LDAPSampler object * * @return The test value (Add,Modify,Delete and search) **************************************************************************/ public String getTest() { return getPropertyAsString(TEST); } /*************************************************************************** * Sets the attributes of the LdapConfig object * * @param newAttrs * The new attributes value **************************************************************************/ public void setAttrs(String newAttrs) { this.setProperty(ATTRIBS, newAttrs); } /*************************************************************************** * Gets the attributes of the LDAPSampler object * * @return The attributes **************************************************************************/ public String getAttrs() { return getPropertyAsString(ATTRIBS);
void setXPathQuery(String val){ setProperty(XPATH_QUERY,val); } public String getXPathQuery(){ return getPropertyAsString(XPATH_QUERY); } public void setRefName(String refName) { setProperty(REFNAME, refName); } public String getRefName() { return getPropertyAsString(REFNAME);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/XPathExtractor.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setTest(String newTest) {
1
void set
2
		this.setProperty(TEST, newTest);
3
	}
4
	/***************************************************************************
5
	 * Gets the test attribute of the LDAPSampler object
6
	 * 
7
	 * @return The test value (Add,Modify,Delete and search)
8
	 **************************************************************************/
9
	
2
XPathQuery(String val){
3
        setProperty(XPATH_QUERY,val);   
4
    }
5
    
10
public String getTest() {
6
    public String getXPathQuery(){
11
		return getPropertyAsString(TEST);
7
        return getPropertyAsString(
12
	}
13
	/***************************************************************************
14
	 * Sets the attributes of the LdapConfig object
15
	 * 
16
	 * @param newAttrs
17
	 *            The new attributes value
18
	 **************************************************************************/
8
XPATH_QUERY);
9
    }
10
  
19
	public void setAttrs(String newAttrs) {
11
	public void setRefName(String refName) {
20
		this.setProperty(ATTRIBS, newAttrs);
12
		setProperty(
21
	}
22
	/***************************************************************************
23
	 * Gets the attributes of the LDAPSampler object
24
	 * 
25
	 * @return The attributes
26
	 **************************************************************************/
13
REFNAME, refName);
14
	}
27
	public String getAttrs() {
15
	public String getRefName() {
28
		return getPropertyAsString(ATTRIBS);
16
		return getPropertyAsString(REFNAME);
29
	
17
	
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0