void setDoNotSetUpTearDown(boolean setup){ setProperty(DOSETUP,String.valueOf(setup)); } /** * If append error is not set, by default it is set to false, * which means users have to explicitly set the sampler to * append the assert errors. Because of how junit works, there * should only be one error */ public boolean getAppendError() { return getPropertyAsBoolean(APPEND_ERROR,false); } public void setAppendError(boolean error) { setProperty(APPEND_ERROR,String.valueOf(error)); }
void setAppendError(boolean error) { setProperty(APPEND_ERROR,String.valueOf(error)); } /** * If append exception is not set, by default it is set to false. * Users have to explicitly set it to true to see the exceptions * in the result tree. */ public boolean getAppendException() { return getPropertyAsBoolean(APPEND_EXCEPTION,false); } public void setAppendException(boolean exc) { setProperty(APPEND_EXCEPTION,String.valueOf(exc)); }
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
void setDoNotSetUpTearDown(boolean setup){
1
void setAppendError(boolean error) {
2
        setProperty(DOSETUP,String.valueOf(setup));
2
        setProperty(APPEND_ERROR,String.valueOf(error));
3
    }
3
    }
4
    /**
4
    /**
5
     * If append error is not set, by default it is set to false,
5
     * If append exception is not set, by default it is set to false.
6
     * which means users have to explicitly set the sampler to
6
     * Users have to explicitly set 
7
     * append the assert errors. Because of how junit works, there
8
     * should only be one error
7
it to true to see the exceptions
8
     * in the result tree.
9
     */
9
     */
10
    public boolean getAppendError() {
10
    public boolean getAppendException() {
11
        return getPropertyAsBoolean(APPEND_ERROR,false);
11
        return getPropertyAsBoolean(APPEND_EXCEPTION,false);
12
    }
12
    }
13
    
13
    
14
    public void setAppendError(boolean error) {
14
    public void setAppendException(boolean exc) {
15
        setProperty(APPEND_ERROR,String.valueOf(error));
15
        setProperty(APPEND_EXCEPTION,String.valueOf(exc));
16
    }
16
    }
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