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

Method createChecks

code/src/itest/pcgen/output/FreeMarkerTest.java:78–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 private void createChecks()
79 {
80 StringManager sm = new StringManager();
81 FactKey<String> sn = FactKey.getConstant("ShortName", sm);
82
83 PCCheck pcc = new PCCheck();
84 pcc.setName("Willpower");
85 pcc.put(sn, new BasicIndirect<>(sm, "Will"));
86 CF.add(id, pcc);
87 pcc = new PCCheck();
88 pcc.setName("Reflex");
89 pcc.put(sn, new BasicIndirect<>(sm, "Ref"));
90 CF.add(id, pcc);
91 pcc = new PCCheck();
92 pcc.setName("Fortitude");
93 pcc.put(sn, new BasicIndirect<>(sm, "Fort"));
94 CF.add(id, pcc);
95
96 FactKeyActor<?> fka = new FactKeyActor<>(sn);
97 CDOMObjectWrapper.load(dsid, pcc.getClass(), "shortname", fka);
98 }
99
100}

Callers 2

testBasicMethod · 0.95
testNestedMethod · 0.95

Calls 5

getConstantMethod · 0.95
loadMethod · 0.95
setNameMethod · 0.65
putMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected