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