package com.flipper83.katapotter;

import java.util.ArrayList;
import java.util.List;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

public class BasketCalculatorTest {
  private static final List<String> EMPTY_BASKET = new ArrayList<>();

  @Test
  public void shouldReturnZeroPriceForAnEmptyBasket() {
    BasketCalculator basketCalculator = new BasketCalculator();

    int amount = basketCalculator.calculatePrice(EMPTY_BASKET);

    assertEquals(0, amount);
  }
}

@@ -254,16 +254,80 @@
 ist%3C%3E();
+%0A  private static final String FIRST_BOOK = %22Philosopher stone%22;
 %0A%0A  @Tes
@@ -547,10 +547,454 @@
 t);%0A  %7D%0A
+  %0A  @Test%0A  public void shouldReturnPriceWithoutDiscountWithABasketWithOneBook() %7B%0A    BasketCalculator basketCalculator = new BasketCalculator();%0A    List%3CString%3E basket = givenBasketWithOneBook();%0A    %0A    int amount = basketCalculator.calculatePrice(basket);%0A%0A    assertEquals(8, amount);%0A  %7D%0A%0A  private List%3CString%3E givenBasketWithOneBook() %7B%0A    List%3CString%3E basket = new ArrayList%3C%3E();%0A    basket.add(FIRST_BOOK);%0A    return basket;%0A  %7D%0A
 %7D%0A

check basket with only one book.