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); }
void setRootdn(String newRootdn) { this.setProperty(ROOTDN, newRootdn); } /** * Gets the Rootdn attribute of the LDAPSampler object. * * @return the Rootdn value */ public String getRootdn() { return getPropertyAsString(ROOTDN); } /** * Sets the Test attribute of the LdapConfig object. * * @param newTest * the new test value(Add,Modify,Delete and search) */ public 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); }
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/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setJNDIIntialContextFactory(String icf) {
1
void setRootdn(String newRootdn) {
2
		setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);
2
		this.setProperty(ROOTDN, newRootdn);
3
	}
3
	}
4
	/**
4
	/**
5
	 * method returns the initial context factory for jndi initial context
5
	 * Get
6
	 * lookup.
6
s the Rootdn attribute of the LDAPSampler object.
7
	 * 
7
	 * 
8
	 * @return the initial context factory 
8
	 * @return the Rootdn value
9
	 */
9
	 */
10
	public String getJNDIInitialContextFactory() {
10
	public String getRootdn() {
11
		return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);
11
		return getPropertyAsString(ROOTDN);
12
	}
12
	}
13
	/**
13
	/**
14
	 * set the provider user for jndi
14
	 * Sets the 
15
	 * 
16
	 * @param url the provider URL
15
Test attribute of the LdapConfig object.
16
	 * 
17
	 * @param newTest
18
	 *            the new test value(Add,Modify,Delete and search)
17
	 */
19
	 */
18
	public void setProviderUrl(String url) {
20
	public void setTest(String newTest) {
19
		setProperty(PROVIDER_URL, url);
21
		this.setProperty(TEST, newTest);
20
	}
22
	}
21
	/**
23
	/**
22
	 * method returns the provider url for jndi to connect to
24
	 * Get
23
	 * 
24
	 * @return the provider URL
25
s the test attribute of the LDAPSampler object.
26
	 * 
27
	 * @return the test value (Add, Modify, Delete and search)
25
	 */
28
	 */
26
	public String getProviderUrl() {
29
	public String getTest() {
27
		return getPropertyAsString(PROVIDER_URL);
30
		return getPropertyAsString(TEST);
28
	}
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