forked from External/mage
tests: added verify check for wrong predicates usage in filters (ClassCastException errors like #12774)
This commit is contained in:
parent
e1f76c2b6c
commit
cd51954208
14 changed files with 176 additions and 91 deletions
21
Mage/src/main/java/mage/game/FakeMatch.java
Normal file
21
Mage/src/main/java/mage/game/FakeMatch.java
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package mage.game;
|
||||
|
||||
import mage.game.match.MatchImpl;
|
||||
import mage.game.match.MatchOptions;
|
||||
|
||||
/**
|
||||
* Fake match for tests and data check, do nothing.
|
||||
*
|
||||
* @author JayDi85
|
||||
*/
|
||||
public class FakeMatch extends MatchImpl {
|
||||
|
||||
public FakeMatch() {
|
||||
super(new MatchOptions("fake match", "fake game type", true, 2));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void startGame() throws GameException {
|
||||
throw new IllegalStateException("Can't start fake match");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue