public void configure(TestElement el) { super.configure(el); SubscriberSampler sampler = (SubscriberSampler) el; useProperties.setSelected(sampler.getUseJNDIPropertiesAsBoolean()); jndiICF.setText(sampler.getJNDIInitialContextFactory()); urlField.setText(sampler.getProviderUrl()); jndiConnFac.setText(sampler.getConnectionFactory()); jmsTopic.setText(sampler.getTopic()); jmsUser.setText(sampler.getUsername()); jmsPwd.setText(sampler.getPassword()); iterations.setText(sampler.getIterations()); reqAuth.setText(sampler.getUseAuth()); readResponse.setSelected(sampler.getReadResponseAsBoolean()); clientChoice.setText(sampler.getClientChoice());
public void modifyTestElement(TestElement s) { this.configureTestElement(s); if (s instanceof SoapSampler) { SoapSampler sampler = (SoapSampler) s; sampler.setURLData(urlField.getText()); sampler.setXmlData(soapXml.getText()); sampler.setXmlFile(soapXmlFile.getFilename()); sampler.setSOAPAction(soapAction.getText()); sampler.setSendSOAPAction(sendSoapAction.isSelected()); sampler.setUseKeepAlive(useKeepAlive.isSelected()); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/control/gui/JMSSubscriberGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/gui/SoapSamplerGui.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 s) {
2
		super.configure(el);
2
		this.configure
3
		SubscriberSampler sampler = (Subscriber
3
TestElement(s);
4
Sampler) el;
4
		if (s instanceof SoapSampler) {
5
		useProperties.setSelected(sampler.getUseJNDIPropertiesAsBoolean());
5
		
6
		jndiICF.setText(
6
	SoapSampler sampler = (SoapSampler) s;
7
sampler.getJNDIInitialContextFactory());
7
			sampler.set
8
		urlField.setText(sampler.getProviderUrl());
8
URLData(urlField.getText(
9
		jndiConnFac.setText(sampler.getConnectionFactory());
10
		jmsTopic.setText(sampler.getTopic());
11
		jmsUser.setText(samp
9
));
10
			sampler.setXmlData(soapXml.getText());
12
ler.getUsername());
11
            sampler.setXmlFile(soapXmlFile.getFilename());
13
		jmsPwd.setText(sampler.getPassword());
12
			sampler.set
14
		iterations.setText(sampler.getIterations());
15
		reqAuth.setText(
13
SOAPAction(soapAction.getText());
16
sampler.getUseAuth());
14
			sampler.set
17
		readResponse.setSelected(
15
SendSOAPAction(sendSoapAction.isSelected());
18
sampler.getReadResponseAsBoolean());
16
			sampler.set
19
		clientChoice.setText(sampler.getClientChoice());
17
UseKeepAlive(useKeepAlive.isSelected());
20
	
18
		}
19
	
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