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);
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);
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/LDAPExtSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getClassname()
1
String get
2
    {
3
        return getPropertyAsString(CLASSNAME);
4
    }
5
    
6
    /**
7
    
2
Test() {
3
		return getPropertyAsString(TEST);
4
	}
5
	/***************************************************************************
8
 * Set the string label used to create an instance of the
6
	 * Sets the attri
9
     * test with the string constructor.
10
    
7
butes of the LdapConfig object
8
	 * 
11
 * @param constr
9
	 * @param newAttrs
12
     */
13
    public void setConstructorString
10
	 *            The new attributes value
11
	 **************************************************************************/
14
(String constr)
12
	public void setAttrs(String 
15
    {
16
        setProperty(CONSTRUCTORSTRING,cons
13
newAttrs) {
17
tr);
14
		this.setProperty(ATTRIBS, newAttrs);
18
    }
19
    
20
    /**
21
    
15
	}
16
	/***************************************************************************
22
 * get the string passed to the string constructor
17
	 * Gets the attri
23
     */
24
    public String getConstructorString()
25
    {
26
        
18
butes of the LDAPSampler object
19
	 * 
20
	 * @return The attributes
21
	 **************************************************************************/
22
	public String getAttrs() {
27
return getPropertyAsString(CONSTRUCTORSTRING);
23
		return getPropertyAsString(
28
    
24
ATTRIBS);
25
	
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