mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 14:31:28 +00:00
Code Refactoring : Extracted logic of sellin days to new method.
This commit is contained in:
parent
0fda48419e
commit
8fb53ac4d3
@ -60,6 +60,7 @@ class GildedRose {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void updateSellInDays(Item item) {
|
||||
item.sellIn--;
|
||||
}
|
||||
|
||||
@ -5,7 +5,6 @@ import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
class GildedRoseTest {
|
||||
|
||||
@Test
|
||||
void testUpdateSellInDaysForAgedBrie() {
|
||||
Item[] items = new Item[] { new Item("Aged Brie", 1, 1) };
|
||||
|
||||
Loading…
Reference in New Issue
Block a user