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 getMethod(){ return getPropertyAsString(METHOD); } /** * Method should add the JUnit testXXX method to the list at * the end, since the sequence matters. * @param methodName */ public void setMethod(String methodName){ setProperty(METHOD,methodName); } /** * get the success message */ public String getSuccess(){ return getPropertyAsString(SUCCESS); } /** * set the success message * @param success */ public void setSuccess(String success){ setProperty(SUCCESS,success); }
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 getMethod(){
2
        return getPropertyAsString(ERRORCODE);
2
        return getPropertyAsString(METHOD);
3
    }
3
    }
4
    
5
    /**
4
    /**
6
     * provide an unique error code for when the test
5
     * 
7
     * does not pass the assert test
6
Method should add the JUnit testXXX method to the list at
8
.
7
     * the end, since the sequence matters.
9
     * @param code
8
     * @param methodName
10
     */
9
     */
11
    public void setErrorCode(String code){
10
    public void setMethod(String methodName){
12
        setProperty(ERRORCODE,code);
11
        setProperty(METHOD,methodName);
13
    }
12
    }
14
    
13
    
15
    /**
14
    /**
16
     * return the comma separated string for the filter
15
     * get the success message
17
     */
16
     */
18
    public String getFilterString(){
17
    public String getSuccess(){
19
        return getPropertyAsString(FILTER);
18
        return getPropertyAsString(SUCCESS);
20
    }
19
    }
21
    
20
    
22
    /**
21
    /**
23
     * set the filter string in comman separated format
22
     * set the success message
24
     * @param text
23
     * @param success
25
     */
24
     */
26
    public void setFilterString(String text){
25
    public void setSuccess(String success){
27
        setProperty(FILTER,text);
26
        setProperty(SUCCESS,success);
28
    }
27
    }
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