From 9b34f55a9cd0005db3bab1773b4f6694dda5e892 Mon Sep 17 00:00:00 2001 From: melvin Date: Mon, 11 Jun 2012 17:57:46 +0800 Subject: [PATCH] added test for Calcite Snapper --- src/magic/test/TestCalciteSnapper.java | 43 ++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/magic/test/TestCalciteSnapper.java diff --git a/src/magic/test/TestCalciteSnapper.java b/src/magic/test/TestCalciteSnapper.java new file mode 100644 index 0000000000..a95ac22f26 --- /dev/null +++ b/src/magic/test/TestCalciteSnapper.java @@ -0,0 +1,43 @@ +package magic.test; + +import magic.model.MagicGame; +import magic.model.MagicPlayer; +import magic.model.MagicPlayerDefinition; +import magic.model.MagicPlayerProfile; +import magic.model.MagicDuel; +import magic.model.phase.MagicMainPhase; + +class TestCalciteSnapper extends TestGameBuilder { + public MagicGame getGame() { + final MagicDuel duel=new MagicDuel(); + duel.setDifficulty(6); + + final MagicPlayerProfile profile=new MagicPlayerProfile("bgruw"); + final MagicPlayerDefinition player1=new MagicPlayerDefinition("Player",false,profile,15); + final MagicPlayerDefinition player2=new MagicPlayerDefinition("Computer",true,profile,14); + duel.setPlayers(new MagicPlayerDefinition[]{player1,player2}); + duel.setStartPlayer(0); + + final MagicGame game=duel.nextGame(true); + game.setPhase(MagicMainPhase.getFirstInstance()); + final MagicPlayer player=game.getPlayer(0); + final MagicPlayer opponent=game.getPlayer(1); + + MagicPlayer P = player; + + P.setLife(20); + addToLibrary(P, "Plains", 10); + createPermanent(game,P,"Rupture Spire",false,8); + addToHand(P,"Calcite Snapper",1); + + + P = opponent; + + P.setLife(20); + addToLibrary(P, "Plains", 10); + createPermanent(game,P,"Rupture Spire",false,8); + addToHand(P,"Calcite Snapper",1); + + return game; + } +}