Skip to content

Commit e48446e

Browse files
committed
Refactor(test): Reflect new Tier abstraction
1 parent 347e7b9 commit e48446e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

exercises/tiered_pricing/solutions/mperezi/src/test/java/tv/codely/checkout/TieredPricingShould.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
public class TieredPricingShould {
88

99
@Test
10-
void returnUnitPriceForOneSubscription() {
10+
void returnFirstTierUnitPriceForOneSubscription() {
1111
var tieredPricing = new TieredPricing();
1212

1313
double totalPrice = tieredPricing.totalPrice(1);
@@ -16,7 +16,7 @@ void returnUnitPriceForOneSubscription() {
1616
}
1717

1818
@Test
19-
void returnDoubleTheUnitPriceForTwoSubscriptions() {
19+
void returnDoubleTheFirstTierUnitPriceForTwoSubscriptions() {
2020
var tieredPricing = new TieredPricing();
2121

2222
double totalPrice = tieredPricing.totalPrice(2);
@@ -25,7 +25,7 @@ void returnDoubleTheUnitPriceForTwoSubscriptions() {
2525
}
2626

2727
@Test
28-
void returnTripleTheUnitPriceForThreeSubscriptions() {
28+
void returnTripleTheSecondTierUnitPriceForThreeSubscriptions() {
2929
var tieredPricing = new TieredPricing();
3030

3131
double totalPrice = tieredPricing.totalPrice(3);

0 commit comments

Comments
 (0)