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/randompartypy/src/test/java/geniusweb/exampleparties/randompartypy/RandomPartyTest.java

    r1 r8  
    4242import geniusweb.progress.ProgressRounds;
    4343import geniusweb.pythonadapter.PythonPartyAdapter;
     44import geniusweb.references.Parameters;
    4445import geniusweb.references.ProfileRef;
    4546import geniusweb.references.ProtocolRef;
     
    5657        private PythonPartyAdapter party;
    5758        private TestConnection connection = new TestConnection();
    58         private ProtocolRef protocol = mock(ProtocolRef.class);
    59         private ProgressRounds progress = mock(ProgressRounds.class);
     59        private final ProtocolRef protocol = mock(ProtocolRef.class);
     60        private final ProgressRounds progress = mock(ProgressRounds.class);
    6061        private Settings settings;
     62        private final Parameters parameters = new Parameters();
    6163
    6264        private LinearAdditiveUtilitySpace profile; // the real profile
     
    7476                };
    7577                settings = new Settings(new PartyId("party1"),
    76                                 new ProfileRef(new URI("file:" + PROFILE)), protocol, progress);
     78                                new ProfileRef(new URI("file:" + PROFILE)), protocol, progress,
     79                                parameters);
    7780                String serialized = new String(Files.readAllBytes(Paths.get(PROFILE)),
    7881                                StandardCharsets.UTF_8);
Note: See TracChangeset for help on using the changeset viewer.