Ejemplo n.º 1
0
 @Test
 public void testSetPlayerFavor_EmptyList() throws Exception {
   // Given
   int[] player1Favor = {3, 0};
   List<Integer> playerFavorList = new ArrayList<>();
   // When
   sut.setPlayerFavor(player1Favor);
   // Then
   assertThat(sut.getPlayerFavor(3), is(playerFavorList));
 }
Ejemplo n.º 2
0
 @Test
 public void testSetPlayerFavor() throws Exception {
   // Given
   int[] player1Favor = {4, 2, 2, 3};
   List<Integer> playerFavorList = new ArrayList<>(Arrays.asList(2, 3));
   // When
   sut.setPlayerFavor(player1Favor);
   // Then
   assertThat(sut.getPlayerFavor(4), is(playerFavorList));
 }