String getScript() { return this.getPropertyAsString(SCRIPT); } public void setScript(String newScript) { this.setProperty(SCRIPT, newScript); } public String getParameters() { return this.getPropertyAsString(PARAMETERS); }
String getSuccessCode(){ return getPropertyAsString(SUCCESSCODE); } /** * set the succes code. the success code should * be unique. * @param code */ public void setSuccessCode(String code){ setProperty(SUCCESSCODE,code); } /** * get the failure message */ public String getFailure(){ return getPropertyAsString(FAILURE); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/sampler/BSFSampler.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 getScript() {
1
String getSuccessCode(){
2
		return this.getPropertyAsString(SCRIPT);
2
        return getPropertyAsString(S
3
	}
4
	
3
UCCESSCODE);
4
    }
5
    /**
6
     * set the succes code. the success code should
7
     * be unique.
8
     * @param code
9
     */
5
public void setScript(String newScript) {
10
    public void setS
6
		this.setProperty(SCRIPT, newScript);
7
	}
8
	
11
uccessCode(String code){
12
        setProperty(SUCCESSCODE,code);
13
    }
14
    
15
    /**
16
     * get the failure message
17
     */
9
public String getParameters() {
18
    public String getFailure(){
10
		return this.getPropertyAsString(PARAMETERS);
19
        return getPropertyAsString(
11
	
20
FAILURE);
12
}
21
    }
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