Changeset 8 for src/test/java/geniusweb/partiesserver/repository
- Timestamp:
- 11/28/19 14:41:10 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/test/java/geniusweb/partiesserver/repository/RunningPartyTest.java
r1 r8 16 16 import com.fasterxml.jackson.databind.ObjectMapper; 17 17 18 import geniusweb.actions.Action;19 18 import geniusweb.actions.PartyId; 20 import geniusweb.connection.DefaultConnection; 21 import geniusweb.partiesserver.repository.AvailableParty; 22 import geniusweb.partiesserver.repository.RunningParty; 19 import geniusweb.partiesserver.websocket.PartySocket; 23 20 import geniusweb.party.Capabilities; 24 21 import geniusweb.party.DefaultParty; … … 90 87 RunningParty rparty = new RunningParty(party1, id1, "name1", now, end, 91 88 null); 92 DefaultConnection<Inform, Action> connection = mock( 93 DefaultConnection.class); 89 PartySocket connection = mock(PartySocket.class); 94 90 rparty = rparty.withConnection(connection); 95 91 } … … 99 95 RunningParty rparty = new RunningParty(party1, id1, "name1", now, end, 100 96 null); 101 DefaultConnection<Inform, Action> connection = mock( 102 DefaultConnection.class); 97 PartySocket connection = mock(PartySocket.class); 103 98 rparty = rparty.withConnection(connection); 104 99 rparty = rparty.withConnection(connection); … … 112 107 RunningParty rparty = new RunningParty(party1, id1, "name1", now, end, 113 108 null); 114 DefaultConnection<Inform, Action> connection = mock( 115 DefaultConnection.class); 109 PartySocket connection = mock(PartySocket.class); 116 110 rparty = rparty.withConnection(connection); 117 111 … … 120 114 121 115 ArgumentCaptor<Inform> argument = ArgumentCaptor.forClass(Inform.class); 122 verify(connection, times(1)).notify Change(argument.capture());116 verify(connection, times(1)).notifyListeners(argument.capture()); 123 117 assertEquals(info, argument.getValue()); 124 118 }
Note:
See TracChangeset
for help on using the changeset viewer.