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); } /*************************************************************************** * Sets the attributes of the LdapConfig object * * @param newAttrs * The new attributes value **************************************************************************/ public void setAttrs(String newAttrs) { this.setProperty(ATTRIBS, newAttrs); } /*************************************************************************** * Gets the attributes of the LDAPSampler object * * @return The attributes **************************************************************************/ public String getAttrs() { return getPropertyAsString(ATTRIBS); }
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); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.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 setTest(String newTest) {
1
void set
2
		this.setProperty(TEST, newTest);
3
	}
4
	/***************************************************************************
5
	
2
Classname(String classname)
3
    {
4
        setProperty(CLASSNAME, classname);
5
    }
6
    /**
6
 * Gets the test attribute of the LDAPSampler object
7
     * Gets the Classname attribute of the 
7
	 * 
8
	
8
JavaConfig object
9
     *
9
 * @return The test value (Add,Modify,Delete and search)
10
     * @return  the 
10
	 **************************************************************************/
11
	public String getTest() {
12
		return getPropertyAsString(TEST);
13
	}
14
	/***************************************************************************
15
	
11
Classname value
12
     */
13
    public String getClassname()
14
    {
15
        return getPropertyAsString(CLASSNAME);
16
    }
17
    
18
    /**
16
 * Sets the attributes of the LdapConfig object
19
     * Set the stri
17
	 * 
18
	
20
ng label used to create an instance of the
21
     * test with the string constructor.
19
 * @param newAttrs
22
     * @param constr
20
	 *            The new attributes value
23
     
21
	 **************************************************************************/
22
	public void setAttrs
24
*/
23
(String newAttrs) {
25
    public void setConstructorString(String 
24
		this.setProperty(ATTRIBS, newAt
26
constr)
27
    {
25
trs);
28
        setProperty(CONSTRUCTORSTRING,constr);
26
	}
27
	/***************************************************************************
28
	
29
    }
30
    
31
    /**
29
 * Gets the attributes of the LDAPSampler object
32
     * get the stri
30
	 * 
31
	 * @return The attributes
32
	 **************************************************************************/
33
	public String getAttrs() {
34
		
33
ng passed to the string constructor
34
     */
35
    public String getConstructorString()
36
    {
35
return getPropertyAsString(ATTRIBS);
37
        return getPropertyAsString(
36
	
38
CONSTRUCTORSTRING);
37
}
39
    }
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