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); } /** * Return the name of the method to test */ public String getMethod(){ return getPropertyAsString(METHOD); } /** * Method should add the JUnit testXXX method to the list at * the end, since the sequence matters. * @param methodName */ public void setMethod(String methodName){ setProperty(METHOD,methodName); } /** * get the success message */ public String getSuccess(){ return getPropertyAsString(SUCCESS);
void setXmlData(String data) { setProperty(XML_DATA, data); } public String getXmlData() { return getPropertyAsString(XML_DATA); } /** * 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); } public String getURLData() { return getPropertyAsString(URL_DATA); } public void setURLData(String url) { setProperty(URL_DATA, url); } public String getSOAPAction() { return getPropertyAsString(SOAP_ACTION);
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/SoapSampler.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
    }
5
    /**
6
     * Gets the Classname attribute of the JavaConfig object
7
     *
8
     * @return  the Classname value
9
     */
10
    public String getClassname()
11
    {
12
        
2
XmlData(String data) {
3
		setProperty(XML_DATA, data);
4
	}
5
	public String getXmlData() {
13
return getPropertyAsString(CLASSNAME);
6
		return getPropertyAsString(
14
    }
15
    
16
    /**
17
     * Set the string label used to create an instance of the
18
     * test with the string constructor
7
XML_DATA);
8
	}
9
    /**
10
     * it's kinda obvious, but we state it anyways. Set the xml file with a
19
.
11
     * string path.
20
     * @param constr
12
     *
13
     * @param filename
21
     */
14
     */
22
    public void setConstructorString(String constr)
15
    public void set
23
    {
24
        setProperty(CONSTRUCTORSTRING,constr
16
XmlFile(String filename) {
25
);
17
        setProperty(XML_DATA_FILE, filename);
26
    }
18
    }
27
    
28
    /**
19
    /**
29
     * get the string passed to the string constructor
20
     * Get the file location of the xml file.
21
     *
22
     * @return String file path.
30
     */
23
     */
31
    public String getConstructorString()
24
    public String get
32
    {
25
XmlFile() {
33
        return getPropertyAsString(CONSTRUCTORSTRING);
26
        return getPropertyAsString(
34
    }
35
    
36
    /**
37
     * Return the name of the method to test
38
     */
39
    
27
XML_DATA_FILE);
28
    }
40
public String getMethod(){
29
	public String getURLData() {
41
        return getPropertyAsString(METHOD);
30
		return getPropertyAsString(
42
    }
43
    /**
44
     * Method should add the JUnit testXXX method to the list at
45
     * the end, since the sequence matters.
46
     * @param methodName
47
     */
48
    
31
URL_DATA);
32
	}
49
public void setMethod(String methodName){
33
	public void setURLData(String 
50
        setProperty(METHOD,methodName);
51
    }
52
    
53
    /**
54
     * get the success message
55
     */
56
    
34
url) {
35
		setProperty(URL_DATA, url);
36
	}
57
public String getSuccess(){
37
	public String getSOAPAction() {
58
        return getPropertyAsString(SUCCESS);
38
		return getPropertyAsString(S
59
    
39
OAP_ACTION);
40
	
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