Changeset 24 for exampleparties/timedependentparty/src/test/java/geniusweb
- Timestamp:
- 10/06/20 13:12:20 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/timedependentparty/src/test/java/geniusweb/exampleparties/timedependentparty/TimeDependentPartyTest.java
r21 r24 8 8 import static org.mockito.Mockito.mock; 9 9 import static org.mockito.Mockito.verify; 10 import static org.mockito.Mockito.when; 10 11 11 12 import java.io.IOException; … … 35 36 import geniusweb.connection.ConnectionEnd; 36 37 import geniusweb.inform.ActionDone; 38 import geniusweb.inform.Agreements; 37 39 import geniusweb.inform.Finished; 38 40 import geniusweb.inform.Inform; … … 181 183 party.connect(connection); 182 184 party.notifyChange(settings); 183 party.notifyChange(new Finished(null)); 185 Agreements agreements = mock(Agreements.class); 186 when(agreements.toString()).thenReturn("agree"); 187 188 party.notifyChange(new Finished(agreements)); 184 189 185 190 verify(reporter).log(eq(Level.INFO), 186 eq("Final ourcome:Finished[ null]"));191 eq("Final ourcome:Finished[agree]")); 187 192 } 188 193
Note:
See TracChangeset
for help on using the changeset viewer.