public void configure(TestElement el) { super.configure(el); SoapSampler sampler = (SoapSampler) el; urlField.setText(sampler.getURLData()); sendSoapAction.setSelected(sampler.getSendSOAPAction()); soapAction.setText(sampler.getSOAPAction()); soapXml.setText(sampler.getXmlData()); soapXmlFile.setFilename(sampler.getXmlFile()); useKeepAlive.setSelected(sampler.getUseKeepAlive());
public void modifyTestElement(TestElement element) { this.configureTestElement(element); BarChart bc = (BarChart)element; bc.setXAxis(xItems.getText()); bc.setYAxis(yItems.getText()); bc.setXLabel(xAxisLabel.getText()); bc.setYLabel(yAxisLabel.getText()); bc.setCaption(caption.getText()); bc.setURL(url.getText());
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/gui/SoapSamplerGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/BarChartGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void configure(TestElement el) {
1
public void modifyTestElement(TestElement element) {
2
		super.configure(el);
2
		this.configure
3
		SoapSampler sampler = (SoapSampler) el;
4
		urlField.setText(sampler.getURLData());
5
		sendSoapAction.setSelected(sampler.getSendSOAPAction());
6
		soapAction.setText(sampler.getSOAPAction());
7
		soapXml.setText(sampler.getXmlData());
8
        soapXmlFile.setFilename(sampler.getXmlFile());
9
        useKeepAlive.setSelected(sampler.getUseKeepAlive
3
TestElement(element);
4
		BarChart bc = (BarChart)element;
5
		bc.setXAxis(xItems.getText());
6
		bc.setYAxis(yItems.getText());
7
		bc.setXLabel(xAxisLabel.getText());
8
		bc.setYLabel(yAxisLabel.getText());
9
        bc.setCaption(caption.getText());
10
());
10
        bc.setURL(url.getText());
11
	
11
	
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