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); } /** * The X data labels should be either the filename, date or some * other series of values * @param label */ public void setXLabel(String label) { setProperty(REPORT_CHART_X_LABEL,label); } public String getYLabel() { return getPropertyAsString(REPORT_CHART_Y_LABEL); }
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); } /** * The failure code is used by other components */ public String getFailureCode(){ return getPropertyAsString(FAILURECODE); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/AbstractChart.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 getYAxis() {
1
String getSuccessCode(){
2
    	return getPropertyAsString(REPORT_CHART_Y_AXIS);
2
        return getPropertyAsString(SUCCESSCODE);
3
    }
3
    }
4
    
4
    /**
5
     * set the succes code. the success code should
6
     * be unique.
7
     * @param code
8
     */
5
    public void setYAxis(String scale) {
9
    public void setSuccessCode(String code){
6
    	setProperty(REPORT_CHART_Y_AXIS,scale);
10
        setProperty(
7
    }
11
SUCCESSCODE,code);
12
    }
13
    
14
    /**
15
     * get the failure message
16
     */
8
    public String getXLabel() {
17
    public String getFailure(){
9
    	return getPropertyAsString(REPORT_CHART_X_LABEL);
18
        return getPropertyAsString(FAILURE);
10
    }
19
    }
11
    
12
    /**
20
    /**
13
     * The X data labels should be either the filename, date or some
21
     * set the fail
14
     * other series of values
22
ure message
15
     * @param label
23
     * @param fail
16
     */
24
     */
17
    public void setXLabel(String label) {
25
    public void setFailure(String fail){
18
    	setProperty(REPORT_CHART_X_LABEL,label);
26
        setProperty(
19
    }
20
    
27
FAILURE,fail);
28
    }
29
    
30
    /**
31
     * The failure code is used by other components
32
     */
21
    public String getYLabel() {
33
    public String getFailureCode(){
22
    	return getPropertyAsString(REPORT_CHART_Y_LABEL);
34
        return getPropertyAsString(FAILURECODE);
23
    }
35
    }
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