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.

Location:
exampleparties/anac2019/winkyagent/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • exampleparties/anac2019/winkyagent/src/main/java/geniusweb/exampleparties/anac2019/winkyagent/SimpleLinearOrdering.java

    r12 r24  
    2929        /**
    3030         *
    31          * @param domain
     31         * @param domain the {@link Domain}
    3232         * @param bids   a list of bids, ordered from lowest to highest util. The
    3333         *               first bid will have utility 0, the last utility 1. If only
     
    6767        /**
    6868         *
    69          * @param bid
     69         * @param bid the {@link Bid}
    7070         * @return true iff bid is contained in this ordering
    7171         */
     
    8484        /**
    8585         *
    86          * @param profile
     86         * @param profile the {@link Profile}
    8787         * @return a list of bids in the profile sorted from low to high utility.
    8888         */
  • exampleparties/anac2019/winkyagent/src/test/java/geniusweb/exampleparties/anac2019/winkyagent/WinkyAgentTest.java

    r21 r24  
    3535import geniusweb.connection.ConnectionEnd;
    3636import geniusweb.inform.ActionDone;
     37import geniusweb.inform.Agreements;
    3738import geniusweb.inform.Finished;
    3839import geniusweb.inform.Inform;
     
    174175                party.connect(connection);
    175176                party.notifyChange(settings);
    176                 party.notifyChange(new Finished(null));
     177
     178                Agreements agreements = mock(Agreements.class);
     179                when(agreements.toString()).thenReturn("agree");
     180                party.notifyChange(new Finished(agreements));
    177181
    178182                verify(reporter).log(eq(Level.INFO),
    179                                 eq("Final ourcome:Finished[null]"));
     183                                eq("Final ourcome:Finished[agree]"));
    180184        }
    181185
Note: See TracChangeset for help on using the changeset viewer.