String getParameters() { return this.getPropertyAsString(PARAMETERS); } public void setParameters(String newScript) { this.setProperty(PARAMETERS, newScript); } public String getScriptLanguage() { return this.getPropertyAsString(LANGUAGE); } public void setScriptLanguage(String lang) { this.setProperty(LANGUAGE, lang);
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); } /** * set the failure message * @param fail */ public void setFailure(String fail){ setProperty(FAILURE,fail);
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 getParameters() {
1
String getSuccessCode(){
2
		return this.getPropertyAsString(PARAMETERS);
2
        return getPropertyAsString(
3
	}
4
	
3
SUCCESSCODE);
4
    }
5
    /**
6
     * set the succes code. the success code should
7
     * be unique.
8
     * @param code
9
     */
5
public void setParameters(String newScript) {
10
    public void set
6
		this.setProperty(PARAMETERS, newScript);
7
	}
8
	
11
SuccessCode(String code){
12
        setProperty(SUCCESSCODE,code);
13
    }
14
    
15
    /**
16
     * get the failure message
17
     */
9
public String getScriptLanguage() {
18
    public String getFailure(){
10
		return this.getPropertyAsString(LANGUAGE);
19
        return getPropertyAsString(FAILURE);
11
	}
20
    }
12
	
21
    /**
22
     * set the failure message
23
     * @param fail
24
     */
13
public void setScriptLanguage(String lang) {
25
    public void set
14
		this.setProperty(LANGUAGE, lang);
15
	
26
Failure(String fail){
27
        setProperty(FAILURE,fail);
28
    
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