SHARE
TWEET

Untitled

a guest Jul 17th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class ArtIntTest {
  2.  
  3.     ArtInt ai;
  4.  
  5.     /**
  6.      *Set up the test.
  7.      * */
  8.     @Before
  9.     public void setUp(){
  10.         ai = new ArtInt();
  11.     }
  12.  
  13.     /**
  14.      * Test method for ArtInt class's getters/setters.
  15.      **/
  16.     @Test
  17.     public void gettersTest(){
  18.         ai.setBet(10);
  19.         assertEquals(10, ai.getBet());
  20.         ai.setCredit(4000);
  21.         assertEquals(4000, ai.getCredit());
  22.         ai.setHand(new String[]{"cica", "kutya", "kacsa", "ló", "kecske", "szamár", "béka", "egér", "macsek"});
  23.         assertArrayEquals(new String[]{"cica", "kutya", "kacsa", "ló", "kecske", "szamár", "béka", "egér", "macsek"}, ai.getHand());
  24.         ai.setCard("nudli", 0);
  25.         assertEquals("nudli", ai.getHandCard(0));
  26.     }
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top