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 getMethod(){ return getPropertyAsString(METHOD); } /** * Method should add the JUnit testXXX method to the list at * the end, since the sequence matters. * @param methodName */ public void setMethod(String methodName){ setProperty(METHOD,methodName); } /** * get the success message */ public String getSuccess(){ return getPropertyAsString(SUCCESS);
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 getXLabel() {
1
String getMethod(){
2
    	return getPropertyAsString(REPORT_CHART_X_LABEL);
2
        return getPropertyAsString(METHOD);
3
    }
3
    }
4
    
5
    /**
4
    /**
6
     * The X data labels should be either the filename, date or some
5
     * Method should add the JUnit testXXX method to the list at
7
     * other series of values
6
     * the end, since the sequence matters.
8
     * @param label
7
     * @param methodName
9
     */
8
     */
10
    public void setXLabel(String label) {
9
    public void setMethod(String methodName){
11
    	setProperty(REPORT_CHART_X_LABEL,label);
10
        setProperty(
12
    }
13
    
11
METHOD,methodName);
12
    }
13
    
14
    /**
15
     * get the success message
16
     */
14
    public String getYLabel() {
17
    public String getSuccess(){
15
    	return getPropertyAsString(REPORT_CHART_Y_LABEL);
18
        return getPropertyAsString(SUCCESS);
16
    
19
    
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