Changeset 24 for exampleparties/randomparty/src
- Timestamp:
- 10/06/20 13:12:20 (4 years ago)
- Location:
- exampleparties/randomparty/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/randomparty/src/main/java/geniusweb/exampleparties/randomparty/RandomParty.java
r22 r24 40 40 * with sufficient utility. 41 41 * <h2>parameters</h2> 42 * <table> 42 * <table > 43 * <caption>parameters</caption> 43 44 * <tr> 44 45 * <td>minPower</td> -
exampleparties/randomparty/src/test/java/geniusweb/exampleparties/randomparty/RandomPartyTest.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; … … 38 39 import geniusweb.connection.ConnectionEnd; 39 40 import geniusweb.inform.ActionDone; 41 import geniusweb.inform.Agreements; 40 42 import geniusweb.inform.Finished; 41 43 import geniusweb.inform.Inform; … … 163 165 party.connect(connection); 164 166 party.notifyChange(settings); 165 party.notifyChange(new Finished(null)); 167 Agreements agreements = mock(Agreements.class); 168 when(agreements.toString()).thenReturn("agree"); 169 party.notifyChange(new Finished(agreements)); 166 170 167 171 verify(reporter).log(eq(Level.INFO), 168 eq("Final ourcome:Finished[ null]"));172 eq("Final ourcome:Finished[agree]")); 169 173 } 170 174
Note:
See TracChangeset
for help on using the changeset viewer.