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 configure(TestElement element) { super.configure(element); ReportPage page = (ReportPage)element; cssURL.setText(page.getCSS()); footerURL.setText(page.getFooterURL()); headerURL.setText(page.getHeaderURL()); makeIndex.setSelected(page.getIndex()); introduction.setText(page.getIntroduction()); pageTitle.setText(page.getTitle());
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/report/gui/ReportPageGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void configure(TestElement el) {
1
public void configure(TestElement el
2
		super.configure(el);
3
		SubscriberSampler sampler = (SubscriberSampler) el;
4
		useProperties.setSelected(sampler.getUseJNDIPropertiesAsBoolean());
5
		jndiICF.setText(sampler.getJNDIInitialContextFactory());
6
		urlField.setText(sampler.getProviderUrl());
7
		jndiConnFac
2
ement) {
3
        super.configure(element);
4
        ReportPage page = (ReportPage)element;
5
        cssURL.setText(page.getCSS());
8
.setText(sampler.getConnectionFactory());
6
        footerURL.setText(
9
		jmsTopic.setText(sampler.getTopic());
10
		jmsUser
7
page.getFooterURL());
11
.setText(sampler.getUsername());
8
        headerURL.setText(
12
		jmsPwd.setText(sampler.getPassword());
13
		itera
9
page.getHeaderURL());
10
        makeIndex.setSelected(page.getIndex());
14
tions.setText(sampler.getIterations());
11
        introduction.setText(page.getIntroduction());
15
		reqAuth.setText(sampler.getUseAuth());
16
		readResponse.setSelected(sampler.getReadResponseAsBoolean());
17
		clientChoice.setText(sampler.getClientChoice());
12
        pageTitle.setText(page.getTitle());
18
	
13
    
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