File path: /jfreechart-1.0.10/tests/org/jfree/chart/axis/junit/LogarithmicAxisTests.java | File path: /jfreechart-1.0.10/tests/org/jfree/chart/axis/junit/LogarithmicAxisTests.java | |||
Method name: void checkPointsToJava2D(RectangleEdge, Rectangle2D)
|
Method name: void checkPointsToValue(RectangleEdge, Rectangle2D)
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | assertEquals("Center point on the axis should geometric mean of the bounds.", ↵ | 1 | assertEquals("Center point on the axis should geometric mean of the "↵ | |
2 | plotArea.getX() + (plotArea.getWidth() / 2), ↵ | 2 | + "bounds.", Math.sqrt(this.axis.getUpperBound() ↵ | |
3 | this.axis.valueToJava2D(Math.sqrt(this.axis.getLowerBound() ↵ | 3 | * this.axis.↵ | |
4 | * this.axis.getUpperBound()↵ | 4 | getLowerBound()), this.axis.java2DToValue(↵ | |
5 | ), plotArea, edge), ↵ | 5 | plotArea.getX() + (plotArea.getWidth() / 2), plotArea, edge), ↵ | |
6 | EPSILON); | 6 | EPSILON); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
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 | 1 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | assertEquals("Center point on the axis should geometric mean of the bounds.", plotArea.getX() + (plotArea.getWidth() / 2), this.axis.valueToJava2D(Math.sqrt(this.axis.getLowerBound() * this.axis.getUpperBound()), plotArea, edge), EPSILON); |
| 3 | assertEquals("Center point on the axis should geometric mean of the " + "bounds.", Math.sqrt(this.axis.getUpperBound() * this.axis.getLowerBound()), this.axis.java2DToValue(plotArea.getX() + (plotArea.getWidth() / 2), plotArea, edge), EPSILON); |
Row | Violation |
---|