Search in sources :

Example 11 with FactDefinition

use of pcgen.cdom.content.fact.FactDefinition in project pcgen by PCGen.

the class FactDefTokenTest method resetContext.

protected void resetContext() {
    URI testURI = testCampaign.getURI();
    context = new RuntimeLoadContext(new RuntimeReferenceContext(), new ConsolidatedListCommitStrategy());
    context.setSourceURI(testURI);
    context.setExtractURI(testURI);
    fd = new FactDefinition();
}
Also used : FactDefinition(pcgen.cdom.content.fact.FactDefinition) ConsolidatedListCommitStrategy(pcgen.rules.context.ConsolidatedListCommitStrategy) RuntimeReferenceContext(pcgen.rules.context.RuntimeReferenceContext) URI(java.net.URI) RuntimeLoadContext(pcgen.rules.context.RuntimeLoadContext)

Example 12 with FactDefinition

use of pcgen.cdom.content.fact.FactDefinition in project pcgen by PCGen.

the class VisibleTokenTest 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();
}
Also used : FactDefinition(pcgen.cdom.content.fact.FactDefinition) ConsolidatedListCommitStrategy(pcgen.rules.context.ConsolidatedListCommitStrategy) RuntimeReferenceContext(pcgen.rules.context.RuntimeReferenceContext) URI(java.net.URI) RuntimeLoadContext(pcgen.rules.context.RuntimeLoadContext)

Aggregations

FactDefinition (pcgen.cdom.content.fact.FactDefinition)12 URI (java.net.URI)8 ConsolidatedListCommitStrategy (pcgen.rules.context.ConsolidatedListCommitStrategy)8 RuntimeLoadContext (pcgen.rules.context.RuntimeLoadContext)8 RuntimeReferenceContext (pcgen.rules.context.RuntimeReferenceContext)8 StringManager (pcgen.base.format.StringManager)2 FactSetDefinition (pcgen.cdom.content.factset.FactSetDefinition)1 LoadContext (pcgen.rules.context.LoadContext)1 Visibility (pcgen.util.enumeration.Visibility)1