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 getFailure(){ return getPropertyAsString(FAILURE); } /** * set the failure message * @param fail */ public void setFailure(String fail){ setProperty(FAILURE,fail); } /** * The failure code is used by other components */ public String getFailureCode(){ return getPropertyAsString(FAILURECODE); } /** * Provide some unique code to denote a type of failure * @param code */ public void setFailureCode(String code){ setProperty(FAILURECODE,code);
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 getFailure(){
2
		return this.getPropertyAsString(PARAMETERS);
2
        return getPropertyAsString(
3
	}
4
	
3
FAILURE);
4
    }
5
    /**
6
     * set the failure message
7
     * @param fail
8
     */
5
public void setParameters(String newScript) {
9
    public void set
6
		this.setProperty(PARAMETERS, newScript);
7
	}
8
	
10
Failure(String fail){
11
        setProperty(FAILURE,fail);
12
    }
13
    
14
    /**
15
     * The failure code is used by other components
16
     */
9
public String getScriptLanguage() {
17
    public String getFailureCode(){
10
		return this.getPropertyAsString(LANGUAGE);
18
        return getPropertyAsString(
11
	}
12
	
19
FAILURECODE);
20
    }
21
    
22
    /**
23
     * Provide some unique code to denote a type of failure
24
     * @param code
25
     */
13
public void setScriptLanguage(String lang) {
26
    public void set
14
		this.setProperty(LANGUAGE, lang);
15
	
27
FailureCode(String code){
28
        setProperty(FAILURECODE,code);
29
    
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