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);
String getJNDIInitialContextFactory() { return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC); } /** * set the provider user for jndi * * @param url the provider URL */ public 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);
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
String getClassname()
1
String get
2
    {
3
        return getPropertyAsString(CLASSNAME);
4
    }
5
    
6
    
2
JNDIInitialContextFactory() {
3
		return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);
4
	}
7
/**
5
	/**
8
     * Set the string label used to create an instance of the
6
	 * set the 
9
     * test with the string constructor.
10
     * @param constr
11
    
7
provider user for jndi
8
	 * 
9
	 * @param url the provider URL
12
 */
10
	 */
13
    public void setConstructorString(String constr)
11
	public void set
14
    {
15
        setProperty(CONSTRUCTORSTRING,constr);
16
    }
17
    
18
    
12
ProviderUrl(String url) {
13
		setProperty(PROVIDER_URL, url);
14
	}
19
/**
15
	/**
20
     * get the string passed to the string constructor
16
	 * method returns the provider url for jndi to connect to
21
    
17
	 * 
18
	 * @return the provider URL
22
 */
19
	 */
23
    public String getConstructorString()
20
	public String get
24
    {
25
        
21
ProviderUrl() {
26
return getPropertyAsString(CONSTRUCTORSTRING);
22
		return getPropertyAsString(
27
    
23
PROVIDER_URL);
24
	
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