|
|
@@ -18,7 +18,7 @@ public class RelationshipComputerTest {
|
|
18
|
18
|
assertEquals(Relationship.EQUAL, computedRelationship);
|
|
19
|
19
|
}
|
|
20
|
20
|
|
|
21
|
|
- @Ignore
|
|
|
21
|
+ @Ignore("Remove to run test")
|
|
22
|
22
|
@Test
|
|
23
|
23
|
public void testEmptyListIsSublistOfNonEmptyList() {
|
|
24
|
24
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -28,7 +28,7 @@ public class RelationshipComputerTest {
|
|
28
|
28
|
assertEquals(Relationship.SUBLIST, relationship);
|
|
29
|
29
|
}
|
|
30
|
30
|
|
|
31
|
|
- @Ignore
|
|
|
31
|
+ @Ignore("Remove to run test")
|
|
32
|
32
|
@Test
|
|
33
|
33
|
public void testNonEmptyListIsSuperlistOfEmptyList() {
|
|
34
|
34
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -38,7 +38,7 @@ public class RelationshipComputerTest {
|
|
38
|
38
|
assertEquals(Relationship.SUPERLIST, relationship);
|
|
39
|
39
|
}
|
|
40
|
40
|
|
|
41
|
|
- @Ignore
|
|
|
41
|
+ @Ignore("Remove to run test")
|
|
42
|
42
|
@Test
|
|
43
|
43
|
public void testListIsEqualToItself() {
|
|
44
|
44
|
List<String> anyList = asList("1", "2", "3");
|
|
|
@@ -50,7 +50,7 @@ public class RelationshipComputerTest {
|
|
50
|
50
|
assertEquals(Relationship.EQUAL, relationship);
|
|
51
|
51
|
}
|
|
52
|
52
|
|
|
53
|
|
- @Ignore
|
|
|
53
|
+ @Ignore("Remove to run test")
|
|
54
|
54
|
@Test
|
|
55
|
55
|
public void testDifferentListsOfTheSameLengthAreUnequal() {
|
|
56
|
56
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -60,7 +60,7 @@ public class RelationshipComputerTest {
|
|
60
|
60
|
assertEquals(Relationship.UNEQUAL, relationship);
|
|
61
|
61
|
}
|
|
62
|
62
|
|
|
63
|
|
- @Ignore
|
|
|
63
|
+ @Ignore("Remove to run test")
|
|
64
|
64
|
@Test
|
|
65
|
65
|
public void testSublistCheckDoesNotAbortAfterFalseStart() {
|
|
66
|
66
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -70,7 +70,7 @@ public class RelationshipComputerTest {
|
|
70
|
70
|
assertEquals(Relationship.SUBLIST, relationship);
|
|
71
|
71
|
}
|
|
72
|
72
|
|
|
73
|
|
- @Ignore
|
|
|
73
|
+ @Ignore("Remove to run test")
|
|
74
|
74
|
@Test
|
|
75
|
75
|
public void testSublistCheckHandlesExtraneousRepeatsOfFirstEntry() {
|
|
76
|
76
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -80,7 +80,7 @@ public class RelationshipComputerTest {
|
|
80
|
80
|
assertEquals(Relationship.SUBLIST, relationship);
|
|
81
|
81
|
}
|
|
82
|
82
|
|
|
83
|
|
- @Ignore
|
|
|
83
|
+ @Ignore("Remove to run test")
|
|
84
|
84
|
@Test
|
|
85
|
85
|
public void testSublistAtStart() {
|
|
86
|
86
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -90,7 +90,7 @@ public class RelationshipComputerTest {
|
|
90
|
90
|
assertEquals(Relationship.SUBLIST, relationship);
|
|
91
|
91
|
}
|
|
92
|
92
|
|
|
93
|
|
- @Ignore
|
|
|
93
|
+ @Ignore("Remove to run test")
|
|
94
|
94
|
@Test
|
|
95
|
95
|
public void testSublistInMiddle() {
|
|
96
|
96
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -100,7 +100,7 @@ public class RelationshipComputerTest {
|
|
100
|
100
|
assertEquals(Relationship.SUBLIST, relationship);
|
|
101
|
101
|
}
|
|
102
|
102
|
|
|
103
|
|
- @Ignore
|
|
|
103
|
+ @Ignore("Remove to run test")
|
|
104
|
104
|
@Test
|
|
105
|
105
|
public void testSublistAtEnd() {
|
|
106
|
106
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -110,7 +110,7 @@ public class RelationshipComputerTest {
|
|
110
|
110
|
assertEquals(Relationship.SUBLIST, relationship);
|
|
111
|
111
|
}
|
|
112
|
112
|
|
|
113
|
|
- @Ignore
|
|
|
113
|
+ @Ignore("Remove to run test")
|
|
114
|
114
|
@Test
|
|
115
|
115
|
public void testAtStartOfSuperlist() {
|
|
116
|
116
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -120,7 +120,7 @@ public class RelationshipComputerTest {
|
|
120
|
120
|
assertEquals(Relationship.SUPERLIST, relationship);
|
|
121
|
121
|
}
|
|
122
|
122
|
|
|
123
|
|
- @Ignore
|
|
|
123
|
+ @Ignore("Remove to run test")
|
|
124
|
124
|
@Test
|
|
125
|
125
|
public void testInMiddleOfSuperlist() {
|
|
126
|
126
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -130,7 +130,7 @@ public class RelationshipComputerTest {
|
|
130
|
130
|
assertEquals(Relationship.SUPERLIST, relationship);
|
|
131
|
131
|
}
|
|
132
|
132
|
|
|
133
|
|
- @Ignore
|
|
|
133
|
+ @Ignore("Remove to run test")
|
|
134
|
134
|
@Test
|
|
135
|
135
|
public void testAtEndOfSuperlist() {
|
|
136
|
136
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -140,7 +140,7 @@ public class RelationshipComputerTest {
|
|
140
|
140
|
assertEquals(Relationship.SUPERLIST, relationship);
|
|
141
|
141
|
}
|
|
142
|
142
|
|
|
143
|
|
- @Ignore
|
|
|
143
|
+ @Ignore("Remove to run test")
|
|
144
|
144
|
@Test
|
|
145
|
145
|
public void testFirstListMissingElementFromSecondList() {
|
|
146
|
146
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -150,7 +150,7 @@ public class RelationshipComputerTest {
|
|
150
|
150
|
assertEquals(Relationship.UNEQUAL, relationship);
|
|
151
|
151
|
}
|
|
152
|
152
|
|
|
153
|
|
- @Ignore
|
|
|
153
|
+ @Ignore("Remove to run test")
|
|
154
|
154
|
@Test
|
|
155
|
155
|
public void testSecondListMissingElementFromFirstList() {
|
|
156
|
156
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -160,7 +160,7 @@ public class RelationshipComputerTest {
|
|
160
|
160
|
assertEquals(Relationship.UNEQUAL, relationship);
|
|
161
|
161
|
}
|
|
162
|
162
|
|
|
163
|
|
- @Ignore
|
|
|
163
|
+ @Ignore("Remove to run test")
|
|
164
|
164
|
@Test
|
|
165
|
165
|
public void testThatListOrderingIsAccountedFor() {
|
|
166
|
166
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|
|
|
@@ -170,7 +170,7 @@ public class RelationshipComputerTest {
|
|
170
|
170
|
assertEquals(Relationship.UNEQUAL, relationship);
|
|
171
|
171
|
}
|
|
172
|
172
|
|
|
173
|
|
- @Ignore
|
|
|
173
|
+ @Ignore("Remove to run test")
|
|
174
|
174
|
@Test
|
|
175
|
175
|
public void testThatListsWithSameDigitsButDifferentNumbersAreUnequal() {
|
|
176
|
176
|
Relationship relationship = new RelationshipComputer<>().computeRelationship(
|