mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-12 12:22:12 +00:00
all approval tests running with the java approval test framework
This commit is contained in:
parent
36acc45c3e
commit
9456bfce1f
@ -1,5 +1,5 @@
|
|||||||
package com.gildedrose
|
package com.gildedrose
|
||||||
|
|
||||||
class Item(val name: String, var sellIn: Int, var quality: Int) {
|
case class Item(val name: String, var sellIn: Int, var quality: Int) {
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -29,8 +29,8 @@ public class GildedRoseApprovalTest {
|
|||||||
System.setOut(new PrintStream(fakeoutput));
|
System.setOut(new PrintStream(fakeoutput));
|
||||||
System.setIn(new ByteArrayInputStream("a\n".getBytes()));
|
System.setIn(new ByteArrayInputStream("a\n".getBytes()));
|
||||||
|
|
||||||
// todo: fix Program
|
String[] args = {"30"};
|
||||||
// Program.main();
|
TexttestFixture.main(args);
|
||||||
String output = fakeoutput.toString();
|
String output = fakeoutput.toString();
|
||||||
|
|
||||||
Approvals.verify(output);
|
Approvals.verify(output);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user