Changeset 10 for exampleparties/humangui/src/test/java
- Timestamp:
- 01/28/20 10:19:54 (5 years ago)
- Location:
- exampleparties/humangui/src/test/java/geniusweb/exampleparties/humangui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
exampleparties/humangui/src/test/java/geniusweb/exampleparties/humangui/BiddingInfoTest.java
r9 r10 32 32 import geniusweb.party.inform.Settings; 33 33 import geniusweb.profile.Profile; 34 import geniusweb.profile.utilityspace.LinearAdditive UtilitySpace;34 import geniusweb.profile.utilityspace.LinearAdditive; 35 35 import geniusweb.profileconnection.ProfileConnectionFactory; 36 36 import geniusweb.profileconnection.ProfileInterface; … … 61 61 private final ProgressRounds progress = mock(ProgressRounds.class); 62 62 private Settings settings; 63 private LinearAdditive UtilitySpaceprofile, profile2;63 private LinearAdditive profile, profile2; 64 64 private final Parameters parameters = new Parameters(); 65 65 private Reporter reporter = mock(Reporter.class); … … 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 String serialized2 = new String(Files.readAllBytes(Paths.get(PROFILE2)), 81 80 StandardCharsets.UTF_8); 82 profile2 = (LinearAdditive UtilitySpace) jackson.readValue(serialized2,81 profile2 = (LinearAdditive) jackson.readValue(serialized2, 83 82 Profile.class); 84 83 -
exampleparties/humangui/src/test/java/geniusweb/exampleparties/humangui/HumanGuiTest.java
r9 r10 34 34 import geniusweb.party.inform.YourTurn; 35 35 import geniusweb.profile.Profile; 36 import geniusweb.profile.utilityspace.LinearAdditive UtilitySpace;36 import geniusweb.profile.utilityspace.LinearAdditive; 37 37 import geniusweb.progress.ProgressRounds; 38 38 import geniusweb.references.Parameters; … … 57 57 private final ProgressRounds progress = mock(ProgressRounds.class); 58 58 private Settings settings; 59 private LinearAdditive UtilitySpaceprofile;59 private LinearAdditive profile; 60 60 private final Parameters parameters = new Parameters(); 61 61 … … 70 70 String serialized = new String(Files.readAllBytes(Paths.get(PROFILE)), 71 71 StandardCharsets.UTF_8); 72 profile = (LinearAdditiveUtilitySpace) jackson.readValue(serialized, 73 Profile.class); 72 profile = (LinearAdditive) jackson.readValue(serialized, Profile.class); 74 73 75 74 } … … 93 92 Capabilities capabilities = party.getCapabilities(); 94 93 assertFalse("party does not define protocols", 95 capabilities.get Protocols().isEmpty());94 capabilities.getBehaviours().isEmpty()); 96 95 } 97 96 98 97 @Test 99 98 public void testGetCapabilities() { 100 assertTrue(party.getCapabilities().get Protocols().contains(SAOP));99 assertTrue(party.getCapabilities().getBehaviours().contains(SAOP)); 101 100 } 102 101
Note:
See TracChangeset
for help on using the changeset viewer.