Ignore:
Timestamp:
09/30/19 15:37:05 (5 years ago)
Author:
bart
Message:

Added parameter support

File:
1 edited

Legend:

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

    r1 r8  
    4444import geniusweb.profile.utilityspace.LinearAdditiveUtilitySpace;
    4545import geniusweb.progress.ProgressRounds;
     46import geniusweb.references.Parameters;
    4647import geniusweb.references.ProfileRef;
    4748import geniusweb.references.ProtocolRef;
     
    5859
    5960        private RandomParty party;
    60         private TestConnection connection = new TestConnection();
    61         private ProtocolRef protocol = mock(ProtocolRef.class);
    62         private ProgressRounds progress = mock(ProgressRounds.class);
     61        private final TestConnection connection = new TestConnection();
     62        private final ProtocolRef protocol = mock(ProtocolRef.class);
     63        private final ProgressRounds progress = mock(ProgressRounds.class);
    6364        private Settings settings;
    6465        private LinearAdditiveUtilitySpace profile;
     66        private final Parameters parameters = new Parameters();
    6567
    6668        @Before
     
    6971                party = new RandomParty();
    7072                settings = new Settings(new PartyId("party1"),
    71                                 new ProfileRef(new URI("file:" + PROFILE)), protocol, progress);
     73                                new ProfileRef(new URI("file:" + PROFILE)), protocol, progress,
     74                                parameters);
    7275
    7376                String serialized = new String(Files.readAllBytes(Paths.get(PROFILE)),
Note: See TracChangeset for help on using the changeset viewer.