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); }
String getXmlData() { return getPropertyAsString(XML_DATA); } /** * it's kinda obvious, but we state it anyways. Set the xml file with a * string path. * * @param filename */ public void setXmlFile(String filename) { setProperty(XML_DATA_FILE, filename); } /** * Get the file location of the xml file. * * @return String file path. */ public String getXmlFile() { return getPropertyAsString(XML_DATA_FILE); }
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/protocol/http/sampler/SoapSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getRootdn() {
1
String getXmlData() {
2
		return getPropertyAsString(ROOTDN);
2
		return getPropertyAsString(XML_DATA);
3
	}
3
	}
4
	/**
4
    /**
5
	 * Sets the Test attribute of the LdapConfig object.
5
     * it's kinda obvious, but we stat
6
	 * 
7
	 * @param newTest
8
	 *
6
e it anyways. Set the xml file with a
7
     * string path.
9
    
8
     *
10
        the new test value(Add,Modify,Delete and search)
9
     
11
	
10
* @param filename
12
 */
11
     */
13
	public void setTest(String newTest) {
12
    public void setXmlFile(String 
14
		this.setProperty(TEST, newTest);
15
	
13
filename) {
14
        setProperty(XML_DATA_FILE, filename);
16
}
15
    }
17
	/**
16
    /**
18
	 * Gets the test attribute of the LDAPSampler object.
17
     * Get the 
19
	
18
file location of the xml file.
20
 * 
19
     *
21
	 * @return the test value (Add, Modify, Delete and search)
20
     * @return 
22
	
21
String file path.
23
 */
22
     */
24
	public String getTest() {
23
    public String get
25
		
24
XmlFile() {
26
return getPropertyAsString(TEST);
25
        return getPropertyAsString(
27
	
26
XML_DATA_FILE);
28
}
27
    }
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