source: src/test/java/genius/core/utility/AdditiveUtilSpaceTest.java

Last change on this file was 76, checked in by Wouter Pasman, 6 years ago

#28 Added UncertainAdditiveUtilitySpace. Added unit tests for Additive and Uncertain spaces. Added new space type.

File size: 692 bytes
Line 
1package genius.core.utility;
2
3import static org.junit.Assert.assertEquals;
4
5import java.io.IOException;
6
7import org.junit.Test;
8
9import genius.core.DomainImpl;
10
11public class AdditiveUtilSpaceTest {
12
13 String PARTY = "src/test/resources/partydomain/";
14
15 @Test
16 public void testAdditive1() throws IOException {
17 DomainImpl domain = new DomainImpl(PARTY + "party_domain.xml");
18 AdditiveUtilitySpace additive = new AdditiveUtilitySpace(domain,
19 PARTY + "party1_utility.xml");
20
21 assertEquals(UTILITYSPACETYPE.LINEAR, UTILITYSPACETYPE
22 .getUtilitySpaceType(PARTY + "party1_utility.xml"));
23 assertEquals(domain, additive.getDomain());
24 assertEquals(6, additive.getNrOfEvaluators());
25 }
26
27}
Note: See TracBrowser for help on using the repository browser.