Changeset 23 for protocol/src/test/java/geniusweb/protocol/tournament/allpermutations/AllPermutationsStateTest.java
- Timestamp:
- 09/28/20 09:28:44 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocol/src/test/java/geniusweb/protocol/tournament/allpermutations/AllPermutationsStateTest.java
r21 r23 9 9 import java.math.BigInteger; 10 10 import java.util.ArrayList; 11 import java.util.Arrays; 11 12 import java.util.List; 13 import java.util.Map; 12 14 13 15 import org.junit.Test; 14 16 17 import geniusweb.actions.PartyId; 15 18 import geniusweb.protocol.session.SessionResult; 16 19 import geniusweb.protocol.session.SessionSettings; … … 32 35 SessionSettings.class); 33 36 private final long NOW = 1000; 37 private PartyWithProfile pp1 = mock(PartyWithProfile.class); 38 private PartyWithProfile pp2 = mock(PartyWithProfile.class); 34 39 35 40 @SuppressWarnings("unchecked") 36 private final List<PartyWithProfile> participants = mock(List.class);41 private final List<PartyWithProfile> participants = Arrays.asList(pp1, pp2); 37 42 38 43 @Test … … 85 90 86 91 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); 88 96 AllPermutationsState state1 = state.with(result); 89 97
Note:
See TracChangeset
for help on using the changeset viewer.