mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
fix: fixing the itemSulfurasNotChangeQuality test case
This commit is contained in:
parent
f691744b2b
commit
ef58e2bf7a
@ -126,15 +126,15 @@ class UpdateQualityTest {
|
||||
|
||||
|
||||
@Test
|
||||
void itemSulfurasNotDecreasedQuality() {
|
||||
System.out.println("\"Sulfuras\", being a legendary item, never decreases in Quality");
|
||||
Item[] items = new Item[]{new Item("Sulfuras, Hand of Ragnaros", 5, 79)};
|
||||
void itemSulfurasNotChangeQuality() {
|
||||
System.out.println("\"Sulfuras\", being a legendary item, never decreases in Quality and stays the same");
|
||||
Item[] items = new Item[]{new Item("Sulfuras, Hand of Ragnaros", 5, 44)};
|
||||
GildedRose app = new GildedRose(items);
|
||||
assertEquals("Sulfuras, Hand of Ragnaros", app.items[0].name);
|
||||
for (int i = 0; i < 10; i++) {
|
||||
app.updateQuality();
|
||||
}
|
||||
assertEquals(79, app.items[0].quality);
|
||||
assertEquals(44, app.items[0].quality);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Loading…
Reference in New Issue
Block a user