forked from External/mage
Refactor: extract card names compare logic (is empty name, is same name)
Fixed last broken tests
This commit is contained in:
parent
96187ad3c0
commit
02b7e2cf10
63 changed files with 614 additions and 466 deletions
24
Mage/src/main/java/mage/constants/EmptyNames.java
Normal file
24
Mage/src/main/java/mage/constants/EmptyNames.java
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
package mage.constants;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JayDi85
|
||||
*/
|
||||
public enum EmptyNames {
|
||||
|
||||
// TODO: make names for that cards and enable Assert.assertNotEquals("", permanentName); for assertXXX tests
|
||||
// TODO: replace all getName().equals to haveSameNames and haveEmptyName
|
||||
FACE_DOWN_CREATURE(""), // "Face down creature"
|
||||
FACE_DOWN_TOKEN(""); // "Face down token"
|
||||
|
||||
private final String cardName;
|
||||
|
||||
EmptyNames(String cardName) {
|
||||
this.cardName = cardName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return cardName;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue