String getCSS() { return getPropertyAsString(REPORT_PAGE_CSS); } public void setCSS(String css) { setProperty(REPORT_PAGE_CSS,css); } public String getHeaderURL() { return getPropertyAsString(REPORT_PAGE_HEADER); } public void setHeaderURL(String url) { setProperty(REPORT_PAGE_HEADER,url); } public String getFooterURL() { return getPropertyAsString(REPORT_PAGE_FOOTER);
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); } /** * 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/testelement/ReportPage.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 getCSS() {
1
String getFailure(){
2
        return getPropertyAsString(REPORT_PAGE_CSS);
2
        return getPropertyAsString(FAILURE);
3
    }
3
    }
4
    
4
    /**
5
     * set the failure message
6
     * @param fail
7
     */
5
    public void setCSS(String css) {
8
    public void setFailure(String fail){
6
        setProperty(REPORT_PAGE_CSS,css);
9
        setProperty(FAILURE,fail);
7
    }
10
    }
8
    
11
    
12
    /**
13
     * The failure code is used by other components
14
     */
9
    public String getHeaderURL() {
15
    public String getFailureCode(){
10
        return getPropertyAsString(REPORT_PAGE_HEADER);
16
        return getPropertyAsString(FAILURECODE);
11
    }
17
    }
12
    
18
    
19
    /**
20
     * Provide some unique code to denote a type of failure
21
     * @param code
22
     */
13
    public void setHeaderURL(String url) {
23
    public void setFailureCode(String code){
14
        setProperty(REPORT_PAGE_HEADER,url);
24
        setProperty(FAILURECODE,code);
15
    }
25
    }
16
    
26
    /**
27
     * return the descriptive error for the test
28
     */
17
    public String getFooterURL() {
29
    public String getError(){
18
        return getPropertyAsString(REPORT_PAGE_FOOTER);
30
        return getPropertyAsString(ERROR);
19
    
31
    
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