Changeset 8 for exampleparties/randomparty/src/test/java/geniusweb
- Timestamp:
- 09/30/19 15:37:05 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/randomparty/src/test/java/geniusweb/exampleparties/randomparty/RandomPartyTest.java
r1 r8 44 44 import geniusweb.profile.utilityspace.LinearAdditiveUtilitySpace; 45 45 import geniusweb.progress.ProgressRounds; 46 import geniusweb.references.Parameters; 46 47 import geniusweb.references.ProfileRef; 47 48 import geniusweb.references.ProtocolRef; … … 58 59 59 60 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); 63 64 private Settings settings; 64 65 private LinearAdditiveUtilitySpace profile; 66 private final Parameters parameters = new Parameters(); 65 67 66 68 @Before … … 69 71 party = new RandomParty(); 70 72 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); 72 75 73 76 String serialized = new String(Files.readAllBytes(Paths.get(PROFILE)),
Note:
See TracChangeset
for help on using the changeset viewer.