void setPassword(String pwd) { setProperty(CREDENTIALS, pwd); } /** * return the password used to login to the jms server * * @return the password used to login to the jms server */ public String getPassword() { return getPropertyAsString(CREDENTIALS); } /** * set the number of iterations the sampler should aggregate * * @param count */ public void setIterations(String count) { setProperty(ITERATIONS, count);
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);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/BaseJMSSampler.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 setPassword(String pwd) {
1
void setClassname(String 
2
		setProperty(CREDENTIALS, pwd);
3
	
2
classname)
3
    {
4
        setProperty(CLASSNAME, classname);
4
}
5
    }
5
	/**
6
    /**
6
	 * return the password used to login to the jms server
7
     * Gets the Class
7
	 * 
8
	
8
name attribute of the JavaConfig object
9
     *
9
 * @return the password used to login to the jms server
10
     * @return  the Class
10
	
11
name value
11
 */
12
     */
12
	public String getPassword() {
13
    public String getClass
13
		
14
name()
15
    {
14
return getPropertyAsString(CREDENTIALS);
16
        return getPropertyAsString(C
15
	}
16
	
17
LASSNAME);
18
    }
19
    
17
/**
20
    /**
18
	 * set the number of iterations the sampler should aggregate
21
     * Set the 
19
	 * 
20
	
22
string label used to create an instance of the
23
     * test with the string constructor.
21
 * @param count
24
     * @param co
22
	
25
nstr
23
 */
26
     */
24
	public void setIterations(String count) {
27
    public void set
25
		setProperty(ITERATIONS, count);
26
	
28
ConstructorString(String constr)
29
    {
30
        setProperty(CONSTRUCTORSTRING,constr);
31
    
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