void setRootdn(String newRootdn) { this.setProperty(ROOTDN, newRootdn); } /** * Gets the Rootdn attribute of the LDAPSampler object. * * @return the Rootdn value */ public String getRootdn() { return getPropertyAsString(ROOTDN); } /** * Sets the Test attribute of the LdapConfig object. * * @param newTest * the new test value(Add,Modify,Delete and search) */ public 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); }
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/LDAPSampler.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 setRootdn(String newRootdn) {
1
void set
2
		this.setProperty(ROOTDN, newRootdn);
3
	}
4
	/**
5
	 * Gets the Rootdn attribute of the LDAPSampler object.
6
	 * 
7
	 * @return the Rootdn value
8
	 */
9
	
2
XPathQuery(String val){
3
        setProperty(XPATH_QUERY,val);   
4
    }
5
    
10
public String getRootdn() {
6
    public String getXPathQuery(){
11
		return getPropertyAsString(ROOTDN);
7
        return getPropertyAsString(
12
	}
13
	/**
14
	 * Sets the Test attribute of the LdapConfig object.
15
	 * 
16
	 * @param newTest
17
	 *            the new test value(Add,Modify,Delete and search)
18
	 */
8
XPATH_QUERY);
9
    }
10
  
19
	public void setTest(String newTest) {
11
	public void setRefName(String refName) {
20
		this.setProperty(TEST, newTest);
12
		setProperty(
21
	}
22
	/**
23
	 * Gets the test attribute of the LDAPSampler object.
24
	 * 
25
	 * @return the test value (Add, Modify, Delete and search)
26
	 */
13
REFNAME, refName);
14
	}
27
	public String getTest() {
15
	public String getRefName() {
28
		return getPropertyAsString(TEST);
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