Search in sources :

Example 11 with LevelInfo

use of pcgen.core.LevelInfo in project pcgen by PCGen.

the class XPTableFacetTest method testGetLevelInfo.

@Test
public void testGetLevelInfo() {
    XPTable t1 = getItem();
    LevelInfo li = new LevelInfo();
    t1.addLevelInfo("1", li);
    CharID id = getCharID();
    facet.set(id, t1);
    LevelInfo xpt = facet.getLevelInfo(id, 1);
    assertNotNull(xpt);
    assertSame(li, xpt);
}
Also used : XPTable(pcgen.core.XPTable) LevelInfo(pcgen.core.LevelInfo) CharID(pcgen.cdom.enumeration.CharID) AbstractItemFacetTest(pcgen.cdom.testsupport.AbstractItemFacetTest) Test(org.junit.Test)

Aggregations

LevelInfo (pcgen.core.LevelInfo)11 GameMode (pcgen.core.GameMode)6 XPTable (pcgen.core.XPTable)5 PCStat (pcgen.core.PCStat)4 PlayerCharacter (pcgen.core.PlayerCharacter)4 LoadContext (pcgen.rules.context.LoadContext)4 Test (org.junit.Test)3 CharID (pcgen.cdom.enumeration.CharID)3 AbstractItemFacetTest (pcgen.cdom.testsupport.AbstractItemFacetTest)3 PCClass (pcgen.core.PCClass)3 Race (pcgen.core.Race)3 Skill (pcgen.core.Skill)3 BonusObj (pcgen.core.bonus.BonusObj)3 LoadInfo (pcgen.core.system.LoadInfo)2 StringTokenizer (java.util.StringTokenizer)1 Before (org.junit.Before)1 Equipment (pcgen.core.Equipment)1 PCLevelInfo (pcgen.core.pclevelinfo.PCLevelInfo)1 AbstractReferenceContext (pcgen.rules.context.AbstractReferenceContext)1