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