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); } /** * get the string passed to the string constructor */ public String getConstructorString() { return getPropertyAsString(CONSTRUCTORSTRING); }
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); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.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
void setClassname(String classname)
1
void set
2
    {
3
        setProperty(CLASSNAME, classname);
4
    
2
XmlPathLoc(String path) {
3
		setProperty(XML_PATH_LOC, path);
5
}
4
	}
6
    /**
5
	/**
7
     * Gets the Classname attribute of the JavaConfig object
6
	 * Get the 
8
     *
9
    
7
path where XML messages are stored. this is the directory where
10
 * @return  the Classname value
8
	 * 
11
    
9
JMeter will randomly select a file.
12
 */
10
	 */
13
    public String getClassname()
11
	public String get
14
    {
15
        return getPropertyAsString(CLASSNAME);
16
    }
17
    
18
    /**
19
     * Set the string label used to create an instance of the
20
     * test with the string constructor.
21
     * @param constr
22
    
12
XmlPathLoc() {
13
		return getPropertyAsString(XML_PATH_LOC);
14
	}
15
	/**
16
	 * it's kinda obvious, but we state it anyways. Set the xml file with a
17
	 * string path.
18
	 * 
19
	 * @param filename
23
 */
20
	 */
24
    public void setConstructorString(String constr)
21
	public void set
25
    {
26
        setProperty(CONSTRUCTORSTRING,constr);
27
    }
28
    
29
    
22
XmlFile(String filename) {
23
		setProperty(XML_DATA_FILE, filename);
24
	}
30
/**
25
	/**
31
     * get the string passed to the string constructor
26
	 * Get the 
32
    
27
file location of the xml file.
28
	 * 
29
	 * @return String file path.
33
 */
30
	 */
34
    public String getConstructorString()
31
	public String get
35
    {
36
        
32
XmlFile() {
37
return getPropertyAsString(CONSTRUCTORSTRING);
33
		return getPropertyAsString(
38
    
34
XML_DATA_FILE);
39
}
35
	}
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