Search in sources :

Example 6 with HitDieStep

use of pcgen.cdom.processor.HitDieStep in project pcgen by PCGen.

the class HitDieTokenTest method testUnparseZeroSteps.

@Test
public void testUnparseZeroSteps() throws PersistenceLayerException {
    try {
        primaryProf.put(ObjectKey.HITDIE, new HitDieStep(0, new HitDie(12)));
        assertBadUnparse();
    } catch (IllegalArgumentException e) {
    // Good here too :)
    }
}
Also used : HitDieStep(pcgen.cdom.processor.HitDieStep) HitDie(pcgen.cdom.content.HitDie) Test(org.junit.Test)

Aggregations

HitDie (pcgen.cdom.content.HitDie)6 HitDieStep (pcgen.cdom.processor.HitDieStep)6 Test (org.junit.Test)3 AddingFormula (pcgen.base.formula.AddingFormula)3 DividingFormula (pcgen.base.formula.DividingFormula)3 MultiplyingFormula (pcgen.base.formula.MultiplyingFormula)3 SubtractingFormula (pcgen.base.formula.SubtractingFormula)3 HitDieFormula (pcgen.cdom.processor.HitDieFormula)3 HitDieLock (pcgen.cdom.processor.HitDieLock)3 ParseResult (pcgen.rules.persistence.token.ParseResult)3 PCClass (pcgen.core.PCClass)2 ComplexParseResult (pcgen.rules.persistence.token.ComplexParseResult)2