void setClassname(String classname) { setProperty(CLASSNAME, classname); } /** * Gets the Classname attribute of the JavaConfig object * * @return the Classname value */ public String getClassname() { return getPropertyAsString(CLASSNAME); } /** * Set the string label used to create an instance of the * test with the string constructor. * @param constr */ public void setConstructorString(String constr) { setProperty(CONSTRUCTORSTRING,constr); } /** * get the string passed to the string constructor */ public String getConstructorString() { return getPropertyAsString(CONSTRUCTORSTRING); }
void setUseAuth(String auth) { setProperty(USE_AUTH, auth); } /** * return whether jndi requires authentication * * @return whether jndi requires authentication */ public String getUseAuth() { return getPropertyAsString(USE_AUTH); } /** * set whether the sampler should read the response or not * * @param read whether the sampler should read the response or not */ public void setReadResponse(String read) { setProperty(READ_RESPONSE, read); } /** * return whether the sampler should read the response * * @return whether the sampler should read the response */ public String getReadResponse() { return getPropertyAsString(READ_RESPONSE); }
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/jms/sampler/BaseJMSSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setClassname(String classname)
1
void set
2
    {
3
        setProperty(CLASSNAME, classname);
4
    
2
UseAuth(String auth) {
3
		setProperty(USE_AUTH, auth);
5
}
4
	}
6
    /**
5
	/**
7
     * Gets the Classname attribute of the JavaConfig object
6
	 * ret
8
     *
9
    
7
urn whether jndi requires authentication
8
	 * 
10
 * @return  the Classname value
9
	 * @return 
11
    
10
whether jndi requires authentication
12
 */
11
	 */
13
    public String getClassname()
12
	public String get
14
    {
15
        return getPropertyAsString(CLASSNAME);
16
    }
17
    
18
    
13
UseAuth() {
14
		return getPropertyAsString(USE_AUTH);
15
	}
19
/**
16
	/**
20
     * Set the string label used to create an instance of the
17
	 * set 
21
     * test with the string constructor.
22
     * @param constr
23
    
18
whether the sampler should read the response or not
19
	 * 
20
	 * @param read whether the sampler should read the response or not
24
 */
21
	 */
25
    public void setConstructorString(String constr)
22
	public void set
26
    {
27
        setProperty(CONSTRUCTORSTRING,constr);
28
    }
29
    
30
    
23
ReadResponse(String read) {
24
		setProperty(READ_RESPONSE, read);
25
	}
31
/**
26
	/**
32
     * get the string passed to the string constructor
27
	 * ret
33
    
28
urn whether the sampler should read the response
29
	 * 
30
	 * @return whether the sampler should read the response
34
 */
31
	 */
35
    public String getConstructorString()
32
	public String get
36
    {
37
        
33
ReadResponse() {
38
return getPropertyAsString(CONSTRUCTORSTRING);
34
		return getPropertyAsString(
39
    
35
READ_RESPONSE);
40
}
36
	}
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