Search in sources :

Example 6 with ChangeProf

use of pcgen.cdom.content.ChangeProf in project pcgen by PCGen.

the class GlobalChangeProfTest method containsExpected.

@Override
protected boolean containsExpected() {
    ChangeProf changeProf = changeProfFacet.getSet(id).iterator().next();
    boolean sourceMatch = changeProf.getSource().equals(context.getReferenceContext().getCDOMReference(WeaponProf.class, "Axe"));
    boolean targetMatch = changeProf.getResult().equals(context.getReferenceContext().getCDOMTypeReference(WeaponProf.class, "Martial"));
    return sourceMatch && targetMatch;
}
Also used : ChangeProf(pcgen.cdom.content.ChangeProf) WeaponProf(pcgen.core.WeaponProf)

Aggregations

ChangeProf (pcgen.cdom.content.ChangeProf)6 WeaponProf (pcgen.core.WeaponProf)4 ArrayList (java.util.ArrayList)2 CDOMObject (pcgen.cdom.base.CDOMObject)2 StringTokenizer (java.util.StringTokenizer)1 TreeSet (java.util.TreeSet)1 HashMapToList (pcgen.base.util.HashMapToList)1 CDOMReference (pcgen.cdom.base.CDOMReference)1 Ungranted (pcgen.cdom.base.Ungranted)1 CDOMGroupRef (pcgen.cdom.reference.CDOMGroupRef)1 PCTemplate (pcgen.core.PCTemplate)1 Race (pcgen.core.Race)1 AbstractReferenceContext (pcgen.rules.context.AbstractReferenceContext)1 ConsolidatedListCommitStrategy (pcgen.rules.context.ConsolidatedListCommitStrategy)1 RuntimeLoadContext (pcgen.rules.context.RuntimeLoadContext)1 RuntimeReferenceContext (pcgen.rules.context.RuntimeReferenceContext)1 ComplexParseResult (pcgen.rules.persistence.token.ComplexParseResult)1