String getErrorCode(){ return getPropertyAsString(ERRORCODE); } /** * provide an unique error code for when the test * does not pass the assert test. * @param code */ public void setErrorCode(String code){ setProperty(ERRORCODE,code); } /** * return the comma separated string for the filter */ public String getFilterString(){ return getPropertyAsString(FILTER); }
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); }
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/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 getErrorCode(){
1
String getSuccessCode(){
2
        return getPropertyAsString(ERRORCODE);
2
        return getPropertyAsString(SUCCESSCODE);
3
    }
3
    }
4
    
5
    /**
4
    /**
6
     * provide an unique error code for when the test
5
     * 
7
     * does not pass the assert test
6
set the succes code. the success code should
8
.
7
     * be unique.
9
     * @param code
8
     * @param code
10
     */
9
     */
11
    public void setErrorCode(String code){
10
    public void setSuccessCode(String code){
12
        setProperty(ERRORCODE,code);
11
        setProperty(SUCCESSCODE,code);
13
    }
12
    }
14
    
13
    
15
    /**
14
    /**
16
     * return the comma separated string for the filter
15
     * get the failure message
17
     */
16
     */
18
    public String getFilterString(){
17
    public String getFailure(){
19
        return getPropertyAsString(FILTER);
18
        return getPropertyAsString(FAILURE);
20
    }
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