forked from External/mage
tests: added automated tests to run all possible dialogs under AI (WIP, part of #13643, improved testable dialogs from #13638);
This commit is contained in:
parent
6ad2cdaa78
commit
361c320890
19 changed files with 555 additions and 107 deletions
|
|
@ -129,8 +129,9 @@ public class TestableDialogsRunner {
|
|||
// all fine, can show it and finish
|
||||
lastSelectedGroup = needGroup;
|
||||
lastSelectedDialog = needDialog;
|
||||
List<String> resInfo = needDialog.showDialog(player, source, game, opponent);
|
||||
needDialog.showResult(player, game, String.join("<br>", resInfo));
|
||||
needDialog.prepare();
|
||||
needDialog.showDialog(player, source, game, opponent);
|
||||
needDialog.showResult(player, game);
|
||||
}
|
||||
|
||||
private Choice prepareSelectGroupChoice(List<String> groups) {
|
||||
|
|
@ -199,5 +200,9 @@ public class TestableDialogsRunner {
|
|||
}
|
||||
return choice;
|
||||
}
|
||||
|
||||
public List<TestableDialog> getDialogs() {
|
||||
return this.dialogs;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue