Changeset 20 for opponentmodel/src/test/java/geniusweb
- Timestamp:
- 08/05/20 09:42:15 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
opponentmodel/src/test/java/geniusweb/profile/opponentmodel/FrequencyOppModelTest.java
r18 r20 87 87 bid3 = new Bid(issuevalues); 88 88 89 oppModel1 = new FrequencyOpponentModel( domain);90 oppModel1b = new FrequencyOpponentModel( domain);91 oppModel2 = new FrequencyOpponentModel( domain2);92 oppModel3 = new FrequencyOpponentModel( domain3);89 oppModel1 = new FrequencyOpponentModel().with(domain, null); 90 oppModel1b = new FrequencyOpponentModel().with(domain, null); 91 oppModel2 = new FrequencyOpponentModel().with(domain2, null); 92 oppModel3 = new FrequencyOpponentModel().with(domain3, null); 93 93 oppModel4 = oppModel3.with(new Offer(other, bid1), progress); 94 94 … … 113 113 @Test(expected = NullPointerException.class) 114 114 public void smokeTestNull() { 115 new FrequencyOpponentModel( null);115 new FrequencyOpponentModel().with((Domain) null, null); 116 116 } 117 117 118 118 @Test 119 119 public void smokeTest() { 120 new FrequencyOpponentModel( domain);120 new FrequencyOpponentModel().with(domain, null); 121 121 } 122 122 123 123 @Test 124 124 public void testEmptyModel() { 125 FrequencyOpponentModel oppModel = new FrequencyOpponentModel(domain); 125 FrequencyOpponentModel oppModel = new FrequencyOpponentModel() 126 .with(domain, null); 126 127 assertEquals(BigDecimal.ONE, oppModel.getUtility(bid1)); 127 128 assertEquals(BigDecimal.ONE, oppModel.getUtility(bid2)); … … 153 154 } 154 155 156 @Test 157 public void testPartialBidUpdate() { 158 FrequencyOpponentModel oppModel = oppModel1.with(new Offer(other, bid1), 159 progress); 160 Bid partialbid = new Bid(ISS1, I1V1); 161 oppModel.with(new Offer(other, partialbid), progress); 162 } 163 155 164 }
Note:
See TracChangeset
for help on using the changeset viewer.