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 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);
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
void setClassname(String classname)
1
void set
2
    {
3
        setProperty(CLASSNAME, classname);
4
    }
5
    /**
6
    
2
Test(String newTest) {
3
		this.setProperty(TEST, newTest);
4
	}
5
	/***************************************************************************
7
 * Gets the Classname attribute of the JavaConfig object
6
	 * Gets the test attribute of the LDAPSampler object
8
     *
7
	 * 
9
     * @return  the Classname value
8
	 * @return The 
10
     */
11
    public String getClassname()
12
    {
13
        return getPropertyAsString(CLASSNAME);
14
    }
15
    
16
    /**
17
    
9
test value (Add,Modify,Delete and search)
10
	 **************************************************************************/
11
	public String getTest() {
12
		return getPropertyAsString(TEST);
13
	}
14
	/***************************************************************************
18
 * Set the string label used to create an instance of the
15
	 * Sets the attri
19
     * test with the string constructor.
20
     * @param constr
21
     */
22
    public void setConstructorString
16
butes of the LdapConfig object
17
	 * 
18
	 * @param newAttrs
19
	 *            The new attributes value
20
	 **************************************************************************/
23
(String constr)
21
	public void setAttrs(String 
24
    {
25
        setProperty(CONSTRUCTORSTRING,cons
22
newAttrs) {
26
tr);
23
		this.setProperty(ATTRIBS, newAttrs);
27
    }
28
    
29
    /**
30
    
24
	}
25
	/***************************************************************************
31
 * get the string passed to the string constructor
26
	 * Gets the attri
32
     */
33
    public String getConstructorString()
34
    {
35
        
27
butes of the LDAPSampler object
28
	 * 
29
	 * @return The attributes
30
	 **************************************************************************/
31
	public String getAttrs() {
36
return getPropertyAsString(CONSTRUCTORSTRING);
32
		return getPropertyAsString(ATTRIBS);
37
    
33
	
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