File path: /jfreechart-1.0.10/tests/org/jfree/chart/axis/junit/LogAxisTests.java | File path: /jfreechart-1.0.10/tests/org/jfree/chart/axis/junit/NumberAxisTests.java | |||
Method name: void testSetLowerBound()
|
Method name: void testSetLowerBound()
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | LogAxis axis = new LogAxis("X");↵ | 1 | NumberAxis axis = new NumberAxis("X");↵ | |
2 | axis.setRange(0.0, 10.0);↵ | 2 | axis.setRange(0.0, 10.0);↵ | |
3 | axis.setLowerBound(5.0);↵ | 3 | axis.setLowerBound(5.0);↵ | |
4 | assertEquals(5.0, axis.getLowerBound(), EPSILON);↵ | 4 | assertEquals(5.0, axis.getLowerBound(), EPSILON);↵ | |
5 | axis.setLowerBound(10.0);↵ | 5 | axis.setLowerBound(10.0);↵ | |
6 | assertEquals(10.0, axis.getLowerBound(), EPSILON);↵ | 6 | assertEquals(10.0, axis.getLowerBound(), EPSILON);↵ | |
7 | assertEquals(11.0, axis.getUpperBound(), EPSILON); | 7 |
| |
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 in different classes having the same super class |
Number of node comparisons | 25 |
Number of mapped statements | 7 |
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 | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | LogAxis axis = new LogAxis("X"); |
| 1 | NumberAxis axis = new NumberAxis("X"); | ||||||||||||||||||
2 | axis.setRange(0.0, 10.0); |
| 2 | axis.setRange(0.0, 10.0); | ||||||||||||||||||
3 | axis.setLowerBound(5.0); |
| 3 | axis.setLowerBound(5.0); | ||||||||||||||||||
4 | assertEquals(5.0, axis.getLowerBound(), EPSILON); |
| 4 | assertEquals(5.0, axis.getLowerBound(), EPSILON); | ||||||||||||||||||
5 | axis.setLowerBound(10.0); |
| 5 | axis.setLowerBound(10.0); | ||||||||||||||||||
6 | assertEquals(10.0, axis.getLowerBound(), EPSILON); |
| 6 | assertEquals(10.0, axis.getLowerBound(), EPSILON); | ||||||||||||||||||
7 | assertEquals(11.0, axis.getUpperBound(), EPSILON); |
| 7 | assertEquals(11.0, axis.getUpperBound(), EPSILON); |
Row | Violation |
---|---|
1 | Expression new LogAxis("X") cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression new NumberAxis("X") cannot be parameterized, because it has dependencies to/from statements that will be extracted |