Ignore:
Timestamp:
10/06/20 13:12:20 (4 years ago)
Author:
bart
Message:

Fixes an issue with processing maxPower of a vote. Javadoc maven plugin now uses latest version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exampleparties/randomparty/src/test/java/geniusweb/exampleparties/randomparty/RandomPartyTest.java

    r21 r24  
    88import static org.mockito.Mockito.mock;
    99import static org.mockito.Mockito.verify;
     10import static org.mockito.Mockito.when;
    1011
    1112import java.io.IOException;
     
    3839import geniusweb.connection.ConnectionEnd;
    3940import geniusweb.inform.ActionDone;
     41import geniusweb.inform.Agreements;
    4042import geniusweb.inform.Finished;
    4143import geniusweb.inform.Inform;
     
    163165                party.connect(connection);
    164166                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));
    166170
    167171                verify(reporter).log(eq(Level.INFO),
    168                                 eq("Final ourcome:Finished[null]"));
     172                                eq("Final ourcome:Finished[agree]"));
    169173        }
    170174
Note: See TracChangeset for help on using the changeset viewer.