|
|
@@ -20,7 +20,7 @@ public class BookstoreTest {
|
|
20
|
20
|
assertEquals(8, bookstore.calculateTotalCost(), EQUALITY_TOLERANCE);
|
|
21
|
21
|
}
|
|
22
|
22
|
|
|
23
|
|
- @Ignore
|
|
|
23
|
+ @Ignore("Remove to run test")
|
|
24
|
24
|
@Test
|
|
25
|
25
|
public void twoOfSameBook() {
|
|
26
|
26
|
List<Integer> books = new ArrayList<>(Arrays.asList(1, 1));
|
|
|
@@ -28,7 +28,7 @@ public class BookstoreTest {
|
|
28
|
28
|
assertEquals(16, bookstore.calculateTotalCost(), EQUALITY_TOLERANCE);
|
|
29
|
29
|
}
|
|
30
|
30
|
|
|
31
|
|
- @Ignore
|
|
|
31
|
+ @Ignore("Remove to run test")
|
|
32
|
32
|
@Test
|
|
33
|
33
|
public void emptyBasket() {
|
|
34
|
34
|
List<Integer> books = new ArrayList<>();
|
|
|
@@ -36,7 +36,7 @@ public class BookstoreTest {
|
|
36
|
36
|
assertEquals(0, bookstore.calculateTotalCost(), EQUALITY_TOLERANCE);
|
|
37
|
37
|
}
|
|
38
|
38
|
|
|
39
|
|
- @Ignore
|
|
|
39
|
+ @Ignore("Remove to run test")
|
|
40
|
40
|
@Test
|
|
41
|
41
|
public void twoDifferentBooks() {
|
|
42
|
42
|
List<Integer> books = new ArrayList<>(Arrays.asList(1, 2));
|
|
|
@@ -44,7 +44,7 @@ public class BookstoreTest {
|
|
44
|
44
|
assertEquals(15.20, bookstore.calculateTotalCost(), EQUALITY_TOLERANCE);
|
|
45
|
45
|
}
|
|
46
|
46
|
|
|
47
|
|
- @Ignore
|
|
|
47
|
+ @Ignore("Remove to run test")
|
|
48
|
48
|
@Test
|
|
49
|
49
|
public void threeDifferentBooks() {
|
|
50
|
50
|
List<Integer> books = new ArrayList<>(Arrays.asList(1, 2, 3));
|
|
|
@@ -52,7 +52,7 @@ public class BookstoreTest {
|
|
52
|
52
|
assertEquals(21.6, bookstore.calculateTotalCost(), EQUALITY_TOLERANCE);
|
|
53
|
53
|
}
|
|
54
|
54
|
|
|
55
|
|
- @Ignore
|
|
|
55
|
+ @Ignore("Remove to run test")
|
|
56
|
56
|
@Test
|
|
57
|
57
|
public void fourDifferentBooks() {
|
|
58
|
58
|
List<Integer> books = new ArrayList<>(Arrays.asList(1, 2, 3, 4));
|
|
|
@@ -60,7 +60,7 @@ public class BookstoreTest {
|
|
60
|
60
|
assertEquals(25.6, bookstore.calculateTotalCost(), EQUALITY_TOLERANCE);
|
|
61
|
61
|
}
|
|
62
|
62
|
|
|
63
|
|
- @Ignore
|
|
|
63
|
+ @Ignore("Remove to run test")
|
|
64
|
64
|
@Test
|
|
65
|
65
|
public void fiveDifferentBooks() {
|
|
66
|
66
|
List<Integer> books = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5));
|
|
|
@@ -68,7 +68,7 @@ public class BookstoreTest {
|
|
68
|
68
|
assertEquals(30, bookstore.calculateTotalCost(), EQUALITY_TOLERANCE);
|
|
69
|
69
|
}
|
|
70
|
70
|
|
|
71
|
|
- @Ignore
|
|
|
71
|
+ @Ignore("Remove to run test")
|
|
72
|
72
|
@Test
|
|
73
|
73
|
public void twoGroupsOfFourIsCheaperThanGroupOfFivePlusGroupOfThree() {
|
|
74
|
74
|
List<Integer> books = new ArrayList<>(Arrays.asList(1, 1, 2, 2, 3, 3, 4, 5));
|
|
|
@@ -76,7 +76,7 @@ public class BookstoreTest {
|
|
76
|
76
|
assertEquals(51.20, bookstore.calculateTotalCost(), EQUALITY_TOLERANCE);
|
|
77
|
77
|
}
|
|
78
|
78
|
|
|
79
|
|
- @Ignore
|
|
|
79
|
+ @Ignore("Remove to run test")
|
|
80
|
80
|
@Test
|
|
81
|
81
|
public void groupOfFourPlusGroupOfTwoIsCheaperThanTwoGroupsOfThree() {
|
|
82
|
82
|
List<Integer> books = new ArrayList<>(Arrays.asList(1, 1, 2, 2, 3, 4));
|
|
|
@@ -84,7 +84,7 @@ public class BookstoreTest {
|
|
84
|
84
|
assertEquals(40.8, bookstore.calculateTotalCost(), EQUALITY_TOLERANCE);
|
|
85
|
85
|
}
|
|
86
|
86
|
|
|
87
|
|
- @Ignore
|
|
|
87
|
+ @Ignore("Remove to run test")
|
|
88
|
88
|
@Test
|
|
89
|
89
|
public void twoEachOfFirst4BooksAnd1CopyEachOfRest() {
|
|
90
|
90
|
List<Integer> books = new ArrayList<>(Arrays.asList(1, 1, 2, 2, 3, 3, 4, 4, 5));
|
|
|
@@ -92,7 +92,7 @@ public class BookstoreTest {
|
|
92
|
92
|
assertEquals(55.60, bookstore.calculateTotalCost(), EQUALITY_TOLERANCE);
|
|
93
|
93
|
}
|
|
94
|
94
|
|
|
95
|
|
- @Ignore
|
|
|
95
|
+ @Ignore("Remove to run test")
|
|
96
|
96
|
@Test
|
|
97
|
97
|
public void twoCopiesOfEachBook() {
|
|
98
|
98
|
List<Integer> books = new ArrayList<>(Arrays.asList(1, 1, 2, 2, 3, 3, 4, 4, 5, 5));
|
|
|
@@ -100,7 +100,7 @@ public class BookstoreTest {
|
|
100
|
100
|
assertEquals(60.00, bookstore.calculateTotalCost(), EQUALITY_TOLERANCE);
|
|
101
|
101
|
}
|
|
102
|
102
|
|
|
103
|
|
- @Ignore
|
|
|
103
|
+ @Ignore("Remove to run test")
|
|
104
|
104
|
@Test
|
|
105
|
105
|
public void threeCopiesOfFirstBookAnd2EachOfRemaining() {
|
|
106
|
106
|
List<Integer> books = new ArrayList<>(Arrays.asList(1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 1));
|
|
|
@@ -108,7 +108,7 @@ public class BookstoreTest {
|
|
108
|
108
|
assertEquals(68.00, bookstore.calculateTotalCost(), EQUALITY_TOLERANCE);
|
|
109
|
109
|
}
|
|
110
|
110
|
|
|
111
|
|
- @Ignore
|
|
|
111
|
+ @Ignore("Remove to run test")
|
|
112
|
112
|
@Test
|
|
113
|
113
|
public void threeEachOFirst2BooksAnd2EachOfRemainingBooks() {
|
|
114
|
114
|
List<Integer> books = new ArrayList<>(Arrays.asList(1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 1, 2));
|