void setUsername(String user) { setProperty(PRINCIPAL, user); } /** * return the username used to login to the jms server * * @return the username used to login to the jms server */ public String getUsername() { return getPropertyAsString(PRINCIPAL); } /** * Set the password to login to the jms server * * @param pwd */ public void setPassword(String pwd) { setProperty(CREDENTIALS, pwd); } /** * return the password used to login to the jms server * * @return the password used to login to the jms server */ public String getPassword() { return getPropertyAsString(CREDENTIALS);
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 setUsername(String user) {
1
void setRootdn(String newRootdn) {
2
		setProperty(PRINCIPAL, user);
2
		this.setProperty(ROOTDN, newRootdn);
3
	}
3
	}
4
	/**
4
	/**
5
	 * return the username used to login to the jms server
5
	 * Gets the 
6
	 * 
7
	 * @return the username used to login to the jms server
6
Rootdn attribute of the LDAPSampler object.
7
	 * 
8
	 * @return the Rootdn value
8
	 */
9
	 */
9
	public String getUsername() {
10
	public String getRootdn() {
10
		return getPropertyAsString(PRINCIPAL);
11
		return getPropertyAsString(ROOTDN);
11
	}
12
	}
12
	/**
13
	/**
13
	 * Set the password to login to the jms server
14
	 * Sets the 
14
	 * 
15
	 * @param pwd
15
Test attribute of the LdapConfig object.
16
	 * 
17
	 * @param newTest
18
	 *            the new test value(Add,Modify,Delete and search)
16
	 */
19
	 */
17
	public void setPassword(String pwd) {
20
	public void setTest(String newTest) {
18
		setProperty(CREDENTIALS, pwd);
21
		this.setProperty(TEST, newTest);
19
	}
22
	}
20
	/**
23
	/**
21
	 * return the password used to login to the jms server
24
	 * Gets the 
22
	 * 
23
	 * @return the password used to login to the jms server
25
test attribute of the LDAPSampler object.
26
	 * 
27
	 * @return the test value (Add, Modify, Delete and search)
24
	 */
28
	 */
25
	public String getPassword() {
29
	public String getTest() {
26
		return getPropertyAsString(CREDENTIALS);
30
		return getPropertyAsString(TEST);
27
	
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