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

Method setUp

code/src/test/pcgen/core/prereq/PreDomainTest.java:168–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166 }
167
168 @BeforeEach
169 @Override
170 protected void setUp() throws Exception
171 {
172 super.setUp();
173
174 Domain goodDomain = new Domain();
175 goodDomain.setName("Good");
176 Globals.getContext().getReferenceContext().importObject(goodDomain);
177
178 Domain animalDomain = new Domain();
179 animalDomain.setName("Animal");
180 Globals.getContext().getReferenceContext().importObject(animalDomain);
181
182 deity = new Deity();
183 deity.setName("Test Deity");
184 deity.put(ObjectKey.ALIGNMENT, CDOMDirectSingleRef.getRef(ng));
185 deity.putToList(Deity.DOMAINLIST, CDOMDirectSingleRef
186 .getRef(goodDomain), new SimpleAssociatedObject());
187 deity.putToList(Deity.DOMAINLIST, CDOMDirectSingleRef
188 .getRef(animalDomain), new SimpleAssociatedObject());
189 }
190}

Callers

nothing calls this directly

Calls 7

getContextMethod · 0.95
getRefMethod · 0.95
importObjectMethod · 0.80
putToListMethod · 0.80
setNameMethod · 0.65
getReferenceContextMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected