Changeset 24 for exampleparties/simpleshaop/src/test/java
- Timestamp:
- 10/06/20 13:12:20 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/simpleshaop/src/test/java/geniusweb/exampleparties/simpleshaop/ShaopPartyTest.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; … … 37 38 import geniusweb.connection.ConnectionEnd; 38 39 import geniusweb.inform.ActionDone; 40 import geniusweb.inform.Agreements; 39 41 import geniusweb.inform.Finished; 40 42 import geniusweb.inform.Inform; … … 178 180 party.connect(connection); 179 181 party.notifyChange(settings); 180 party.notifyChange(new Finished(null)); 182 183 Agreements agreements = mock(Agreements.class); 184 when(agreements.toString()).thenReturn("agree"); 185 party.notifyChange(new Finished(agreements)); 181 186 182 187 verify(reporter).log(eq(Level.INFO), 183 eq("Final ourcome:Finished[ null]"));188 eq("Final ourcome:Finished[agree]")); 184 189 } 185 190
Note:
See TracChangeset
for help on using the changeset viewer.