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