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/simpleshaop/src/test/java/geniusweb/exampleparties/simpleshaop/ShaopPartyTest.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;
     
    3738import geniusweb.connection.ConnectionEnd;
    3839import geniusweb.inform.ActionDone;
     40import geniusweb.inform.Agreements;
    3941import geniusweb.inform.Finished;
    4042import geniusweb.inform.Inform;
     
    178180                party.connect(connection);
    179181                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));
    181186
    182187                verify(reporter).log(eq(Level.INFO),
    183                                 eq("Final ourcome:Finished[null]"));
     188                                eq("Final ourcome:Finished[agree]"));
    184189        }
    185190
Note: See TracChangeset for help on using the changeset viewer.