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