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 setProviderUrl(String url) { setProperty(PROVIDER_URL, url); } /** * method returns the provider url for jndi to connect to * * @return the provider URL */ public String getProviderUrl() { return getPropertyAsString(PROVIDER_URL); } /** * set the connection factory for * * @param factory */ public void setConnectionFactory(String factory) { setProperty(CONN_FACTORY, factory); } /** * return the connection factory parameter used to lookup the connection * factory from the JMS server * * @return the connection factory */ public String getConnectionFactory() { return getPropertyAsString(CONN_FACTORY); }
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
ProviderUrl(String url) {
3
		setProperty(PROVIDER_URL, url);
5
}
4
	}
6
    /**
5
	/**
7
     * Gets the Classname attribute of the JavaConfig object
6
	 * met
8
    
7
hod returns the provider url for jndi to connect to
9
 *
8
	 * 
10
     * @return  the Classname value
9
	 * @return the 
11
    
10
provider URL
12
 */
11
	 */
13
    public String getClassname()
12
	public String get
14
    {
15
        return getPropertyAsString(CLASSNAME);
16
    }
17
    
18
    
13
ProviderUrl() {
14
		return getPropertyAsString(PROVIDER_URL);
15
	}
19
/**
16
	/**
20
     * Set the string label used to create an instance of the
17
	 * set the 
21
     * test with the string constructor.
18
connection factory for
22
    
19
	 * 
23
 * @param constr
20
	 * @param 
24
    
21
factory
25
 */
22
	 */
26
    public void setConstructorString(String constr)
23
	public void setCon
27
    {
28
        setProperty(CONSTRUCTORSTRING,constr);
29
    }
30
    
31
    
24
nectionFactory(String factory) {
25
		setProperty(CONN_FACTORY, factory);
26
	}
32
/**
27
	/**
33
     * get the string passed to the string constructor
28
	 * return the 
34
    
29
connection factory parameter used to lookup the connection
30
	 * factory from the JMS server
35
 */
31
	 * 
36
    
32
	 * @return the connection factory
33
	 */
37
public String getConstructorString()
34
	public String getCon
38
    {
39
        
35
nectionFactory() {
40
return getPropertyAsString(CONSTRUCTORSTRING);
36
		return getPropertyAsString(CON
41
    
37
N_FACTORY);
42
}
38
	}
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