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 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); } /** * set the number of iterations the sampler should aggregate * * @param count */ public void setIterations(String count) { setProperty(ITERATIONS, count); } /** * get the iterations as string * * @return the number of iterations */ public String getIterations() { return getPropertyAsString(ITERATIONS); }
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 setPassword(String pwd) {
2
		this.setProperty(TEST, newTest);
2
		setProperty(
3
	}
4
	/*************************************************************************
3
CREDENTIALS, pwd);
4
	}
5
**
5
	/**
6
	 * Gets the test attribute of the LDAPSampler object
6
	 * return the password used to login to the jms server
7
	 * 
7
	 * 
8
	 * @return The test value (Add,Modify,Delete and search)
8
	 * @return the 
9
	 *************************************************************************
9
password used to login to the jms server
10
*/
10
	 */
11
	public String getTest() {
11
	public String getPassword() {
12
		return getPropertyAsString(TEST);
12
		return getPropertyAsString(CREDENTIALS);
13
	}
13
	}
14
	/***************************************************************************
14
	/**
15
	 * Sets the attributes of the LdapConfig object
15
	 * set the 
16
	 * 
17
	 * @param newAttrs
18
	 *            The new attributes value
19
	 *************************************************************************
16
number of iterations the sampler should aggregate
17
	 * 
18
	 * @param count
20
*/
19
	 */
21
	public void setAttrs(String newAttrs) {
20
	public void setIterations(String count) {
22
		this.setProperty(ATTRIBS, newAttrs);
21
		setProperty(
23
	}
24
	/*************************************************************************
22
ITERATIONS, count);
23
	}
25
**
24
	/**
26
	 * Gets the attributes of the LDAPSampler object
25
	 * get the iterations as string
27
	 * 
26
	 * 
28
	 * @return The attributes
27
	 * @return the 
29
	 *************************************************************************
28
number of iterations
30
*/
29
	 */
31
	public String getAttrs() {
30
	public String getIterations() {
32
		return getPropertyAsString(ATTRIBS);
31
		return getPropertyAsString(ITERATIONS);
33
	}
32
	}
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