File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/XMLConfPanel.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/XMLConfPanel.java | |||
Method name: void modifyTestElement(XPathAssertion)
|
Method name: void configure(XPathAssertion)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 8 | |||
1 | assertion.setValidating(isValidate());↵ | |||
2 | assertion.setWhitespace(isWhitespace());↵ | |||
3 | assertion.↵ | 1 | setWhitespace(assertion.isWhitespace());↵ | |
2 | setValidate(assertion.isValidating());↵ | |||
4 | setTolerant(isTolerant());↵ | 3 | setTolerant(assertion.isTolerant());↵ | |
5 | assertion.setNamespace(isNamespace());↵ | 4 | setNamespace(assertion.isNamespace());↵ | |
6 | assertion.setShowWarnings(↵ | 5 | quiet.setSelected(assertion.isQuiet());↵ | |
7 | showWarnings.isSelected());↵ | 6 | showWarnings.setSelected(↵ | |
8 | assertion.setReportErrors(↵ | 7 | assertion.showWarnings());↵ | |
9 | reportErrors.isSelected());↵ | 8 | reportErrors.setSelected(↵ | |
10 | assertion.setQuiet(quiet.isSelected()↵ | 9 | assertion.reportErrors());↵ | |
11 | ); | 10 | tolerant(); | |
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 | 56 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | assertion.setValidating(isValidate()); |
| 2 | setValidate(assertion.isValidating()); | |||||||||||||||||||||||
2 | assertion.setWhitespace(isWhitespace()); |
| 1 | setWhitespace(assertion.isWhitespace()); | |||||||||||||||||||||||
3 | assertion.setTolerant(isTolerant()); |
| 3 | setTolerant(assertion.isTolerant()); | |||||||||||||||||||||||
4 | assertion.setNamespace(isNamespace()); |
| 4 | setNamespace(assertion.isNamespace()); | |||||||||||||||||||||||
| 5 | quiet.setSelected(assertion.isQuiet()); | |||||||||||||||||||||||||
| 6 | showWarnings.setSelected(assertion.showWarnings()); | |||||||||||||||||||||||||
| 7 | reportErrors.setSelected(assertion.reportErrors()); | |||||||||||||||||||||||||
5 | assertion.setShowWarnings(showWarnings.isSelected()); |
| 8 | tolerant(); | |||||||||||||||||||||||
6 | assertion.setReportErrors(reportErrors.isSelected()); | | |||||||||||||||||||||||||
7 | assertion.setQuiet(quiet.isSelected()); | |
Row | Violation |
---|---|
1 | Expression assertion.setValidating(isValidate()) is a void method call, and thus it cannot be parameterized |
2 | Expression setValidate(assertion.isValidating()) is a void method call, and thus it cannot be parameterized |
3 | Expression assertion.setValidating(isValidate()) is a void method call, and thus it cannot be parameterized |
4 | Expression setValidate(assertion.isValidating()) is a void method call, and thus it cannot be parameterized |
5 | Expression assertion.setWhitespace(isWhitespace()) is a void method call, and thus it cannot be parameterized |
6 | Expression setWhitespace(assertion.isWhitespace()) is a void method call, and thus it cannot be parameterized |
7 | Expression isTolerant() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression assertion.setTolerant(isTolerant()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression setTolerant(assertion.isTolerant()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression assertion.setTolerant(isTolerant()) is a void method call, and thus it cannot be parameterized |
11 | Expression setTolerant(assertion.isTolerant()) is a void method call, and thus it cannot be parameterized |
12 | Expression isNamespace() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression assertion.setNamespace(isNamespace()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression setNamespace(assertion.isNamespace()) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression assertion.setNamespace(isNamespace()) is a void method call, and thus it cannot be parameterized |
16 | Expression setNamespace(assertion.isNamespace()) is a void method call, and thus it cannot be parameterized |
17 | Expression tolerant() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
18 | Expression assertion.setShowWarnings(showWarnings.isSelected()) is a void method call, and thus it cannot be parameterized |
19 | Expression tolerant() is a void method call, and thus it cannot be parameterized |
20 | Expression tolerant() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
21 | Expression assertion.setShowWarnings(showWarnings.isSelected()) is a void method call, and thus it cannot be parameterized |
22 | Expression tolerant() is a void method call, and thus it cannot be parameterized |