void setTest(String newTest) { this.setProperty(TEST, newTest); } /*************************************************************************** * Gets the test attribute of the LDAPSampler object * * @return The test value (Add,Modify,Delete and search) **************************************************************************/ public String getTest() { return getPropertyAsString(TEST); } /*************************************************************************** * Sets the attributes of the LdapConfig object * * @param newAttrs * The new attributes value **************************************************************************/ public void setAttrs(String newAttrs) { this.setProperty(ATTRIBS, newAttrs); } /*************************************************************************** * Gets the attributes of the LDAPSampler object * * @return The attributes **************************************************************************/ public String getAttrs() { return getPropertyAsString(ATTRIBS);
void setJNDIIntialContextFactory(String icf) { setProperty(JNDI_INITIAL_CONTEXT_FAC, icf); } /** * method returns the initial context factory for jndi initial context * lookup. * * @return the initial context factory */ public 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/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.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 setTest(String newTest) {
1
void setJNDIIntialContextFactory(String icf) {
2
		this.setProperty(TEST, newTest);
2
		setProperty(
3
	}
4
	/*************************************************************************
3
JNDI_INITIAL_CONTEXT_FAC, icf);
4
	}
5
**
5
	/**
6
	 * Gets the test attribute of the LDAPSampler object
6
	 * method returns the initial context factory for jndi initial context
7
	 * lookup.
7
	 * 
8
	 * 
8
	 * @return The test value (Add,Modify,Delete and search)
9
	 * @return the 
9
	 **************************************************************************/
10
	public String getTest
10
initial context factory 
11
	 */
11
() {
12
	public String getJNDIInitialContextFactory() {
12
		return getPropertyAsString(TEST);
13
		return getPropertyAsString(
13
	}
14
	/*************************************************************************
14
JNDI_INITIAL_CONTEXT_FAC);
15
	}
15
**
16
	/**
16
	 * Sets the attributes of the LdapConfig object
17
	 * set the 
17
	 * 
18
	 * @param newAttrs
19
	 *            The new attributes value
20
	 *************************************************************************
18
provider user for jndi
19
	 * 
20
	 * @param url the provider URL
21
*/
21
	 */
22
	public void setAttrs(String newAttrs) {
22
	public void setProviderUrl(String url) {
23
		this.setProperty(ATTRIBS, newAttrs);
23
		setProperty(
24
	}
25
	/*************************************************************************
24
PROVIDER_URL, url);
25
	}
26
**
26
	/**
27
	 * Gets the attributes of the LDAPSampler object
27
	 * method returns the provider url for jndi to connect to
28
	 * 
28
	 * 
29
	 * @return The attributes
29
	 * @return the 
30
	 *************************************************************************
30
provider URL
31
*/
31
	 */
32
	public String getAttrs() {
32
	public String getProviderUrl() {
33
		return getPropertyAsString(ATTRIBS);
33
		return getPropertyAsString(PROVIDER_URL);
34
	
34
	
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