String getName() { return getPropertyAsString(HNAME); } /** * Set the name for this object. */ public synchronized void setName(String name) { this.setProperty(HNAME, name); } /** * Get the value for this object. */ public synchronized String getValue() { return getPropertyAsString(VALUE);
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);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/Header.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 getName() {
1
String getMethod(){
2
		return getPropertyAsString(HNAME);
2
        return getPropertyAsString(
3
	
3
METHOD);
4
}
4
    }
5
	/**
5
    /**
6
	 * Set the name for this object.
6
     * Met
7
	
7
hod should add the JUnit testXXX method to the list at
8
     * the end, since the sequence matters.
9
     * @param methodName
8
 */
10
     */
9
	public synchronized void setName(String name) {
11
    public void setMethod(String methodName){
10
		this.setProperty(HNAME, name);
12
        setProperty(
11
	}
12
	
13
METHOD,methodName);
14
    }
15
    
13
/**
16
    /**
14
	 * Get the value for this object.
17
     * get the 
15
	
18
success message
16
 */
19
     */
17
	public synchronized String getValue() {
20
    public String getSuccess(){
18
		return getPropertyAsString(VALUE);
21
        return getPropertyAsString(
19
	
22
SUCCESS);
23
    
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