Changeset 24 for exampleparties/humangui/src
- Timestamp:
- 10/06/20 13:12:20 (4 years ago)
- Location:
- exampleparties/humangui/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/humangui/src/main/java/geniusweb/exampleparties/humangui/BiddingInfo.java
r21 r24 32 32 * <li>{@link Bid} if user changed his prepared bid (but did not yet offer it) 33 33 * <li>{@link Profile} if the profile was changed 34 * <li>{@ Link Boolean} if the isMyTurn value changed.34 * <li>{@link Boolean} if the isMyTurn value changed. 35 35 * </ul> 36 36 */ … … 57 57 * @param reporter the {@link Reporter} where we can log issues. 58 58 * @param profileint the {@link ProfileInterface} 59 * @throws Exception if we can not reach the protocol server 59 * @throws IOException if we can not reach the protocol server 60 * @throws DeploymentException if we can not reach the protocol server 60 61 */ 61 62 public BiddingInfo(Settings settings, … … 97 98 * 98 99 * @param action the action to execute. 99 * @throws IOException if action can not be sent.100 * @throws IllegalStateException if isMyTurn is false.101 100 */ 102 101 public void doAction(Action action) { -
exampleparties/humangui/src/test/java/geniusweb/exampleparties/humangui/HumanGuiTest.java
r21 r24 6 6 import static org.junit.Assert.assertTrue; 7 7 import static org.mockito.Mockito.mock; 8 import static org.mockito.Mockito.when; 8 9 9 10 import java.io.IOException; … … 28 29 import geniusweb.bidspace.AllBidsList; 29 30 import geniusweb.inform.ActionDone; 31 import geniusweb.inform.Agreements; 30 32 import geniusweb.inform.Finished; 31 33 import geniusweb.inform.Settings; … … 76 78 @After 77 79 public void after() { 78 party.notifyChange(new Finished(null)); 80 Agreements agreements = mock(Agreements.class); 81 when(agreements.toString()).thenReturn("agree"); 82 party.notifyChange(new Finished(agreements)); 79 83 } 80 84
Note:
See TracChangeset
for help on using the changeset viewer.