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 setTopic(String topic) { setProperty(TOPIC, topic); } /** * return the topic used for the benchmark * * @return the topic */ public String getTopic() { return getPropertyAsString(TOPIC); } /** * set the username to login into the jms server if needed * * @param user */ public 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); }
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 setTopic(String topic) {
2
		this.setProperty(TEST, newTest);
2
		setProperty(TOPIC, topic);
3
	}
3
	}
4
	/***************************************************************************
4
	/**
5
	 * Gets the test attribute of the LDAPSampler object
5
	 * return the topic used for the benchmark
6
	 * 
6
	 * 
7
	 * @return The test value (Add,Modify,Delete and search)
7
	 * @return the t
8
	 *************************************************************************
8
opic
9
*/
9
	 */
10
	public String getTest() {
10
	public String getTopic() {
11
		return getPropertyAsString(TEST);
11
		return getPropertyAsString(TOPIC);
12
	}
12
	}
13
	/***************************************************************************
13
	/**
14
	 * Sets the attributes of the LdapConfig object
14
	 * set the 
15
	 * 
16
	 * @param newAttrs
17
	 *            The new attributes value
18
	 *************************************************************************
15
username to login into the jms server if needed
16
	 * 
17
	 * @param user
19
*/
18
	 */
20
	public void setAttrs(String newAttrs) {
19
	public void setUsername(String user) {
21
		this.setProperty(ATTRIBS, newAttrs);
20
		setProperty(
22
	}
23
	/*************************************************************************
21
PRINCIPAL, user);
22
	}
24
**
23
	/**
25
	 * Gets the attributes of the LDAPSampler object
24
	 * return the username used to login to the jms server
26
	 * 
25
	 * 
27
	 * @return The attributes
26
	 * @return the 
28
	 *************************************************************************
27
username used to login to the jms server
29
*/
28
	 */
30
	public String getAttrs() {
29
	public String getUsername() {
31
		return getPropertyAsString(ATTRIBS);
30
		return getPropertyAsString(PRINCIPAL);
32
	}
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