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); } /** * provide a descriptive error for the test method. For * a description of the difference between failure and * error, please refer to the following url * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9 * @param error */ public void setError(String error){ setProperty(ERROR,error); } /** * return the error code for the test method. it should * be an unique error code. */ public 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); } /** * set the filter string in comman separated format * @param text */ public void setFilterString(String text){ setProperty(FILTER,text);
String getSuccess(){ return getPropertyAsString(SUCCESS); } /** * set the success message * @param success */ public void setSuccess(String success){ setProperty(SUCCESS,success); } /** * get the success code defined by the user */ public 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); } /** * 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); } /** * provide a descriptive error for the test method. For * a description of the difference between failure and * error, please refer to the following url * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9 * @param error */ public void setError(String error){ setProperty(ERROR,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 getSuccess(){
2
        return getPropertyAsString(SUCCESS);
3
    }
4
    
5
    /**
6
     * set the success message
7
     * @param success
8
     */
9
    public void setSuccess(String success){
10
        setProperty(SUCCESS,success);
11
    }
12
    
13
    /**
14
     * get the success code defined by the user
15
     */
16
    public String getSuccessCode(){
17
        return getPropertyAsString(SUCCESSCODE);
18
    }
19
    /**
20
     * set the succes code. the success code should
21
     * be unique.
22
     * @param code
23
     */
24
    public void setSuccessCode(String code){
25
        setProperty(SUCCESSCODE,code);
26
    }
27
    
28
    /**
29
     * get the failure message
30
     */
1
String getFailure(){
31
    public String getFailure(){
2
        return getPropertyAsString(FAILURE);
32
        return getPropertyAsString(FAILURE);
3
    }
33
    }
4
    /**
34
    /**
5
     * set the failure message
35
     * set the failure message
6
     * @param fail
36
     * @param fail
7
     */
37
     */
8
    public void setFailure(String fail){
38
    public void setFailure(String fail){
9
        setProperty(FAILURE,fail);
39
        setProperty(FAILURE,fail);
10
    }
40
    }
11
    
41
    
12
    /**
42
    /**
13
     * The failure code is used by other components
43
     * The failure code is used by other components
14
     */
44
     */
15
    public String getFailureCode(){
45
    public String getFailureCode(){
16
        return getPropertyAsString(FAILURECODE);
46
        return getPropertyAsString(FAILURECODE);
17
    }
47
    }
18
    
48
    
19
    /**
49
    /**
20
     * Provide some unique code to denote a type of failure
50
     * Provide some unique code to denote a type of failure
21
     * @param code
51
     * @param code
22
     */
52
     */
23
    public void setFailureCode(String code){
53
    public void setFailureCode(String code){
24
        setProperty(FAILURECODE,code);
54
        setProperty(FAILURECODE,code);
25
    }
55
    }
26
    /**
56
    /**
27
     * return the descriptive error for the test
57
     * return the descriptive error for the test
28
     */
58
     */
29
    public String getError(){
59
    public String getError(){
30
        return getPropertyAsString(ERROR);
60
        return getPropertyAsString(ERROR);
31
    }
61
    }
32
    
62
    
33
    /**
63
    /**
34
     * provide a descriptive error for the test method. For
64
     * provide a descriptive error for the test method. For
35
     * a description of the difference between failure and
65
     * a description of the difference between failure and
36
     * error, please refer to the following url
66
     * error, please refer to the following url
37
     * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9
67
     * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9
38
     * @param error
68
     * @param error
39
     */
69
     */
40
    public void setError(String error){
70
    public void setError(String error){
41
        setProperty(ERROR,error);
71
        setProperty(ERROR,error);
42
    }
72
    
43
    
44
    /**
45
     * return the error code for the test method. it should
46
     * be an unique error code.
47
     */
48
    public String getErrorCode(){
49
        return getPropertyAsString(ERRORCODE);
50
    }
51
    
52
    /**
53
     * provide an unique error code for when the test
54
     * does not pass the assert test.
55
     * @param code
56
     */
57
    public void setErrorCode(String code){
58
        setProperty(ERRORCODE,code);
59
    }
60
    
61
    /**
62
     * return the comma separated string for the filter
63
     */
64
    public String getFilterString(){
65
        return getPropertyAsString(FILTER);
66
    }
67
    
68
    /**
69
     * set the filter string in comman separated format
70
     * @param text
71
     */
72
    public void setFilterString(String text){
73
        setProperty(FILTER,text);
74
    
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