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 setXAxis(String field) { setProperty(REPORT_CHART_X_AXIS,field); } public String getYAxis() { return getPropertyAsString(REPORT_CHART_Y_AXIS); } public void setYAxis(String scale) { setProperty(REPORT_CHART_Y_AXIS,scale); } public String getXLabel() { return getPropertyAsString(REPORT_CHART_X_LABEL); }
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/testelement/AbstractChart.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setSuccessCode(String code){
1
void setXAxis(String field) {
2
        setProperty(SUCCESSCODE,code);
2
    	setProperty(
3
    }
4
    
5
    /**
6
     * get the failure message
7
     */
3
REPORT_CHART_X_AXIS,field);
4
    }
5
    
8
    public String getFailure(){
6
    public String getYAxis() {
9
        return getPropertyAsString(FAILURE);
7
    	return getPropertyAsString(REPORT_CHART_Y_AXIS);
10
    }
8
    }
11
    /**
9
    
12
     * set the failure message
13
     * @param fail
14
     */
15
    public void setFailure(String fail){
10
    public void setYAxis(String scale) {
16
        setProperty(FAILURE,fail);
11
    	setProperty(
17
    }
18
    
19
    /**
20
     * The failure code is used by other components
21
     */
12
REPORT_CHART_Y_AXIS,scale);
13
    }
22
    public String getFailureCode(){
14
    public String getXLabel() {
23
        return getPropertyAsString(FAILURECODE);
15
    	return getPropertyAsString(REPORT_CHART_X_LABEL);
24
    }
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