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 getValue() { return getPropertyAsString(VALUE); } /** * set the value for this object. */ public synchronized void setValue(String value) { this.setProperty(VALUE, value); } /** * get the domain for this object. */ public synchronized String getDomain() { return getPropertyAsString(DOMAIN); } /** * set the domain for this object. */ public synchronized void setDomain(String domain) { setProperty(DOMAIN, domain); }
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/org/apache/jmeter/protocol/http/control/Cookie.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getErrorCode(){
1
String getValue() {
2
        return getPropertyAsString(ERRORCODE);
2
		return getPropertyAsString(
3
    }
4
    
5
    /**
6
     * provide an unique error code for when the test
7
     * does not pass the assert test.
8
     * @param code
9
    
3
VALUE);
4
	}
5
	/**
6
	 * set the value for this object.
10
 */
7
	 */
11
    public void setErrorCode(String code){
8
	public synchronized void setValue(String value) {
12
        setProperty(ERRORCODE,code);
9
		this.setProperty(
13
    }
14
    
15
    
10
VALUE, value);
11
	}
16
/**
12
	/**
17
     * return the comma separated string for the filter
13
	 * get the domain for th
18
    
14
is object.
19
 */
15
	 */
20
    public String getFilterString(){
16
	public synchronized String getDomain() {
21
        return getPropertyAsString(FILTER);
17
		return getPropertyAsString(
22
    }
23
    
24
    
18
DOMAIN);
19
	}
25
/**
20
	/**
26
     * set the filter string in comman separated format
21
	 * set the 
27
     * @param text
28
    
22
domain for this object.
29
 */
23
	 */
30
    public void setFilterString(String text){
24
	public synchronized void setDomain(String 
31
        setProperty(FILTER,text);
32
    
25
domain) {
26
		setProperty(DOMAIN, domain);
33
}
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