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 setRandomPath(String path) { setProperty(RANDOM_PATH, path); } /** * return the random path for messages * */ public String getRandomPath() { return getPropertyAsString(RANDOM_PATH); } /** * set the text for the message * * @param message */ public void setTextMessage(String message) { setProperty(TEXT_MSG, message); } /** * return the text for the message * */ public String getTextMessage() { return getPropertyAsString(TEXT_MSG); }
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/PublisherSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setTest(String newTest) {
1
void setRandomPath(String path) {
2
		this.setProperty(TEST, newTest);
2
		setProperty(
3
	}
4
	/*************************************************************************
3
RANDOM_PATH, path);
4
	}
5
**
5
	/**
6
	 * Gets the test attribute of the LDAPSampler object
6
	 * return the 
7
	 * 
8
	 * @return The test value (Add,Modify,Delete and search)
9
	 *************************************************************************
7
random path for messages
8
	 * 
10
*/
9
	 */
11
	public String getTest() {
10
	public String getRandomPath() {
12
		return getPropertyAsString(TEST);
11
		return getPropertyAsString(RANDOM_PATH);
13
	}
12
	}
14
	/***************************************************************************
13
	/**
15
	 * Sets the attributes of the LdapConfig object
14
	 * set the 
16
	 * 
17
	 * @param newAttrs
18
	 *            The new attributes value
19
	 *************************************************************************
15
text for the message
16
	 * 
17
	 * @param message
20
*/
18
	 */
21
	public void setAttrs(String newAttrs) {
19
	public void setTextMessage(String message) {
22
		this.setProperty(ATTRIBS, newAttrs);
20
		setProperty(
23
	}
24
	/*************************************************************************
21
TEXT_MSG, message);
22
	}
25
**
23
	/**
26
	 * Gets the attributes of the LDAPSampler object
24
	 * return the 
27
	 * 
28
	 * @return The attributes
29
	 *************************************************************************
25
text for the message
26
	 * 
30
*/
27
	 */
31
	public String getAttrs() {
28
	public String getTextMessage() {
32
		return getPropertyAsString(ATTRIBS);
29
		return getPropertyAsString(TEXT_MSG);
33
	}
30
	}
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