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); } /** * The failure code is used by other components */ public String getFailureCode(){ return getPropertyAsString(FAILURECODE);
void setFilename(String newFilename) { this.setProperty(FILENAME, newFilename); } public String getScript() { return this.getPropertyAsString(SCRIPT); } public void setScript(String newScript) { this.setProperty(SCRIPT, newScript); } public String getParameters() { return this.getPropertyAsString(PARAMETERS);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/sampler/BSFSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setSuccessCode(String code){
1
void setFilename(String newFilename) {
2
        setProperty(SUCCESSCODE,code);
2
		this.setProperty(
3
    }
4
    
5
    /**
6
     * get the failure message
7
     */
8
    
3
FILENAME, newFilename);
4
	}
9
public String getFailure(){
5
	public String getScript() {
10
        return getPropertyAsString(FAILURE);
6
		return this.getPropertyAsString(
11
    }
12
    /**
13
     * set the failure message
14
     * @param fail
15
     */
16
    
7
SCRIPT);
8
	}
17
public void setFailure(String fail){
9
	public void setScript(String 
18
        setProperty(FAILURE,fail);
19
    }
20
    
21
    /**
22
     * The failure code is used by other components
23
     */
24
    
10
newScript) {
11
		this.setProperty(SCRIPT, newScript);
12
	}
25
public String getFailureCode(){
13
	public String getParameters() {
26
        return getPropertyAsString(FAILURECODE);
14
		return this.getPropertyAsString(
27
    
15
PARAMETERS);
16
	
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