File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/assertions/PackageTest.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/visualizers/SplineVisualizer.java | |||
Method name: void assertFailed()
|
Method name: void updateGui()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 5 | |||
1 | assertNotNull("Failure nessage should not be null",result.getFailureMessage());↵ | |||
2 | //System.out.println(result.getFailureMessage↵ | 1 | synchronized (this) {↵ | |
3 | ());↵ | 2 | setMinimum(model.getMinimum());↵ | |
4 | assertFalse("Should not be: Response was null","Response was null".equals(result.getFailureMessage()));↵ | 3 | ↵ | |
5 | assertFalse(result.isError↵ | 4 | setMaximum(model.getMaximum());↵ | |
6 | ());↵ | 5 | setAverage(model.getAverage());↵ | |
7 | assertTrue(result.isFailure()); | 6 | setIncoming(model.getCurrent());↵ | |
7 |
| |||
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 in different classes |
Number of node comparisons | 16 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | assertNotNull("Failure nessage should not be null", result.getFailureMessage()); |
| 3 | setMinimum(model.getMinimum()); | |||||||||||||||||
2 | assertFalse("Should not be: Response was null", "Response was null".equals(result.getFailureMessage())); |
| 4 | setMaximum(model.getMaximum()); | |||||||||||||||||
3 | assertFalse(result.isError()); | | |||||||||||||||||||
4 | assertTrue(result.isFailure()); | |
Row | Violation |
---|---|
1 | Expression assertNotNull("Failure nessage should not be null",result.getFailureMessage()) is a void method call, and thus it cannot be parameterized |
2 | Expression setMinimum(model.getMinimum()) is a void method call, and thus it cannot be parameterized |
3 | Expression assertNotNull("Failure nessage should not be null",result.getFailureMessage()) is a void method call, and thus it cannot be parameterized |
4 | Expression setMinimum(model.getMinimum()) is a void method call, and thus it cannot be parameterized |
5 | Expression assertFalse("Should not be: Response was null","Response was null".equals(result.getFailureMessage())) is a void method call, and thus it cannot be parameterized |
6 | Expression setMaximum(model.getMaximum()) is a void method call, and thus it cannot be parameterized |
7 | Expression assertFalse("Should not be: Response was null","Response was null".equals(result.getFailureMessage())) is a void method call, and thus it cannot be parameterized |
8 | Expression setMaximum(model.getMaximum()) is a void method call, and thus it cannot be parameterized |