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