use of pcgen.cdom.facet.analysis.LevelTableFacet in project pcgen by PCGen.
the class XPFacetTest method getMockFacet.
public XPFacet getMockFacet() throws SecurityException, IllegalArgumentException {
XPFacet f = new XPFacet();
LevelFacet fakeFacet = new LevelFacet() {
@Override
public int getLevelAdjustment(CharID cid) {
return adjustment;
}
};
f.setLevelFacet(fakeFacet);
LevelTableFacet fakeTableFacet = new LevelTableFacet() {
@Override
public int minXPForLevel(int level, CharID cid) {
return minXP.get(level);
}
};
f.setLevelTableFacet(fakeTableFacet);
return f;
}
Aggregations