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); }
String getXmlPathLoc() { return getPropertyAsString(XML_PATH_LOC); } /** * it's kinda obvious, but we state it anyways. Set the xml file with a * string path. * * @param filename */ public void setXmlFile(String filename) { setProperty(XML_DATA_FILE, filename); } /** * Get the file location of the xml file. * * @return String file path. */ public String getXmlFile() { return getPropertyAsString(XML_DATA_FILE); }
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/http/sampler/WebServiceSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getUseAuth() {
1
String getXmlPathLoc() {
2
		return getPropertyAsString(USE_AUTH);
2
		return getPropertyAsString(XML_PATH_LOC);
3
	}
3
	}
4
	/**
4
	/**
5
	 * set whether the sampler should read the response or not
5
	 * 
6
	 * 
7
	 * @param read whether the sampler should read the response or not
6
it's kinda obvious, but we state it anyways. Set the xml file with a
7
	 * string path.
8
	 * 
9
	 * @param filename
8
	 */
10
	 */
9
	public void setReadResponse(String read) {
11
	public void setXmlFile(String filename) {
10
		setProperty(READ_RESPONSE, read);
12
		setProperty(XML_DATA_FILE, filename);
11
	}
13
	}
12
	/**
14
	/**
13
	 * return whether the sampler should read the response
15
	 * Get
14
	 * 
15
	 * @return whether the sampler should read the response
16
 the file location of the xml file.
17
	 * 
18
	 * @return String file path.
16
	 */
19
	 */
17
	public String getReadResponse() {
20
	public String getXmlFile() {
18
		return getPropertyAsString(READ_RESPONSE);
21
		return getPropertyAsString(XML_DATA_FILE);
19
	}
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