use of pcgen.core.character.CompanionMod in project pcgen by PCGen.
the class RaceTypeFacetTest method testGetFromCModOverridesRace.
@Test
public void testGetFromCModOverridesRace() {
Race r = new Race();
r.put(ObjectKey.RACETYPE, TEST_RACE_TYPE);
rfacet.set(id, r);
assertSame(TEST_RACE_TYPE, facet.getRaceType(id));
CompanionMod c = new CompanionMod();
c.put(ObjectKey.RACETYPE, RACE_TYPE_TOO);
cfacet.add(id, c);
assertSame(RACE_TYPE_TOO, facet.getRaceType(id));
cfacet.remove(id, c);
assertSame(TEST_RACE_TYPE, facet.getRaceType(id));
}
Aggregations