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);
void setUsername(String user) { setProperty(PRINCIPAL, user); } /** * return the username used to login to the jms server * * @return the username used to login to the jms server */ public String getUsername() { return getPropertyAsString(PRINCIPAL); } /** * Set the password to login to the jms server * * @param pwd */ public void setPassword(String pwd) { setProperty(CREDENTIALS, pwd);
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 setUsername(String 
2
    {
3
        setProperty(CLASSNAME, classname);
4
    
2
user) {
3
		setProperty(PRINCIPAL, user);
5
}
4
	}
6
    /**
5
	/**
7
     * Gets the Classname attribute of the JavaConfig object
6
	 * return the 
8
     *
9
    
7
username used to login to the jms server
8
	 * 
10
 * @return  the Classname value
9
	 * @return the 
11
    
10
username used to login to the jms server
12
 */
11
	 */
13
    public String getClassname()
12
	public String getUsername()
14
    {
15
        
13
 {
16
return getPropertyAsString(CLASSNAME);
14
		return getPropertyAsString(
17
    }
18
    
19
    
15
PRINCIPAL);
16
	}
20
/**
17
	/**
21
     * Set the string label used to create an instance of the
18
	 * Set the 
22
     * test with the string constructor.
23
     * @param constr
24
    
19
password to login to the jms server
20
	 * 
21
	 * @param pwd
25
 */
22
	 */
26
    public void setConstructorString(String constr)
23
	public void set
27
    {
28
        setProperty(CONSTRUCTORSTRING,constr);
29
    
24
Password(String pwd) {
25
		setProperty(CREDENTIALS, pwd);
26
	
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