File path: /jfreechart-1.0.10/tests/org/jfree/data/xy/junit/VectorSeriesTests.java | File path: /jfreechart-1.0.10/tests/org/jfree/data/xy/junit/XIntervalSeriesTests.java | |||
Method name: void testAdd()
|
Method name: void testAdd()
|
|||
Number of AST nodes: 15 | Number of AST nodes: 15 | |||
1 | VectorSeries series = new VectorSeries("Series", false, true);↵ | 1 | XIntervalSeries series = new XIntervalSeries("Series", false, true);↵ | |
2 | series.add(5.0, 5.50, 5.50, 5.50);↵ | 2 | series.add(5.0, 5.50, 5.50, 5.50);↵ | |
3 | series.add(5.1, 5.51, 5.51, 5.51);↵ | 3 | series.add(5.1, 5.51, 5.51, 5.51);↵ | |
4 | series.add(6.0, 6.6, 6.6, 6.6);↵ | 4 | series.add(6.0, 6.6, 6.6, 6.6);↵ | |
5 | series.add(3.0, 3.3, 3.3, 3.3);↵ | 5 | series.add(3.0, 3.3, 3.3, 3.3);↵ | |
6 | series.add(4.0, 4.4, 4.4, 4.4);↵ | 6 | series.add(4.0, 4.4, 4.4, 4.4);↵ | |
7 | series.add(2.0, 2.2, 2.2, 2.2);↵ | 7 | series.add(2.0, 2.2, 2.2, 2.2);↵ | |
8 | series.add(1.0, 1.1, 1.1, 1.1);↵ | 8 | series.add(1.0, 1.1, 1.1, 1.1);↵ | |
9 | assertEquals(5.5, series.getVectorXValue(0), EPSILON);↵ | 9 | assertEquals(5.5, series.getYValue(0), EPSILON);↵ | |
10 | assertEquals(5.51, series.getVectorXValue(1), EPSILON);↵ | 10 | assertEquals(5.51, series.getYValue(1), EPSILON);↵ | |
11 | assertEquals(6.6, series.getVectorXValue(2), EPSILON);↵ | 11 | assertEquals(6.6, series.getYValue(2), EPSILON);↵ | |
12 | assertEquals(3.3, series.getVectorXValue(3), EPSILON);↵ | 12 | assertEquals(3.3, series.getYValue(3), EPSILON);↵ | |
13 | assertEquals(4.4, series.getVectorXValue(4), EPSILON);↵ | 13 | assertEquals(4.4, series.getYValue(4), EPSILON);↵ | |
14 | assertEquals(2.2, series.getVectorXValue(5), EPSILON);↵ | 14 | assertEquals(2.2, series.getYValue(5), EPSILON);↵ | |
15 | assertEquals(1.1, series.getVectorXValue(6), EPSILON); | 15 | assertEquals(1.1, series.getYValue(6), EPSILON); | |
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 having the same super class |
Number of node comparisons | 113 |
Number of mapped statements | 15 |
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 | VectorSeries series = new VectorSeries("Series", false, true); |
| 1 | XIntervalSeries series = new XIntervalSeries("Series", false, true); | ||||||||||||||||
2 | series.add(5.0, 5.50, 5.50, 5.50); |
| 2 | series.add(5.0, 5.50, 5.50, 5.50); | ||||||||||||||||
3 | series.add(5.1, 5.51, 5.51, 5.51); |
| 3 | series.add(5.1, 5.51, 5.51, 5.51); | ||||||||||||||||
4 | series.add(6.0, 6.6, 6.6, 6.6); |
| 4 | series.add(6.0, 6.6, 6.6, 6.6); | ||||||||||||||||
5 | series.add(3.0, 3.3, 3.3, 3.3); |
| 5 | series.add(3.0, 3.3, 3.3, 3.3); | ||||||||||||||||
6 | series.add(4.0, 4.4, 4.4, 4.4); |
| 6 | series.add(4.0, 4.4, 4.4, 4.4); | ||||||||||||||||
7 | series.add(2.0, 2.2, 2.2, 2.2); |
| 7 | series.add(2.0, 2.2, 2.2, 2.2); | ||||||||||||||||
8 | series.add(1.0, 1.1, 1.1, 1.1); |
| 8 | series.add(1.0, 1.1, 1.1, 1.1); | ||||||||||||||||
9 | assertEquals(5.5, series.getVectorXValue(0), EPSILON); |
| 9 | assertEquals(5.5, series.getYValue(0), EPSILON); | ||||||||||||||||
10 | assertEquals(5.51, series.getVectorXValue(1), EPSILON); |
| 10 | assertEquals(5.51, series.getYValue(1), EPSILON); | ||||||||||||||||
11 | assertEquals(6.6, series.getVectorXValue(2), EPSILON); |
| 11 | assertEquals(6.6, series.getYValue(2), EPSILON); | ||||||||||||||||
12 | assertEquals(3.3, series.getVectorXValue(3), EPSILON); |
| 12 | assertEquals(3.3, series.getYValue(3), EPSILON); | ||||||||||||||||
13 | assertEquals(4.4, series.getVectorXValue(4), EPSILON); |
| 13 | assertEquals(4.4, series.getYValue(4), EPSILON); | ||||||||||||||||
14 | assertEquals(2.2, series.getVectorXValue(5), EPSILON); |
| 14 | assertEquals(2.2, series.getYValue(5), EPSILON); | ||||||||||||||||
15 | assertEquals(1.1, series.getVectorXValue(6), EPSILON); |
| 15 | assertEquals(1.1, series.getYValue(6), EPSILON); |
Row | Violation |
---|---|
1 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public void add(double, double, double, double) |
2 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public void add(double, double, double, double) |
3 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public void add(double, double, double, double) |
4 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public void add(double, double, double, double) |
5 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public void add(double, double, double, double) |
6 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public void add(double, double, double, double) |
7 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public void add(double, double, double, double) |
8 | Expression series.getVectorXValue(0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression series.getYValue(0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public double getVectorXValue(int) , public double getYValue(int) |
11 | Expression series.getVectorXValue(1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression series.getYValue(1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public double getVectorXValue(int) , public double getYValue(int) |
14 | Expression series.getVectorXValue(2) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression series.getYValue(2) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
16 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public double getVectorXValue(int) , public double getYValue(int) |
17 | Expression series.getVectorXValue(3) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
18 | Expression series.getYValue(3) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
19 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public double getVectorXValue(int) , public double getYValue(int) |
20 | Expression series.getVectorXValue(4) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
21 | Expression series.getYValue(4) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
22 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public double getVectorXValue(int) , public double getYValue(int) |
23 | Expression series.getVectorXValue(5) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
24 | Expression series.getYValue(5) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
25 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public double getVectorXValue(int) , public double getYValue(int) |
26 | Expression series.getVectorXValue(6) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
27 | Expression series.getYValue(6) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
28 | Expression series cannot be unified with expression series , because common superclass org.jfree.data.ComparableObjectSeries does not declare member(s) public double getVectorXValue(int) , public double getYValue(int) |