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);
void setClassname(String classname) { setProperty(CLASSNAME, classname); } /** * Gets the Classname attribute of the JavaConfig object * * @return the Classname value */ public String getClassname() { return getPropertyAsString(CLASSNAME); } /** * Set the string label used to create an instance of the * test with the string constructor. * @param constr */ public void setConstructorString(String constr) { setProperty(CONSTRUCTORSTRING,constr);
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/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setXmlPathLoc(String path) {
1
void set
2
		setProperty(XML_PATH_LOC, path);
3
	
2
Classname(String classname)
3
    {
4
        setProperty(CLASSNAME, classname);
4
}
5
    }
5
	/**
6
    /**
6
	 * Get the path where XML messages are stored. this is the directory where
7
     * Gets the 
7
	 * JMeter will randomly select a file.
8
	
8
Classname attribute of the JavaConfig object
9
     *
10
     * @return  the Classname value
9
 */
11
     */
10
	public String getXmlPathLoc() {
12
    public String get
11
		return getPropertyAsString(XML_PATH_LOC);
12
	}
13
	
13
Classname()
14
    {
15
        return getPropertyAsString(CLASSNAME);
16
    }
17
    
14
/**
18
    /**
15
	 * it's kinda obvious, but we state it anyways. Set the xml file with a
16
	 * string path.
17
	 * 
18
	 * @param filename
19
	
19
     * Set the string label used to create an instance of the
20
     * test with the string constructor.
21
     * @param constr
20
 */
22
     */
21
	public void setXmlFile(String filename) {
23
    public void set
22
		setProperty(XML_DATA_FILE, filename);
23
	
24
ConstructorString(String constr)
25
    {
26
        setProperty(CONSTRUCTORSTRING,constr);
27
    
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