Ignore:
Timestamp:
09/28/20 09:28:44 (4 years ago)
Author:
bart
Message:

Version 1.5.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocol/src/test/java/geniusweb/protocol/tournament/allpermutations/AllPermutationsStateTest.java

    r21 r23  
    99import java.math.BigInteger;
    1010import java.util.ArrayList;
     11import java.util.Arrays;
    1112import java.util.List;
     13import java.util.Map;
    1214
    1315import org.junit.Test;
    1416
     17import geniusweb.actions.PartyId;
    1518import geniusweb.protocol.session.SessionResult;
    1619import geniusweb.protocol.session.SessionSettings;
     
    3235                        SessionSettings.class);
    3336        private final long NOW = 1000;
     37        private PartyWithProfile pp1 = mock(PartyWithProfile.class);
     38        private PartyWithProfile pp2 = mock(PartyWithProfile.class);
    3439
    3540        @SuppressWarnings("unchecked")
    36         private final List<PartyWithProfile> participants = mock(List.class);
     41        private final List<PartyWithProfile> participants = Arrays.asList(pp1, pp2);
    3742
    3843        @Test
     
    8590
    8691                SessionResult result = mock(SessionResult.class);
    87                 when(result.getParticipants()).thenReturn(participants);
     92
     93                Map<PartyId, PartyWithProfile> participants3 = mock(Map.class);
     94                when(participants3.values()).thenReturn(participants);
     95                when(result.getParticipants()).thenReturn(participants3);
    8896                AllPermutationsState state1 = state.with(result);
    8997
Note: See TracChangeset for help on using the changeset viewer.