mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
refactor: moving COnjured test cases into the UpdateQualityTest class
This commit is contained in:
parent
01718e904e
commit
34f7bb83b1
@ -1,21 +0,0 @@
|
||||
|
||||
package com.gildedrose;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
|
||||
/**
|
||||
* Testing for "Conjured" items
|
||||
*/
|
||||
|
||||
class ConjuredItems {
|
||||
|
||||
@Test
|
||||
void itemConjuredQualityTwiceAsFastAsNormalItems() {
|
||||
System.out.println("\"Conjured\" items degrade in Quality twice as fast as normal items");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -139,5 +139,21 @@ class UpdateQualityTest {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Testing for "Conjured" items
|
||||
*/
|
||||
|
||||
|
||||
@Test
|
||||
void itemConjuredQualityTwiceAsFastAsNormalItems() {
|
||||
System.out.println("\"Conjured\" items degrade in Quality twice as fast as normal items");
|
||||
Item[] items = new Item[]{
|
||||
new Item("Conjured Mana Cake", 3, 6)};
|
||||
GildedRose app = new GildedRose(items);
|
||||
app.updateQuality();
|
||||
assertEquals(4, app.items[0].quality);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -59,7 +59,6 @@ class updateQuantitiesTest {
|
||||
app.updateQuantities();
|
||||
assertEquals(2, app.items.length);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user