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 setUseAuth(String auth) { setProperty(USE_AUTH, auth); } /** * return whether jndi requires authentication * * @return whether jndi requires authentication */ public String getUseAuth() { return getPropertyAsString(USE_AUTH); } /** * set whether the sampler should read the response or not * * @param read whether the sampler should read the response or not */ public void setReadResponse(String read) { setProperty(READ_RESPONSE, read); } /** * return whether the sampler should read the response * * @return whether the sampler should read the response */ public String getReadResponse() { return getPropertyAsString(READ_RESPONSE);
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 setUseAuth(String auth) {
2
		this.setProperty(TEST, newTest);
2
		setProperty(
3
	}
4
	/*************************************************************************
3
USE_AUTH, auth);
4
	}
5
**
5
	/**
6
	 * Gets the test attribute of the LDAPSampler object
6
	 * return whether jndi requires authentication
7
	 * 
7
	 * 
8
	 * @return The test value (Add,Modify,Delete and search)
8
	 * @return whe
9
	 *************************************************************************
9
ther jndi requires authentication
10
*/
10
	 */
11
	public String getTest() {
11
	public String getUseAuth() {
12
		return getPropertyAsString(TEST);
12
		return getPropertyAsString(USE_AUTH);
13
	}
13
	}
14
	/***************************************************************************
14
	/**
15
	 * Sets the attributes of the LdapConfig object
15
	 * set
16
	 * 
17
	 * @param newAttrs
18
	 *            The new attributes value
19
	 *************************************************************************
16
 whether the sampler should read the response or not
17
	 * 
18
	 * @param read whether the sampler should read the response or not
20
*/
19
	 */
21
	public void setAttrs(String newAttrs) {
20
	public void setReadResponse(String read) {
22
		this.setProperty(ATTRIBS, newAttrs);
21
		setProperty(
23
	}
24
	/*************************************************************************
22
READ_RESPONSE, read);
23
	}
25
**
24
	/**
26
	 * Gets the attributes of the LDAPSampler object
25
	 * return whether the sampler should read the response
27
	 * 
26
	 * 
28
	 * @return The attributes
27
	 * @return whe
29
	 *************************************************************************
28
ther the sampler should read the response
30
*/
29
	 */
31
	public String getAttrs() {
30
	public String getReadResponse() {
32
		return getPropertyAsString(ATTRIBS);
31
		return getPropertyAsString(READ_RESPONSE);
33
	
32
	
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