Changeset 8 for exampleparties/randompartypy/src
- Timestamp:
- 09/30/19 15:37:05 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/randompartypy/src/test/java/geniusweb/exampleparties/randompartypy/RandomPartyTest.java
r1 r8 42 42 import geniusweb.progress.ProgressRounds; 43 43 import geniusweb.pythonadapter.PythonPartyAdapter; 44 import geniusweb.references.Parameters; 44 45 import geniusweb.references.ProfileRef; 45 46 import geniusweb.references.ProtocolRef; … … 56 57 private PythonPartyAdapter party; 57 58 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); 60 61 private Settings settings; 62 private final Parameters parameters = new Parameters(); 61 63 62 64 private LinearAdditiveUtilitySpace profile; // the real profile … … 74 76 }; 75 77 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); 77 80 String serialized = new String(Files.readAllBytes(Paths.get(PROFILE)), 78 81 StandardCharsets.UTF_8);
Note:
See TracChangeset
for help on using the changeset viewer.