public TestElement createTestElement() { SubscriberSampler sampler = new SubscriberSampler(); this.configureTestElement(sampler); sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected())); sampler.setJNDIIntialContextFactory(jndiICF.getText()); sampler.setProviderUrl(urlField.getText()); sampler.setConnectionFactory(jndiConnFac.getText()); sampler.setTopic(jmsTopic.getText()); sampler.setUsername(jmsUser.getText()); sampler.setPassword(jmsPwd.getText()); sampler.setUseAuth(reqAuth.getText()); sampler.setIterations(iterations.getText()); sampler.setReadResponse(String.valueOf(readResponse.isSelected())); sampler.setClientChoice(clientChoice.getText()); return sampler;
public void configure(TestElement element) { super.configure(element); LineChart bc = (LineChart)element; xItems.setText(bc.getXAxis()); yItems.setText(bc.getYAxis()); xAxisLabel.setText(bc.getXLabel()); yAxisLabel.setText(bc.getYLabel()); caption.setText(bc.getCaption()); urls.setText(bc.getURLs());
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/LineGraphGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public TestElement createTestElement() {
1
public void configure(TestElement element) {
2
		SubscriberSampler sampler = new SubscriberSampler();
3
		this.configureTestElement(sampler);
2
        super.configure(element
4
		sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected()));
5
		sampler.setJNDIIntialContextFactory(jndiICF.getText());
6
		sampler.setProviderUrl(urlField.getText());
7
		sampler.setConnectionFactory(jndiConnFac.getText());
8
		sampler.setTopic(jmsTopic.getText());
9
		sampler.setUsername(jmsUser.getText());
10
		sampler.setPassword(jmsPwd.getText());
11
		sampler.setUseAuth(reqAuth.getText());
12
		sampler.setIterations(iterations.getText());
13
		sampler.setReadResponse(String.valueOf(readResponse.isSelected
3
);
4
        LineChart bc = (LineChart)element;
5
        xItems.setText(bc.getXAxis());
6
        yItems.setText(bc.getYAxis());
7
        xAxisLabel.setText(bc.getXLabel());
8
        yAxisLabel.setText(bc.getYLabel());
14
()));
9
        caption.setText(bc.getCaption());
15
		sampler.setClientChoice(clientChoice.getText());
16
		return sampler;
17
	
10
        urls.setText(bc.getURLs());
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