File path: /jfreechart-1.0.10/tests/org/jfree/data/xy/junit/XIntervalDataItemTests.java | File path: /jfreechart-1.0.10/tests/org/jfree/data/xy/junit/YIntervalDataItemTests.java | |||
Method name: void testConstructor1()
|
Method name: void testConstructor1()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);↵ | 1 | YIntervalDataItem item1 = new YIntervalDataItem(1.0, 2.0, 3.0, 4.0);↵ | |
2 | assertEquals(new Double(1.0), item1.getX());↵ | 2 | assertEquals(new Double(1.0), item1.getX());↵ | |
3 | assertEquals(2.0, item1.getXLowValue(), EPSILON);↵ | 3 | assertEquals(2.0, item1.getYValue(), EPSILON);↵ | |
4 | assertEquals(3.0, item1.getXHighValue(), EPSILON);↵ | 4 | assertEquals(3.0, item1.getYLowValue(), EPSILON);↵ | |
5 | assertEquals(4.0, item1.getYValue(), EPSILON); | 5 | assertEquals(4.0, item1.getYHighValue(), 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 | 17 |
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 | XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0); |
| 1 | YIntervalDataItem item1 = new YIntervalDataItem(1.0, 2.0, 3.0, 4.0); | |||||||||||||||||||
2 | assertEquals(new Double(1.0), item1.getX()); |
| 2 | assertEquals(new Double(1.0), item1.getX()); | |||||||||||||||||||
3 | assertEquals(2.0, item1.getXLowValue(), EPSILON); |
| 4 | assertEquals(3.0, item1.getYLowValue(), EPSILON); | |||||||||||||||||||
4 | assertEquals(3.0, item1.getXHighValue(), EPSILON); |
| 5 | assertEquals(4.0, item1.getYHighValue(), EPSILON); | |||||||||||||||||||
5 | assertEquals(4.0, item1.getYValue(), EPSILON); |
| 3 | assertEquals(2.0, item1.getYValue(), EPSILON); |
Row | Violation |
---|---|
1 | Expression item1 cannot be unified with expression item1 , because common superclass org.jfree.data.ComparableObjectItem does not declare member(s) public java.lang.Number getX() , public java.lang.Double getX() |
2 | Expression item1.getXLowValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression item1.getYLowValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression item1 cannot be unified with expression item1 , because common superclass org.jfree.data.ComparableObjectItem does not declare member(s) public double getXLowValue() , public double getYLowValue() |
5 | Expression item1.getXHighValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression item1.getYHighValue() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression item1 cannot be unified with expression item1 , because common superclass org.jfree.data.ComparableObjectItem does not declare member(s) public double getXHighValue() , public double getYHighValue() |
8 | Expression item1 cannot be unified with expression item1 , because common superclass org.jfree.data.ComparableObjectItem does not declare member(s) public double getYValue() |