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); }
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); }
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/LDAPExtSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setJNDIIntialContextFactory(String icf) {
1
void setTest(String newTest) {
2
		setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);
2
		this.setProperty(
3
	}
4
	/**
5
	 * method returns the initial con
3
TEST, newTest);
4
	}
5
	/***************************************************************************
6
text factory for jndi initial context
6
	 * Gets the test 
7
	 * lookup.
7
attribute of the LDAPSampler object
8
	 * 
8
	 * 
9
	 * @return the initial context factory 
9
	 * @return The 
10
	 */
11
	public String getJNDIInitialContextFactory
10
test value (Add,Modify,Delete and search)
11
	 **************************************************************************/
12
() {
12
	public String getTest() {
13
		return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);
13
		return getPropertyAsString(
14
	}
15
	/
14
TEST);
15
	}
16
**
16
	/***************************************************************************
17
	 * set the provider user for jndi
17
	 * Sets the 
18
	 * 
19
	 * @param url the provider URL
20
	 
18
attributes of the LdapConfig object
19
	 * 
20
	 * @param newAttrs
21
	 *            The new attributes value
21
*/
22
	 **************************************************************************/
22
	public void setProviderUrl(String url) {
23
	public void setAttrs(String newAttrs) {
23
		setProperty(PROVIDER_URL, url);
24
		this.setProperty(ATTRIBS, newAttrs);
24
	}
25
	}
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