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/timedependentparty/src/test/java/geniusweb/exampleparties/timedependentparty/TimeDependentPartyTest.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;
     
    3536import geniusweb.connection.ConnectionEnd;
    3637import geniusweb.inform.ActionDone;
     38import geniusweb.inform.Agreements;
    3739import geniusweb.inform.Finished;
    3840import geniusweb.inform.Inform;
     
    181183                party.connect(connection);
    182184                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));
    184189
    185190                verify(reporter).log(eq(Level.INFO),
    186                                 eq("Final ourcome:Finished[null]"));
     191                                eq("Final ourcome:Finished[agree]"));
    187192        }
    188193
Note: See TracChangeset for help on using the changeset viewer.