String getPassword() { return getPropertyAsString(ConfigTestElement.PASSWORD); } public void setServer(String newServer) { this.setProperty(SERVER, newServer); } public String getServer() { return getPropertyAsString(SERVER); }
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/ftp/sampler/FTPSampler.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 getPassword() {
1
String getClass
2
		
2
name()
3
    {
3
return getPropertyAsString(ConfigTestElement.PASSWORD);
4
        return getPropertyAsString(C
4
	}
5
	public void setServer(String newServer) {
6
		this.setProperty(SERVER, newServer);
7
	}
8
	public String getServer() {
9
		
5
LASSNAME);
6
    }
7
    
8
    /**
9
     * Set the 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
    /**
19
     * get the string passed to the string constructor
20
     */
21
    public String getConstructorString()
22
    {
10
return getPropertyAsString(SERVER);
23
        return getPropertyAsString(
11
	
24
CONSTRUCTORSTRING);
12
}
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