mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
🔨 move item name to implementations
This commit is contained in:
parent
39a0e60141
commit
fa28c30215
@ -7,28 +7,28 @@ import com.gildedrose.items.LegendaryItem;
|
||||
import com.gildedrose.items.NormalItem;
|
||||
import com.gildedrose.main.Item;
|
||||
|
||||
import static com.gildedrose.item_helpers.ItemName.getItemName;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.util.stream.Stream;
|
||||
|
||||
public class ItemFactory {
|
||||
|
||||
private ItemFactory() {
|
||||
}
|
||||
private ItemFactory() {
|
||||
}
|
||||
|
||||
public static ItemType getItemType(Item item) {
|
||||
QualityValidator.validateQuality(item);
|
||||
ItemName itemName = getItemName(item.name);
|
||||
switch (itemName) {
|
||||
case AGED_BRIE:
|
||||
return new AgedBrieItem(item);
|
||||
case LEGENDARY:
|
||||
return new LegendaryItem(item);
|
||||
case BACKSTAGE_PASS:
|
||||
return new BackstagePassItem(item);
|
||||
case CONJURED:
|
||||
return new ConjuredItem(item);
|
||||
default:
|
||||
return new NormalItem(item);
|
||||
}
|
||||
public static ItemType getItemType(Item item) {
|
||||
QualityValidator.validateQuality(item);
|
||||
ItemType itemType = getItems(item).get(item.name);
|
||||
if (itemType == null) {
|
||||
itemType = new NormalItem(item);
|
||||
}
|
||||
return itemType;
|
||||
}
|
||||
|
||||
private static Map<String, ItemType> getItems(Item item) {
|
||||
return Stream.of(new NormalItem(item), new AgedBrieItem(item), new LegendaryItem(item),
|
||||
new BackstagePassItem(item), new ConjuredItem(item))
|
||||
.collect(Collectors.toMap(ItemType::getName, itemType -> itemType));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,30 +0,0 @@
|
||||
package com.gildedrose.item_helpers;
|
||||
|
||||
public enum ItemName {
|
||||
|
||||
LEGENDARY("Sulfuras, Hand of Ragnaros"),
|
||||
NORMAL("Normal"),
|
||||
AGED_BRIE("Aged Brie"),
|
||||
BACKSTAGE_PASS("Backstage passes to a TAFKAL80ETC concert"),
|
||||
CONJURED("Conjured Mana Cake");
|
||||
|
||||
private final String name;
|
||||
|
||||
ItemName(String input) {
|
||||
this.name = input;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public static ItemName getItemName(String input) {
|
||||
for (ItemName itemName : ItemName.values()) {
|
||||
if (itemName.name.equalsIgnoreCase(input)) {
|
||||
return itemName;
|
||||
}
|
||||
}
|
||||
return NORMAL;
|
||||
}
|
||||
}
|
||||
@ -2,4 +2,6 @@ package com.gildedrose.item_helpers;
|
||||
|
||||
public interface ItemType {
|
||||
void updateQuality();
|
||||
|
||||
String getName();
|
||||
}
|
||||
|
||||
@ -6,20 +6,27 @@ import com.gildedrose.main.Item;
|
||||
|
||||
public class AgedBrieItem implements ItemType {
|
||||
|
||||
private final ItemHandler item;
|
||||
public static final String AGED_BRIE = "Aged Brie";
|
||||
|
||||
public AgedBrieItem(Item item) {
|
||||
this.item = new ItemHandler(item);
|
||||
}
|
||||
private final ItemHandler item;
|
||||
|
||||
@Override
|
||||
public void updateQuality() {
|
||||
item.decrementSellInDate();
|
||||
if (item.beforeSellInDate()) {
|
||||
item.incrementQuality();
|
||||
} else {
|
||||
item.incrementQualityBy2();
|
||||
}
|
||||
public AgedBrieItem(Item item) {
|
||||
this.item = new ItemHandler(item);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateQuality() {
|
||||
item.decrementSellInDate();
|
||||
if (item.beforeSellInDate()) {
|
||||
item.incrementQuality();
|
||||
} else {
|
||||
item.incrementQualityBy2();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return AGED_BRIE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -6,24 +6,30 @@ import com.gildedrose.main.Item;
|
||||
|
||||
public class BackstagePassItem implements ItemType {
|
||||
|
||||
private final ItemHandler item;
|
||||
public static final String BACKSTAGE_PASS = "Backstage passes to a TAFKAL80ETC concert";
|
||||
private final ItemHandler item;
|
||||
|
||||
public BackstagePassItem(Item item) {
|
||||
this.item = new ItemHandler(item);
|
||||
}
|
||||
public BackstagePassItem(Item item) {
|
||||
this.item = new ItemHandler(item);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateQuality() {
|
||||
item.decrementSellInDate();
|
||||
if (item.moreThan10DaysToSellIn()) {
|
||||
item.incrementQuality();
|
||||
} else if (item.lessThan10DaysToSellIn()) {
|
||||
item.incrementQualityBy2();
|
||||
} else if (item.lessThan5DaysToSellIn()) {
|
||||
item.incrementQualityBy3();
|
||||
} else {
|
||||
item.makeQualityZero();
|
||||
}
|
||||
@Override
|
||||
public void updateQuality() {
|
||||
item.decrementSellInDate();
|
||||
if (item.moreThan10DaysToSellIn()) {
|
||||
item.incrementQuality();
|
||||
} else if (item.lessThan10DaysToSellIn()) {
|
||||
item.incrementQualityBy2();
|
||||
} else if (item.lessThan5DaysToSellIn()) {
|
||||
item.incrementQualityBy3();
|
||||
} else {
|
||||
item.makeQualityZero();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return BACKSTAGE_PASS;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -6,20 +6,27 @@ import com.gildedrose.main.Item;
|
||||
|
||||
public class ConjuredItem implements ItemType {
|
||||
|
||||
private final ItemHandler item;
|
||||
public static final String CONJURED = "Conjured Mana Cake";
|
||||
|
||||
public ConjuredItem(Item item) {
|
||||
this.item = new ItemHandler(item);
|
||||
}
|
||||
private final ItemHandler item;
|
||||
|
||||
@Override
|
||||
public void updateQuality() {
|
||||
item.decrementSellInDate();
|
||||
if (item.beforeSellInDate()) {
|
||||
item.decrementQualityBy2();
|
||||
} else {
|
||||
item.decrementQualityBy4();
|
||||
}
|
||||
public ConjuredItem(Item item) {
|
||||
this.item = new ItemHandler(item);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateQuality() {
|
||||
item.decrementSellInDate();
|
||||
if (item.beforeSellInDate()) {
|
||||
item.decrementQualityBy2();
|
||||
} else {
|
||||
item.decrementQualityBy4();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return CONJURED;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -4,29 +4,33 @@ import com.gildedrose.item_helpers.ItemHandler;
|
||||
import com.gildedrose.item_helpers.ItemType;
|
||||
import com.gildedrose.main.Item;
|
||||
|
||||
import static com.gildedrose.item_helpers.ItemName.LEGENDARY;
|
||||
|
||||
public class LegendaryItem implements ItemType {
|
||||
|
||||
public static final int LEGENDARY_ITEM_QUALITY = 80;
|
||||
public static final int LEGENDARY_ITEM_QUALITY = 80;
|
||||
public static final String LEGENDARY = "Sulfuras, Hand of Ragnaros";
|
||||
|
||||
private final ItemHandler item;
|
||||
private final ItemHandler item;
|
||||
|
||||
public LegendaryItem(Item item) {
|
||||
this.item = new ItemHandler(item);
|
||||
}
|
||||
public LegendaryItem(Item item) {
|
||||
this.item = new ItemHandler(item);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateQuality() {
|
||||
item.decrementSellInDate();
|
||||
}
|
||||
@Override
|
||||
public void updateQuality() {
|
||||
item.decrementSellInDate();
|
||||
}
|
||||
|
||||
public static boolean isLegendary(Item item) {
|
||||
return item.name.equals(LEGENDARY.toString());
|
||||
}
|
||||
@Override
|
||||
public String getName() {
|
||||
return LEGENDARY;
|
||||
}
|
||||
|
||||
public static boolean isNotLegendary(Item item) {
|
||||
return !item.name.equals(LEGENDARY.toString());
|
||||
}
|
||||
public static boolean isLegendary(Item item) {
|
||||
return item.name.equals(LEGENDARY);
|
||||
}
|
||||
|
||||
public static boolean isNotLegendary(Item item) {
|
||||
return !item.name.equals(LEGENDARY);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -6,20 +6,26 @@ import com.gildedrose.main.Item;
|
||||
|
||||
public class NormalItem implements ItemType {
|
||||
|
||||
private final ItemHandler item;
|
||||
public static final String NORMAL = "Normal";
|
||||
private final ItemHandler item;
|
||||
|
||||
public NormalItem(Item item) {
|
||||
this.item = new ItemHandler(item);
|
||||
}
|
||||
public NormalItem(Item item) {
|
||||
this.item = new ItemHandler(item);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateQuality() {
|
||||
item.decrementSellInDate();
|
||||
if (item.beforeSellInDate()) {
|
||||
item.decrementQuality();
|
||||
} else {
|
||||
item.decrementQualityBy2();
|
||||
}
|
||||
@Override
|
||||
public void updateQuality() {
|
||||
item.decrementSellInDate();
|
||||
if (item.beforeSellInDate()) {
|
||||
item.decrementQuality();
|
||||
} else {
|
||||
item.decrementQualityBy2();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return NORMAL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -8,30 +8,30 @@ import org.junit.jupiter.api.TestMethodOrder;
|
||||
|
||||
import static com.gildedrose.helper.TestHelper.testItem;
|
||||
import static com.gildedrose.helper.TestHelper.testItemException;
|
||||
import static com.gildedrose.item_helpers.ItemName.AGED_BRIE;
|
||||
import static com.gildedrose.items.AgedBrieItem.AGED_BRIE;
|
||||
|
||||
@TestMethodOrder(OrderAnnotation.class)
|
||||
class AgedBrieItemTest {
|
||||
|
||||
private final Item item = new Item(AGED_BRIE.toString(), 5, 20);
|
||||
private final Item itemError = new Item(AGED_BRIE.toString(), 10, -5);
|
||||
private final Item item = new Item(AGED_BRIE, 5, 20);
|
||||
private final Item itemError = new Item(AGED_BRIE, 10, -5);
|
||||
|
||||
@Test
|
||||
@Order(1)
|
||||
void incrementQualityByOneSuccess() {
|
||||
testItem(item, 2, 3, 22);
|
||||
}
|
||||
@Test
|
||||
@Order(1)
|
||||
void incrementQualityByOneSuccess() {
|
||||
testItem(item, 2, 3, 22);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(2)
|
||||
void incrementQualityByTwoSuccess() {
|
||||
testItem(item, 7, -2, 29);
|
||||
}
|
||||
@Test
|
||||
@Order(2)
|
||||
void incrementQualityByTwoSuccess() {
|
||||
testItem(item, 7, -2, 29);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(3)
|
||||
void negativeQualityFail() {
|
||||
testItemException(itemError);
|
||||
}
|
||||
@Test
|
||||
@Order(3)
|
||||
void negativeQualityFail() {
|
||||
testItemException(itemError);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -8,42 +8,42 @@ import org.junit.jupiter.api.TestMethodOrder;
|
||||
|
||||
import static com.gildedrose.helper.TestHelper.testItem;
|
||||
import static com.gildedrose.helper.TestHelper.testItemException;
|
||||
import static com.gildedrose.item_helpers.ItemName.BACKSTAGE_PASS;
|
||||
import static com.gildedrose.items.BackstagePassItem.BACKSTAGE_PASS;
|
||||
|
||||
@TestMethodOrder(OrderAnnotation.class)
|
||||
class BackstagePassItemTest {
|
||||
|
||||
private final Item item = new Item(BACKSTAGE_PASS.toString(), 15, 20);
|
||||
private final Item itemError = new Item(BACKSTAGE_PASS.toString(), 10, -5);
|
||||
private final Item item = new Item(BACKSTAGE_PASS, 15, 20);
|
||||
private final Item itemError = new Item(BACKSTAGE_PASS, 10, -5);
|
||||
|
||||
@Test
|
||||
@Order(1)
|
||||
void testIncrementQualityByOneSuccess() {
|
||||
testItem(item, 5, 10, 25);
|
||||
}
|
||||
@Test
|
||||
@Order(1)
|
||||
void testIncrementQualityByOneSuccess() {
|
||||
testItem(item, 5, 10, 25);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(2)
|
||||
void testIncrementQualityByTwoSuccess() {
|
||||
testItem(item, 10, 5, 35);
|
||||
}
|
||||
@Test
|
||||
@Order(2)
|
||||
void testIncrementQualityByTwoSuccess() {
|
||||
testItem(item, 10, 5, 35);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(3)
|
||||
void testIncrementQualityByThreeSuccess() {
|
||||
testItem(item, 15, 0, 50);
|
||||
}
|
||||
@Test
|
||||
@Order(3)
|
||||
void testIncrementQualityByThreeSuccess() {
|
||||
testItem(item, 15, 0, 50);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(4)
|
||||
void testQualityZeroSuccess() {
|
||||
testItem(item, 16, -1, 0);
|
||||
}
|
||||
@Test
|
||||
@Order(4)
|
||||
void testQualityZeroSuccess() {
|
||||
testItem(item, 16, -1, 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(2)
|
||||
void negativeQualityFail() {
|
||||
testItemException(itemError);
|
||||
}
|
||||
@Test
|
||||
@Order(2)
|
||||
void negativeQualityFail() {
|
||||
testItemException(itemError);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -8,29 +8,29 @@ import org.junit.jupiter.api.TestMethodOrder;
|
||||
|
||||
import static com.gildedrose.helper.TestHelper.testItem;
|
||||
import static com.gildedrose.helper.TestHelper.testItemException;
|
||||
import static com.gildedrose.item_helpers.ItemName.CONJURED;
|
||||
import static com.gildedrose.items.ConjuredItem.CONJURED;
|
||||
|
||||
@TestMethodOrder(OrderAnnotation.class)
|
||||
class ConjuredItemTest {
|
||||
|
||||
private final Item item = new Item(CONJURED.toString(), 5, 20);
|
||||
private final Item itemError = new Item(CONJURED.toString(), 10, -5);
|
||||
private final Item item = new Item(CONJURED, 5, 20);
|
||||
private final Item itemError = new Item(CONJURED, 10, -5);
|
||||
|
||||
@Test
|
||||
@Order(1)
|
||||
void decrementQualityByTwoSuccess() {
|
||||
testItem(item, 2, 3, 16);
|
||||
}
|
||||
@Test
|
||||
@Order(1)
|
||||
void decrementQualityByTwoSuccess() {
|
||||
testItem(item, 2, 3, 16);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(2)
|
||||
void decrementQualityByFourSuccess() {
|
||||
testItem(item, 10, -5, 0);
|
||||
}
|
||||
@Test
|
||||
@Order(2)
|
||||
void decrementQualityByFourSuccess() {
|
||||
testItem(item, 10, -5, 0);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(3)
|
||||
void negativeQualityFail() {
|
||||
testItemException(itemError);
|
||||
}
|
||||
@Test
|
||||
@Order(3)
|
||||
void negativeQualityFail() {
|
||||
testItemException(itemError);
|
||||
}
|
||||
}
|
||||
|
||||
@ -9,7 +9,7 @@ import org.junit.jupiter.api.TestMethodOrder;
|
||||
|
||||
import static com.gildedrose.helper.TestHelper.testItem;
|
||||
import static com.gildedrose.item_helpers.QualityValidator.NOT_LEGENDARY_ITEM_ERROR_MESSAGE;
|
||||
import static com.gildedrose.item_helpers.ItemName.LEGENDARY;
|
||||
import static com.gildedrose.items.LegendaryItem.LEGENDARY;
|
||||
import static com.gildedrose.items.LegendaryItem.LEGENDARY_ITEM_QUALITY;
|
||||
import static org.junit.jupiter.api.Assertions.assertThrows;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
@ -17,29 +17,28 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
@TestMethodOrder(OrderAnnotation.class)
|
||||
class LegendaryItemTest {
|
||||
|
||||
private final Item item = new Item(LEGENDARY.toString(), 5, 80);
|
||||
private final Item fakeLegendaryItem = new Item(LEGENDARY.toString(), 5, 75);
|
||||
private final Item itemError = new Item(LEGENDARY.toString(), 10, -5);
|
||||
private final Item item = new Item(LEGENDARY, 5, 80);
|
||||
private final Item fakeLegendaryItem = new Item(LEGENDARY, 5, 75);
|
||||
|
||||
@Test
|
||||
@Order(1)
|
||||
void getLegendaryQualityBeforeSellInDateSuccess() {
|
||||
testItem(item, 2, 3, LEGENDARY_ITEM_QUALITY);
|
||||
}
|
||||
@Test
|
||||
@Order(1)
|
||||
void getLegendaryQualityBeforeSellInDateSuccess() {
|
||||
testItem(item, 2, 3, LEGENDARY_ITEM_QUALITY);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(2)
|
||||
void getLegendaryQualityPassSellInDateSuccess() {
|
||||
testItem(item, 10, -5, LEGENDARY_ITEM_QUALITY);
|
||||
}
|
||||
@Test
|
||||
@Order(2)
|
||||
void getLegendaryQualityPassSellInDateSuccess() {
|
||||
testItem(item, 10, -5, LEGENDARY_ITEM_QUALITY);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(3)
|
||||
void testFakeLegendaryItemExceptionFail() {
|
||||
GildedRose gildedRose = new GildedRose(fakeLegendaryItem);
|
||||
Exception exception = assertThrows(IllegalArgumentException.class, gildedRose::updateQuality);
|
||||
String actualMessage = exception.getMessage();
|
||||
assertTrue(actualMessage.contains(NOT_LEGENDARY_ITEM_ERROR_MESSAGE));
|
||||
}
|
||||
@Test
|
||||
@Order(3)
|
||||
void testFakeLegendaryItemExceptionFail() {
|
||||
GildedRose gildedRose = new GildedRose(fakeLegendaryItem);
|
||||
Exception exception = assertThrows(IllegalArgumentException.class, gildedRose::updateQuality);
|
||||
String actualMessage = exception.getMessage();
|
||||
assertTrue(actualMessage.contains(NOT_LEGENDARY_ITEM_ERROR_MESSAGE));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -7,36 +7,36 @@ import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
|
||||
import static com.gildedrose.helper.TestHelper.*;
|
||||
import static com.gildedrose.item_helpers.ItemName.NORMAL;
|
||||
import static com.gildedrose.items.NormalItem.NORMAL;
|
||||
|
||||
@TestMethodOrder(OrderAnnotation.class)
|
||||
class NormalItemTest {
|
||||
|
||||
private final Item item = new Item(NORMAL.toString(), 5, 20);
|
||||
private final Item itemNegativeQuality = new Item(NORMAL.toString(), 10, -5);
|
||||
private final Item itemAboveLimitQuality = new Item(NORMAL.toString(), 10, 60);
|
||||
private final Item item = new Item(NORMAL, 5, 20);
|
||||
private final Item itemNegativeQuality = new Item(NORMAL, 10, -5);
|
||||
private final Item itemAboveLimitQuality = new Item(NORMAL, 10, 60);
|
||||
|
||||
@Test
|
||||
@Order(1)
|
||||
void decrementQualityByOneSuccess() {
|
||||
testItem(item, 2, 3, 18);
|
||||
}
|
||||
@Test
|
||||
@Order(1)
|
||||
void decrementQualityByOneSuccess() {
|
||||
testItem(item, 2, 3, 18);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(2)
|
||||
void decrementQualityByTwoSuccess() {
|
||||
testItem(item, 10, -5, 5);
|
||||
}
|
||||
@Test
|
||||
@Order(2)
|
||||
void decrementQualityByTwoSuccess() {
|
||||
testItem(item, 10, -5, 5);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(3)
|
||||
void negativeQualityFail() {
|
||||
testItemException(itemNegativeQuality);
|
||||
}
|
||||
@Test
|
||||
@Order(3)
|
||||
void negativeQualityFail() {
|
||||
testItemException(itemNegativeQuality);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(4)
|
||||
void QualityAboveLimitFail() {
|
||||
testItemQualityAboveLimitException(itemAboveLimitQuality);
|
||||
}
|
||||
@Test
|
||||
@Order(4)
|
||||
void QualityAboveLimitFail() {
|
||||
testItemQualityAboveLimitException(itemAboveLimitQuality);
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,21 +5,21 @@ import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
|
||||
import static com.gildedrose.item_helpers.ItemName.AGED_BRIE;
|
||||
import static com.gildedrose.items.AgedBrieItem.AGED_BRIE;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
@TestMethodOrder(OrderAnnotation.class)
|
||||
class ItemClassTest {
|
||||
|
||||
private final Item item = new Item(AGED_BRIE.toString(), 5, 20);
|
||||
private final Item item = new Item(AGED_BRIE, 5, 20);
|
||||
|
||||
@Test
|
||||
@Order(1)
|
||||
void testItemSuccess() {
|
||||
assertEquals(AGED_BRIE.toString(), item.name);
|
||||
assertEquals(5, item.sellIn);
|
||||
assertEquals(20, item.quality);
|
||||
assertEquals("Aged Brie, 5, 20", item.toString());
|
||||
}
|
||||
@Test
|
||||
@Order(1)
|
||||
void testItemSuccess() {
|
||||
assertEquals(AGED_BRIE, item.name);
|
||||
assertEquals(5, item.sellIn);
|
||||
assertEquals(20, item.quality);
|
||||
assertEquals("Aged Brie, 5, 20", item.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user