mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
* Marshland Bloodcaster - fixed game freeze on usage;
* Kentaro, the Smiling Cat - fixed game freeze on usage;
This commit is contained in:
parent
042b58dc5d
commit
a5b41ea920
2 changed files with 22 additions and 5 deletions
|
|
@ -60,6 +60,21 @@ public class SerializationTest extends CardTestPlayerBase {
|
|||
Assert.assertEquals("Must get infected counter", 1, permanent.getCounters(currentGame).getCount(CounterType.M1M1));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_Single_KentaroTheSmilingCat() {
|
||||
CardInfo cardInfo = CardRepository.instance.findCard("Kentaro, the Smiling Cat");
|
||||
Card newCard = cardInfo.getCard();
|
||||
Card permCard = CardUtil.getDefaultCardSideForBattlefield(newCard);
|
||||
PermanentImpl permanent = new PermanentCard(permCard, playerA.getId(), currentGame);
|
||||
currentGame.addPermanent(permanent, 0);
|
||||
|
||||
// test compress (it uses default java serialization)
|
||||
Object compressed = CompressUtil.compress(permanent);
|
||||
Assert.assertTrue("Must be zip", compressed instanceof ZippedObjectImpl);
|
||||
PermanentImpl uncompressed = (PermanentImpl) CompressUtil.decompress(compressed);
|
||||
Assert.assertEquals("Must be same", permanent.getName(), uncompressed.getName());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_LondonMulligan() {
|
||||
LondonMulligan mulligan = new LondonMulligan(15);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue