String getScript() { return this.getPropertyAsString(SCRIPT); } public void setScript(String newScript) { this.setProperty(SCRIPT, newScript); } public String getParameters() { return this.getPropertyAsString(PARAMETERS);
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); } /** * return the descriptive error for the test */ public String getError(){ return getPropertyAsString(ERROR);
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 getFailureCode(){
2
		return this.getPropertyAsString(SCRIPT);
2
        return getPropertyAsString(
3
	}
4
	
3
FAILURECODE);
4
    }
5
    
6
    /**
7
     * Provide some unique code to denote a type of failure
8
     * @param code
9
     */
5
public void setScript(String newScript) {
10
    public void set
6
		this.setProperty(SCRIPT, newScript);
7
	}
8
	
11
FailureCode(String code){
12
        setProperty(FAILURECODE,code);
13
    }
14
    /**
15
     * return the descriptive error for the test
16
     */
9
public String getParameters() {
17
    public String getError(){
10
		return this.getPropertyAsString(PARAMETERS);
18
        return getPropertyAsString(
11
	
19
ERROR);
20
    
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