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); } /** * get the string passed to the string constructor */ public String getConstructorString() { return getPropertyAsString(CONSTRUCTORSTRING);
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);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setClassname(String classname)
1
void set
2
    {
3
        setProperty(CLASSNAME, classname);
4
    
2
Rootdn(String newRootdn) {
3
		this.setProperty(ROOTDN, newRootdn);
5
}
4
	}
6
    /**
5
	/**
7
     * Gets the Classname attribute of the JavaConfig object
6
	 * Gets the Rootdn attribute of the LDAPSampler object.
8
     *
9
    
7
	 * 
10
 * @return  the Classname value
8
	 * @return the Rootdn value
11
     */
9
	 */
12
    public String getClassname()
10
	public String get
13
    {
14
        return getPropertyAsString(CLASSNAME);
15
    }
16
    
17
    
11
Rootdn() {
12
		return getPropertyAsString(ROOTDN);
13
	}
18
/**
14
	/**
19
     * Set the string label used to create an instance of the
15
	 * Sets the 
16
Test attribute of the LdapConfig object.
17
	 * 
18
	 * @param newTest
20
     * test with the string constructor.
19
	 *            t
21
     * @param constr
22
    
20
he new test value(Add,Modify,Delete and search)
23
 */
21
	 */
24
    public void setConstructorString(String constr)
22
	public void setTest(String 
25
    {
26
        setProperty(CONSTRUCTORSTRING,con
23
newTest) {
27
str);
24
		this.setProperty(TEST, newTest);
28
    }
29
    
30
    /**
31
     * get the string passed to the string constructor
32
    
25
	}
26
	/**
27
	 * Gets the test attribute of the LDAPSampler object.
28
	 * 
29
	 * @return the test value (Add, Modify, Delete and search)
33
 */
30
	 */
34
    public String getConstructorString()
31
	public String get
35
    {
36
        
32
Test() {
37
return getPropertyAsString(CONSTRUCTORSTRING);
33
		return getPropertyAsString(
38
    
34
TEST);
35
	
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