File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/control/gui/JMSPublisherGui.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/control/gui/JMSPublisherGui.java | |||
Method name: TestElement createTestElement()
|
Method name: void modifyTestElement(TestElement)
|
|||
Number of AST nodes: 17 | Number of AST nodes: 16 | |||
1 | PublisherSampler sampler = new PublisherSampler();↵ | 1 | PublisherSampler sampler = (PublisherSampler) s;↵ | |
2 | this.configureTestElement(sampler);↵ | 2 | this.configureTestElement(sampler);↵ | |
3 | sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected()));↵ | 3 | sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected()));↵ | |
4 | sampler.setJNDIIntialContextFactory(jndiICF.getText());↵ | 4 | sampler.setJNDIIntialContextFactory(jndiICF.getText());↵ | |
5 | sampler.setProviderUrl(urlField.getText());↵ | 5 | sampler.setProviderUrl(urlField.getText());↵ | |
6 | sampler.setConnectionFactory(jndiConnFac.getText());↵ | 6 | sampler.setConnectionFactory(jndiConnFac.getText());↵ | |
7 | sampler.setTopic(jmsTopic.getText());↵ | 7 | sampler.setTopic(jmsTopic.getText());↵ | |
8 | sampler.setUsername(jmsUser.getText());↵ | 8 | sampler.setUsername(jmsUser.getText());↵ | |
9 | sampler.setPassword(jmsPwd.getText());↵ | 9 | sampler.setPassword(jmsPwd.getText());↵ | |
10 | sampler.setTextMessage(textMessage.getText());↵ | 10 | sampler.setTextMessage(textMessage.getText());↵ | |
11 | sampler.setInputFile(messageFile.getFilename());↵ | 11 | sampler.setInputFile(messageFile.getFilename());↵ | |
12 | sampler.setRandomPath(randomFile.getFilename());↵ | 12 | sampler.setRandomPath(randomFile.getFilename());↵ | |
13 | sampler.setConfigChoice(configChoice.getText());↵ | 13 | sampler.setConfigChoice(configChoice.getText());↵ | |
14 | sampler.setMessageChoice(msgChoice.getText());↵ | 14 | sampler.setMessageChoice(msgChoice.getText());↵ | |
15 | sampler.setIterations(iterations.getText());↵ | 15 | sampler.setIterations(iterations.getText());↵ | |
16 | sampler.setUseAuth(reqAuth.getText());↵ | 16 |
| |
17 | return sampler; | |||
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 272 |
Number of mapped statements | 16 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | PublisherSampler sampler = new PublisherSampler(); |
| 1 | PublisherSampler sampler = (PublisherSampler)s; | ||||||||||
2 | this.configureTestElement(sampler); | 2 | this.configureTestElement(sampler); | |||||||||||
3 | sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected())); | 3 | sampler.setUseJNDIProperties(String.valueOf(useProperties.isSelected())); | |||||||||||
4 | sampler.setJNDIIntialContextFactory(jndiICF.getText()); | 4 | sampler.setJNDIIntialContextFactory(jndiICF.getText()); | |||||||||||
5 | sampler.setProviderUrl(urlField.getText()); | 5 | sampler.setProviderUrl(urlField.getText()); | |||||||||||
6 | sampler.setConnectionFactory(jndiConnFac.getText()); | 6 | sampler.setConnectionFactory(jndiConnFac.getText()); | |||||||||||
7 | sampler.setTopic(jmsTopic.getText()); | 7 | sampler.setTopic(jmsTopic.getText()); | |||||||||||
8 | sampler.setUsername(jmsUser.getText()); | 8 | sampler.setUsername(jmsUser.getText()); | |||||||||||
9 | sampler.setPassword(jmsPwd.getText()); | 9 | sampler.setPassword(jmsPwd.getText()); | |||||||||||
10 | sampler.setTextMessage(textMessage.getText()); | 10 | sampler.setTextMessage(textMessage.getText()); | |||||||||||
11 | sampler.setInputFile(messageFile.getFilename()); | 11 | sampler.setInputFile(messageFile.getFilename()); | |||||||||||
12 | sampler.setRandomPath(randomFile.getFilename()); | 12 | sampler.setRandomPath(randomFile.getFilename()); | |||||||||||
13 | sampler.setConfigChoice(configChoice.getText()); | 13 | sampler.setConfigChoice(configChoice.getText()); | |||||||||||
14 | sampler.setMessageChoice(msgChoice.getText()); | 14 | sampler.setMessageChoice(msgChoice.getText()); | |||||||||||
15 | sampler.setIterations(iterations.getText()); | 15 | sampler.setIterations(iterations.getText()); | |||||||||||
16 | sampler.setUseAuth(reqAuth.getText()); | 16 | sampler.setUseAuth(reqAuth.getText()); | |||||||||||
17 | return sampler; | |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables sampler , while Clone fragment #2 returns variables |