String getTest() { return getPropertyAsString(TEST); } /** * Sets the UserDefinedTest attribute of the LDAPSampler object. * * @param value * the new UserDefinedTest value */ public void setUserDefinedTest(boolean value) { setProperty(new BooleanProperty(USER_DEFINED, value)); } /** * Gets the UserDefinedTest attribute of the LDAPSampler object. * * @return the test value true or false. If true it will do the * UserDefinedTest else our own inbuild test case. */ public boolean getUserDefinedTest() { return getPropertyAsBoolean(USER_DEFINED);
String getNumMessagesString() { return getPropertyAsString(NUM_MESSAGES); } /** * @param delete - * Whether or not to delete the read messages from the folder. */ public void setDeleteMessages(boolean delete) { setProperty(new BooleanProperty(DELETE, delete)); } /** * @return Whether or not to delete the read messages from the folder. */ public boolean getDeleteMessages() { return getPropertyAsBoolean(DELETE);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getTest() {
1
String getNumMessagesString() {
2
		return getPropertyAsString(TEST);
2
		return getPropertyAsString(NUM_MESSAGES);
3
	}
3
	}
4
	/**
4
	/**
5
	 * Sets the UserDefinedTest attribute of the LDAPSampler object.
5
	 * 
6
	 * 
7
	 * @param value
8
	 *            the new UserDefinedTest value
6
@param delete -
7
	 *            Whether or not to delete the read messages from the folder.
9
	 */
8
	 */
10
	public void setUserDefinedTest(boolean value) {
9
	public void setDeleteMessages(boolean delete) {
11
		setProperty(new BooleanProperty(USER_DEFINED, value));
10
		setProperty(new BooleanProperty(DELETE, delete));
12
	}
11
	}
13
	/**
12
	/**
14
	 * Gets the UserDefinedTest attribute of the LDAPSampler object.
13
	 * 
15
	 * 
16
	 * @return the test value true or false. If true it will do the
17
	 *         UserDefinedTest else our own inbuild test case.
14
@return Whether or not to delete the read messages from the folder.
18
	 */
15
	 */
19
	public boolean getUserDefinedTest() {
16
	public boolean getDeleteMessages() {
20
		return getPropertyAsBoolean(USER_DEFINED);
17
		return getPropertyAsBoolean(DELETE);
21
	
18
	
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