Changeset 10 for exampleparties/randomparty/src/test
- Timestamp:
- 01/28/20 10:19:54 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/randomparty/src/test/java/geniusweb/exampleparties/randomparty/RandomPartyTest.java
r9 r10 42 42 import geniusweb.party.inform.YourTurn; 43 43 import geniusweb.profile.Profile; 44 import geniusweb.profile.utilityspace.LinearAdditive UtilitySpace;44 import geniusweb.profile.utilityspace.LinearAdditive; 45 45 import geniusweb.progress.ProgressRounds; 46 46 import geniusweb.references.Parameters; … … 53 53 public class RandomPartyTest { 54 54 55 private static final ProtocolRef SAOP = new ProtocolRef("SAOP");55 private static final String SAOP = "SAOP"; 56 56 private static final PartyId otherparty = new PartyId("other"); 57 57 private static final String PROFILE = "src/test/resources/testprofile.json"; … … 63 63 private final ProgressRounds progress = mock(ProgressRounds.class); 64 64 private Settings settings; 65 private LinearAdditive UtilitySpaceprofile;65 private LinearAdditive profile; 66 66 private final Parameters parameters = new Parameters(); 67 67 … … 76 76 String serialized = new String(Files.readAllBytes(Paths.get(PROFILE)), 77 77 StandardCharsets.UTF_8); 78 profile = (LinearAdditiveUtilitySpace) jackson.readValue(serialized, 79 Profile.class); 78 profile = (LinearAdditive) jackson.readValue(serialized, Profile.class); 80 79 81 80 } … … 94 93 Capabilities capabilities = party.getCapabilities(); 95 94 assertFalse("party does not define protocols", 96 capabilities.get Protocols().isEmpty());95 capabilities.getBehaviours().isEmpty()); 97 96 } 98 97 … … 176 175 @Test 177 176 public void testGetCapabilities() { 178 assertTrue(party.getCapabilities().get Protocols().contains(SAOP));177 assertTrue(party.getCapabilities().getBehaviours().contains(SAOP)); 179 178 } 180 179
Note:
See TracChangeset
for help on using the changeset viewer.