mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 14:02:05 -08:00
Make the implementations of CardImageSource an enum
This commit is contained in:
parent
3f47d5a253
commit
05785f71b9
11 changed files with 36 additions and 96 deletions
|
|
@ -16,7 +16,7 @@ public class TokensMtgImageSourceTest {
|
|||
|
||||
@Test
|
||||
public void generateTokenUrlTest() throws Exception {
|
||||
CardImageSource imageSource = TokensMtgImageSource.getInstance();
|
||||
CardImageSource imageSource = TokensMtgImageSource.instance;
|
||||
|
||||
String url = imageSource.generateTokenUrl(new CardDownloadData("Thopter", "ORI", "0", false, 1, "ORI", ""));
|
||||
Assert.assertEquals("http://tokens.mtg.onl/tokens/ORI_010-Thopter.jpg", url);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue