void setXmlPathLoc(String path) { setProperty(XML_PATH_LOC, path); } /** * Get the path where XML messages are stored. this is the directory where * JMeter will randomly select a file. */ public 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);
void setJNDIIntialContextFactory(String icf) { setProperty(JNDI_INITIAL_CONTEXT_FAC, icf); } /** * method returns the initial context factory for jndi initial context * lookup. * * @return the initial context factory */ public String getJNDIInitialContextFactory() { return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC); } /** * set the provider user for jndi * * @param url the provider URL */ public void setProviderUrl(String url) { setProperty(PROVIDER_URL, url); } /** * method returns the provider url for jndi to connect to * * @return the provider URL */ public String getProviderUrl() { return getPropertyAsString(PROVIDER_URL);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/WebServiceSampler.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 setXmlPathLoc(String path) {
1
void setJNDIIntialContextFactory(String icf) {
2
		setProperty(XML_PATH_LOC, path);
2
		setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);
3
	}
3
	}
4
	/**
4
	/**
5
	 * Get the path where XML messages are stored. this is the directory where
5
	 * met
6
	 * JMeter will randomly select a file.
6
hod returns the initial context factory for jndi initial context
7
	 * lookup.
8
	 * 
9
	 * @return the initial context factory 
7
	 */
10
	 */
8
	public String getXmlPathLoc() {
11
	public String getJNDIInitialContextFactory() {
9
		return getPropertyAsString(XML_PATH_LOC);
12
		return getPropertyAsString(
10
	}
11
	/**
12
	 * it's kinda obvious, but we state it anyways. Set the xml file with a
13
	 * string path.
14
	 * 
15
	 * @param filename
13
JNDI_INITIAL_CONTEXT_FAC);
14
	}
15
	/**
16
	 * set the provider user for jndi
17
	 * 
18
	 * @param url the provider URL
16
	 */
19
	 */
17
	public void setXmlFile(String filename) {
20
	public void set
18
		setProperty(XML_DATA_FILE, filename
21
ProviderUrl(String url) {
19
);
22
		setProperty(PROVIDER_URL, url);
20
	}
23
	}
21
	/**
24
	/**
22
	 * Get the file location of the xml file.
25
	 * method returns the provider url for jndi to connect to
23
	 * 
26
	 * 
24
	 * @return String file path.
27
	 * @return the provider URL
25
	 */
28
	 */
26
	public String getXmlFile() {
29
	public String getProviderUrl() {
27
		return getPropertyAsString(XML_DATA_FILE);
30
		return getPropertyAsString(PROVIDER_URL);
28
	
31
	
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