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); }
void setInputFile(String file) { setProperty(INPUT_FILE, file); } /** * return the path of the input file * */ public String getInputFile() { return getPropertyAsString(INPUT_FILE); } /** * set the random path for the messages * * @param path */ public void setRandomPath(String path) { setProperty(RANDOM_PATH, path); }
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 setInputFile(String file) {
2
		this.setProperty(TEST, newTest);
2
		setProperty(
3
	}
4
	/*************************************************************************
3
INPUT_FILE, file);
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
path of the input file
8
	 * 
10
*/
9
	 */
11
	public String getTest() {
10
	public String getInputFile() {
12
		return getPropertyAsString(TEST);
11
		return getPropertyAsString(INPUT_FILE);
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
random path for the messages
16
	 * 
17
	 * @param path
20
*/
18
	 */
21
	public void setAttrs(String newAttrs) {
19
	public void setRandomPath(String path) {
22
		this.setProperty(ATTRIBS, newAttrs);
20
		setProperty(RANDOM_PATH, path);
23
	}
21
	}
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