File path: /jfreechart-1.0.10/tests/org/jfree/data/xy/junit/XIntervalSeriesTests.java | File path: /jfreechart-1.0.10/tests/org/jfree/data/xy/junit/XIntervalSeriesTests.java | |||
Method name: void testGetXLowValue()
|
Method name: void testGetXHighValue()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | XIntervalSeries s1 = new XIntervalSeries("S1");↵ | 1 | XIntervalSeries s1 = new XIntervalSeries("S1");↵ | |
2 | s1.add(1.0, 2.0, 3.0, 4.0);↵ | 2 | s1.add(1.0, 2.0, 3.0, 4.0);↵ | |
3 | assertEquals(2.0, s1.getXLowValue(0), EPSILON);↵ | 3 | assertEquals(3.0, s1.getXHighValue(0), EPSILON);↵ | |
4 | s1.add(2.0, 1.0, 4.0, 2.5);↵ | 4 | s1.add(2.0, 1.0, 4.0, 2.5);↵ | |
5 | assertEquals(1.0, s1.getXLowValue(1), EPSILON); | 5 | assertEquals(4.0, s1.getXHighValue(1), 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 | 13 |
Number of mapped statements | 5 |
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 | XIntervalSeries s1 = new XIntervalSeries("S1"); | 1 | XIntervalSeries s1 = new XIntervalSeries("S1"); | ||||||||||||||||
2 | s1.add(1.0, 2.0, 3.0, 4.0); | 2 | s1.add(1.0, 2.0, 3.0, 4.0); | ||||||||||||||||
3 | assertEquals(2.0, s1.getXLowValue(0), EPSILON); |
| 3 | assertEquals(3.0, s1.getXHighValue(0), EPSILON); | |||||||||||||||
4 | s1.add(2.0, 1.0, 4.0, 2.5); | 4 | s1.add(2.0, 1.0, 4.0, 2.5); | ||||||||||||||||
5 | assertEquals(1.0, s1.getXLowValue(1), EPSILON); |
| 5 | assertEquals(4.0, s1.getXHighValue(1), EPSILON); |
Row | Violation |
---|---|
1 | Expression s1.getXLowValue(0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression s1.getXHighValue(0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression s1.getXLowValue(1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression s1.getXHighValue(1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |