String getPort() { return getPropertyAsString(PORT); } /*************************************************************************** * Sets the Rootdn attribute of the LDAPSampler object * * @param newRootdn * The new rootdn value **************************************************************************/ public 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);
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
String getPort() {
1
String get
2
		return getPropertyAsString(PORT);
3
	}
4
	/***************************************************************************
5
	
2
Classname()
3
    {
4
        return getPropertyAsString(CLASSNAME);
5
    }
6
    
7
    /**
6
 * Sets the Rootdn attribute of the LDAPSampler object
8
     * Set the 
7
	 * 
8
	 * @param newRootdn 
9
	 *            The new rootdn value
10
	 **************************************************************************/
11
	public void setRootdn(String newRootdn) {
12
		this.setProperty(ROOTDN, newRootdn);
13
	}
14
	/***************************************************************************
15
	
9
string label used to create an instance of the
10
     * test with the string constructor.
11
     * @param constr
12
     */
13
    public void setConstructorString(String constr)
14
    {
15
        setProperty(CONSTRUCTORSTRING,constr);
16
    }
17
    
18
    /**
16
 * Gets the Rootdn attribute of the LDAPSampler object
19
     * get the 
17
	 * 
18
	 * @return The Rootdn value
19
	 **************************************************************************/
20
	public String getRootdn() {
21
		
20
string passed to the string constructor
21
     */
22
    public String getConstructorString()
23
    {
22
return getPropertyAsString(ROOTDN);
24
        return getPropertyAsString(
23
	
25
CONSTRUCTORSTRING);
26
    
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