use of pcgen.rules.context.RuntimeReferenceContext in project pcgen by PCGen.
the class ChangeProfFacetTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
context = new RuntimeLoadContext(new RuntimeReferenceContext(), new ConsolidatedListCommitStrategy());
CDOMObject cdo1 = new PCTemplate();
cdo1.setName("Template1");
CDOMObject cdo2 = new Race();
cdo2.setName("Race1");
ChangeProf st1 = getObject();
ChangeProf st2 = getObject();
cdo1.addToListFor(ListKey.CHANGEPROF, st1);
cdo2.addToListFor(ListKey.CHANGEPROF, st2);
source = new CDOMObject[] { cdo1, cdo2 };
target = new ChangeProf[] { st1, st2 };
}
use of pcgen.rules.context.RuntimeReferenceContext in project pcgen by PCGen.
the class AppliedBonusFacetTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
context = new RuntimeLoadContext(new RuntimeReferenceContext(), new ConsolidatedListCommitStrategy());
addBonus(Combat.class);
}
use of pcgen.rules.context.RuntimeReferenceContext in project pcgen by PCGen.
the class RequiredTokenTest method resetContext.
protected void resetContext() {
URI testURI = testCampaign.getURI();
context = new RuntimeLoadContext(new RuntimeReferenceContext(), new ConsolidatedListCommitStrategy());
context.setSourceURI(testURI);
context.setExtractURI(testURI);
cd = new FactDefinition();
}
use of pcgen.rules.context.RuntimeReferenceContext in project pcgen by PCGen.
the class SelectableTokenTest method resetContext.
protected void resetContext() {
URI testURI = testCampaign.getURI();
context = new RuntimeLoadContext(new RuntimeReferenceContext(), new ConsolidatedListCommitStrategy());
context.setSourceURI(testURI);
context.setExtractURI(testURI);
cd = new FactDefinition();
}
use of pcgen.rules.context.RuntimeReferenceContext in project pcgen by PCGen.
the class FactSetDefTokenTest method resetContext.
protected void resetContext() {
URI testURI = testCampaign.getURI();
context = new RuntimeLoadContext(new RuntimeReferenceContext(), new ConsolidatedListCommitStrategy());
context.setSourceURI(testURI);
context.setExtractURI(testURI);
fd = new FactSetDefinition();
}
Aggregations