mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-13 17:49:25 +00:00
all approval tests running with the java approval test framework
This commit is contained in:
1 parent
36acc45c3e
commit
9456bfce1f
2 files changed
+3
-3
No files matched your search
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user