Line | |
---|
1 | package genius.core.utility;
|
---|
2 |
|
---|
3 | import static org.junit.Assert.assertEquals;
|
---|
4 |
|
---|
5 | import java.io.IOException;
|
---|
6 |
|
---|
7 | import org.junit.Test;
|
---|
8 |
|
---|
9 | import genius.core.DomainImpl;
|
---|
10 |
|
---|
11 | public 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.