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