mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-18 16:01:42 +00:00
Use app tester in unit test
This commit is contained in:
parent
bd32cf4692
commit
4a6ed7cac1
@ -8,9 +8,7 @@ class GildedRoseTest {
|
||||
|
||||
@Test
|
||||
void foo() {
|
||||
Item[] items = new Item[] { new Item("foo", 0, 0) };
|
||||
GildedRose app = new GildedRose(items);
|
||||
app.updateQuality();
|
||||
GildedRose app = GildedRoseAppTester.runFor(1, new Item("foo", 0, 0));
|
||||
assertEquals("foo", app.items[0].name);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user