mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2025-12-11 20:02:09 +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
|
||||
|
||||
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.setIn(new ByteArrayInputStream("a\n".getBytes()));
|
||||
|
||||
// todo: fix Program
|
||||
// Program.main();
|
||||
String[] args = {"30"};
|
||||
TexttestFixture.main(args);
|
||||
String output = fakeoutput.toString();
|
||||
|
||||
Approvals.verify(output);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user