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

Method setUp

code/src/test/pcgen/core/prereq/PreCSkillTest.java:180–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178 }
179
180 @BeforeEach
181 @Override
182 public void setUp() throws Exception
183 {
184 super.setUp();
185
186 spot = new Skill();
187 spot.setName("Spot");
188 Globals.getContext().getReferenceContext().importObject(spot);
189
190 Skill listen = new Skill();
191 listen.setName("Listen");
192 Globals.getContext().getReferenceContext().importObject(listen);
193
194 spy1 = new Skill();
195 spy1.setName("Spy 1");
196 spy1.addToListFor(ListKey.TYPE, Type.getConstant("Spy"));
197 Globals.getContext().getReferenceContext().importObject(spy1);
198
199 spy2 = new Skill();
200 spy2.setName("Spy 2");
201 spy2.addToListFor(ListKey.TYPE, Type.getConstant("Spy"));
202 Globals.getContext().getReferenceContext().importObject(spy2);
203
204 spy3 = new Skill();
205 spy3.setName("Spy 3");
206 spy3.addToListFor(ListKey.TYPE, Type.getConstant("Spy"));
207 Globals.getContext().getReferenceContext().importObject(spy3);
208
209 Skill spy4 = new Skill();
210 spy4.setName("Spy 4");
211 spy4.addToListFor(ListKey.TYPE, Type.getConstant("Spy"));
212 Globals.getContext().getReferenceContext().importObject(spy4);
213
214 myClass.setName("My Class");
215 myClass.put(FormulaKey.START_SKILL_POINTS, FormulaFactory.getFormulaFor(3));
216 Globals.getContext().getReferenceContext().importObject(myClass);
217 }
218}

Callers

nothing calls this directly

Calls 8

getContextMethod · 0.95
getConstantMethod · 0.95
getFormulaForMethod · 0.95
importObjectMethod · 0.80
setNameMethod · 0.65
getReferenceContextMethod · 0.65
addToListForMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected