MCPcopy Create free account
hub / github.com/PCGen/pcgen / setUp

Method setUp

code/src/itest/tokencontent/RaceMonCCSkillTest.java:61–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 private PCClass dragon;
60
61 @Override
62 @BeforeEach
63 public void setUp() throws Exception
64 {
65 super.setUp();
66 lscFacet = FacetLibrary.getFacet(ListSkillCostFacet.class);
67 sk = context.getReferenceContext().constructCDOMObject(Skill.class, "MySkill");
68 dragon = context.getReferenceContext().constructCDOMObject(PCClass.class, "Dragon");
69 dragon.addToListFor(ListKey.TYPE, Type.MONSTER);
70 dragon.put(ObjectKey.IS_MONSTER, Boolean.TRUE);
71 TokenRegistration.register(CHOOSE_SKILL_TOKEN);
72 ChooserFactory.setDelegate(new MockUIDelegate());
73 }
74
75 @Test
76 public void testDirect()

Callers

nothing calls this directly

Calls 7

getFacetMethod · 0.95
registerMethod · 0.95
setDelegateMethod · 0.95
constructCDOMObjectMethod · 0.80
getReferenceContextMethod · 0.65
addToListForMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected