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); }
void setClassname(String classname) { setProperty(CLASSNAME, classname); } /** * Gets the Classname attribute of the JavaConfig object * * @return the Classname value */ public String getClassname() { return getPropertyAsString(CLASSNAME); } /** * Set the string label used to create an instance of the * test with the string constructor. * @param constr */ public void setConstructorString(String constr) { setProperty(CONSTRUCTORSTRING,constr); }
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/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.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
	
2
Classname(String classname)
3
    {
4
        setProperty(CLASSNAME, classname);
4
}
5
    }
5
	/**
6
    /**
6
	 * Gets the Rootdn attribute of the LDAPSampler object.
7
     * Gets the Classname attribute of the JavaConfig object
7
	 * 
8
	
8
     *
9
 * @return the Rootdn value
9
     * @return  the Classname value
10
	 */
10
     */
11
	public String getRootdn() {
11
    public String get
12
		return getPropertyAsString(ROOTDN);
13
	}
14
	
12
Classname()
13
    {
14
        return getPropertyAsString(CLASSNAME);
15
    }
16
    
15
/**
17
    /**
16
	 * Sets the Test attribute of the LdapConfig object.
18
     * Set the 
17
	 * 
18
	 * @param newTest
19
	 *    
19
string label used to create an instance of the
20
        the new test value(Add,Modify,Delete and search)
20
     
21
	
21
* test with the string constructor.
22
     * @param constr
22
 */
23
     */
23
	public void setTest(String newTest) {
24
    public void setConstructorString(String 
24
		this.setProperty(TEST, newTe
25
constr)
26
    {
25
st);
27
        setProperty(CONSTRUCTORSTRING,constr);
26
	}
28
    }
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