File path: /jfreechart-1.0.10/tests/org/jfree/chart/block/junit/ColumnArrangementTests.java | File path: /jfreechart-1.0.10/tests/org/jfree/chart/block/junit/FlowArrangementTests.java | |||
Method name: void testEquals()
|
Method name: void testEquals()
|
|||
Number of AST nodes: 20 | Number of AST nodes: 20 | |||
1 | ColumnArrangement c1 = new ColumnArrangement(↵ | 1 | FlowArrangement f1 = new FlowArrangement(↵ | |
2 | HorizontalAlignment.LEFT, VerticalAlignment.TOP, 1.0, 2.0↵ | 2 | HorizontalAlignment.LEFT, VerticalAlignment.TOP, 1.0, 2.0↵ | |
3 | );↵ | 3 | );↵ | |
4 | ColumnArrangement c2 = new ColumnArrangement(↵ | 4 | FlowArrangement f2 = new FlowArrangement(↵ | |
5 | HorizontalAlignment.LEFT, VerticalAlignment.TOP, 1.0, 2.0↵ | 5 | HorizontalAlignment.LEFT, VerticalAlignment.TOP, 1.0, 2.0↵ | |
6 | );↵ | 6 | );↵ | |
7 | assertTrue(c1.equals(c2));↵ | 7 | assertTrue(f1.equals(f2));↵ | |
8 | assertTrue(c2.equals(c1));↵ | 8 | assertTrue(f2.equals(f1));↵ | |
9 | c1 = new ColumnArrangement(↵ | 9 | f1 = new FlowArrangement(↵ | |
10 | HorizontalAlignment.RIGHT, VerticalAlignment.TOP, 1.0, 2.0↵ | 10 | HorizontalAlignment.RIGHT, VerticalAlignment.TOP, 1.0, 2.0↵ | |
11 | );↵ | 11 | );↵ | |
12 | assertFalse(c1.equals(c2));↵ | 12 | assertFalse(f1.equals(f2));↵ | |
13 | c2 = new ColumnArrangement(↵ | 13 | f2 = new FlowArrangement(↵ | |
14 | HorizontalAlignment.RIGHT, VerticalAlignment.TOP, 1.0, 2.0↵ | 14 | HorizontalAlignment.RIGHT, VerticalAlignment.TOP, 1.0, 2.0↵ | |
15 | );↵ | 15 | );↵ | |
16 | assertTrue(c1.equals(c2));↵ | 16 | assertTrue(f1.equals(f2));↵ | |
17 | c1 = new ColumnArrangement(↵ | 17 | f1 = new FlowArrangement(↵ | |
18 | HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.0, 2.0↵ | 18 | HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.0, 2.0↵ | |
19 | );↵ | 19 | );↵ | |
20 | assertFalse(c1.equals(c2));↵ | 20 | assertFalse(f1.equals(f2));↵ | |
21 | c2 = new ColumnArrangement(↵ | 21 | f2 = new FlowArrangement(↵ | |
22 | HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.0, 2.0↵ | 22 | HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.0, 2.0↵ | |
23 | );↵ | 23 | );↵ | |
24 | assertTrue(c1.equals(c2));↵ | 24 | assertTrue(f1.equals(f2));↵ | |
25 | ↵ | 25 | ↵ | |
26 | c1 = new ColumnArrangement(↵ | 26 | f1 = new FlowArrangement(↵ | |
27 | HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.0↵ | 27 | HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.0↵ | |
28 | );↵ | 28 | );↵ | |
29 | assertFalse(c1.equals(c2));↵ | 29 | assertFalse(f1.equals(f2));↵ | |
30 | c2 = new ColumnArrangement(↵ | 30 | f2 = new FlowArrangement(↵ | |
31 | HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.0↵ | 31 | HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.0↵ | |
32 | );↵ | 32 | );↵ | |
33 | assertTrue(c1.equals(c2));↵ | 33 | assertTrue(f1.equals(f2));↵ | |
34 | ↵ | 34 | ↵ | |
35 | c1 = new ColumnArrangement(↵ | 35 | f1 = new FlowArrangement(↵ | |
36 | HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.2↵ | 36 | HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.2↵ | |
37 | );↵ | 37 | );↵ | |
38 | assertFalse(c1.equals(c2));↵ | 38 | assertFalse(f1.equals(f2));↵ | |
39 | c2 = new ColumnArrangement(↵ | 39 | f2 = new FlowArrangement(↵ | |
40 | HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.2↵ | 40 | HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.2↵ | |
41 | );↵ | 41 | );↵ | |
42 | assertTrue(c1.equals(c2)); | 42 | assertTrue(f1.equals(f2)); | |
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 | 117 |
Number of mapped statements | 20 |
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 | ColumnArrangement c1 = new ColumnArrangement(HorizontalAlignment.LEFT, VerticalAlignment.TOP, 1.0, 2.0); |
| 1 | FlowArrangement f1 = new FlowArrangement(HorizontalAlignment.LEFT, VerticalAlignment.TOP, 1.0, 2.0); | ||||||||||||||||||||||
2 | ColumnArrangement c2 = new ColumnArrangement(HorizontalAlignment.LEFT, VerticalAlignment.TOP, 1.0, 2.0); |
| 2 | FlowArrangement f2 = new FlowArrangement(HorizontalAlignment.LEFT, VerticalAlignment.TOP, 1.0, 2.0); | ||||||||||||||||||||||
3 | assertTrue(c1.equals(c2)); |
| 3 | assertTrue(f1.equals(f2)); | ||||||||||||||||||||||
4 | assertTrue(c2.equals(c1)); |
| 4 | assertTrue(f2.equals(f1)); | ||||||||||||||||||||||
5 | c1 = new ColumnArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.TOP, 1.0, 2.0); |
| 5 | f1 = new FlowArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.TOP, 1.0, 2.0); | ||||||||||||||||||||||
6 | assertFalse(c1.equals(c2)); |
| 6 | assertFalse(f1.equals(f2)); | ||||||||||||||||||||||
7 | c2 = new ColumnArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.TOP, 1.0, 2.0); |
| 7 | f2 = new FlowArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.TOP, 1.0, 2.0); | ||||||||||||||||||||||
8 | assertTrue(c1.equals(c2)); |
| 8 | assertTrue(f1.equals(f2)); | ||||||||||||||||||||||
9 | c1 = new ColumnArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.0, 2.0); |
| 9 | f1 = new FlowArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.0, 2.0); | ||||||||||||||||||||||
10 | assertFalse(c1.equals(c2)); |
| 10 | assertFalse(f1.equals(f2)); | ||||||||||||||||||||||
11 | c2 = new ColumnArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.0, 2.0); |
| 11 | f2 = new FlowArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.0, 2.0); | ||||||||||||||||||||||
12 | assertTrue(c1.equals(c2)); |
| 12 | assertTrue(f1.equals(f2)); | ||||||||||||||||||||||
13 | c1 = new ColumnArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.0); |
| 13 | f1 = new FlowArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.0); | ||||||||||||||||||||||
14 | assertFalse(c1.equals(c2)); |
| 14 | assertFalse(f1.equals(f2)); | ||||||||||||||||||||||
15 | c2 = new ColumnArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.0); |
| 15 | f2 = new FlowArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.0); | ||||||||||||||||||||||
16 | assertTrue(c1.equals(c2)); |
| 16 | assertTrue(f1.equals(f2)); | ||||||||||||||||||||||
17 | c1 = new ColumnArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.2); |
| 17 | f1 = new FlowArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.2); | ||||||||||||||||||||||
18 | assertFalse(c1.equals(c2)); |
| 18 | assertFalse(f1.equals(f2)); | ||||||||||||||||||||||
19 | c2 = new ColumnArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.2); |
| 19 | f2 = new FlowArrangement(HorizontalAlignment.RIGHT, VerticalAlignment.BOTTOM, 1.1, 2.2); | ||||||||||||||||||||||
20 | assertTrue(c1.equals(c2)); |
| 20 | assertTrue(f1.equals(f2)); |
Row | Violation |
---|---|
1 | Expression new ColumnArrangement(HorizontalAlignment.LEFT,VerticalAlignment.TOP,1.0,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression new FlowArrangement(HorizontalAlignment.LEFT,VerticalAlignment.TOP,1.0,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression new ColumnArrangement(HorizontalAlignment.LEFT,VerticalAlignment.TOP,1.0,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression new FlowArrangement(HorizontalAlignment.LEFT,VerticalAlignment.TOP,1.0,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression c2 cannot be unified with expression f2 , because common superclass type org.jfree.chart.block.Arrangement cannot be passed as an argument to public boolean equals(java.lang.Object) |
6 | Expression c2 cannot be unified with expression f2 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
7 | Expression c1 cannot be unified with expression f1 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
8 | Expression c1 cannot be unified with expression f1 , because common superclass type org.jfree.chart.block.Arrangement cannot be passed as an argument to public boolean equals(java.lang.Object) |
9 | Expression c1 cannot be unified with expression f1 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
10 | Expression c2 cannot be unified with expression f2 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
11 | Expression new ColumnArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.TOP,1.0,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression new FlowArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.TOP,1.0,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression c2 cannot be unified with expression f2 , because common superclass type org.jfree.chart.block.Arrangement cannot be passed as an argument to public boolean equals(java.lang.Object) |
14 | Expression c2 cannot be unified with expression f2 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
15 | Expression c1 cannot be unified with expression f1 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
16 | Expression new ColumnArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.TOP,1.0,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
17 | Expression new FlowArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.TOP,1.0,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
18 | Expression c2 cannot be unified with expression f2 , because common superclass type org.jfree.chart.block.Arrangement cannot be passed as an argument to public boolean equals(java.lang.Object) |
19 | Expression c2 cannot be unified with expression f2 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
20 | Expression c1 cannot be unified with expression f1 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
21 | Expression new ColumnArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.BOTTOM,1.0,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
22 | Expression new FlowArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.BOTTOM,1.0,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
23 | Expression c2 cannot be unified with expression f2 , because common superclass type org.jfree.chart.block.Arrangement cannot be passed as an argument to public boolean equals(java.lang.Object) |
24 | Expression c2 cannot be unified with expression f2 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
25 | Expression c1 cannot be unified with expression f1 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
26 | Expression new ColumnArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.BOTTOM,1.0,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
27 | Expression new FlowArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.BOTTOM,1.0,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
28 | Expression c2 cannot be unified with expression f2 , because common superclass type org.jfree.chart.block.Arrangement cannot be passed as an argument to public boolean equals(java.lang.Object) |
29 | Expression c2 cannot be unified with expression f2 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
30 | Expression c1 cannot be unified with expression f1 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
31 | Expression new ColumnArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.BOTTOM,1.1,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
32 | Expression new FlowArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.BOTTOM,1.1,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
33 | Expression c2 cannot be unified with expression f2 , because common superclass type org.jfree.chart.block.Arrangement cannot be passed as an argument to public boolean equals(java.lang.Object) |
34 | Expression c2 cannot be unified with expression f2 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
35 | Expression c1 cannot be unified with expression f1 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
36 | Expression new ColumnArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.BOTTOM,1.1,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
37 | Expression new FlowArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.BOTTOM,1.1,2.0) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
38 | Expression c2 cannot be unified with expression f2 , because common superclass type org.jfree.chart.block.Arrangement cannot be passed as an argument to public boolean equals(java.lang.Object) |
39 | Expression c2 cannot be unified with expression f2 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
40 | Expression c1 cannot be unified with expression f1 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
41 | Expression new ColumnArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.BOTTOM,1.1,2.2) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
42 | Expression new FlowArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.BOTTOM,1.1,2.2) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
43 | Expression c2 cannot be unified with expression f2 , because common superclass type org.jfree.chart.block.Arrangement cannot be passed as an argument to public boolean equals(java.lang.Object) |
44 | Expression c2 cannot be unified with expression f2 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
45 | Expression c1 cannot be unified with expression f1 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
46 | Expression new ColumnArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.BOTTOM,1.1,2.2) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
47 | Expression new FlowArrangement(HorizontalAlignment.RIGHT,VerticalAlignment.BOTTOM,1.1,2.2) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
48 | Expression c2 cannot be unified with expression f2 , because common superclass type org.jfree.chart.block.Arrangement cannot be passed as an argument to public boolean equals(java.lang.Object) |
49 | Expression c2 cannot be unified with expression f2 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |
50 | Expression c1 cannot be unified with expression f1 , because common superclass org.jfree.chart.block.Arrangement does not declare member(s) public boolean equals(java.lang.Object) |