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

Method setUp

code/src/test/pcgen/core/prereq/PreRuleTest.java:41–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39public class PreRuleTest extends AbstractCharacterTestCase
40{
41 @BeforeEach
42 @Override
43 protected void setUp() throws Exception
44 {
45 // TODO Auto-generated method stub
46 super.setUp();
47 RuleCheck preRule = new RuleCheck();
48 preRule.setName("PRERULE");
49 preRule.setDefault(false);
50 GameMode gameMode = SettingsHandler.getGameAsProperty().get();
51 gameMode.getModeContext().getReferenceContext().importObject(preRule);
52 }
53
54 @Test
55 public void testRule() throws Exception

Callers

nothing calls this directly

Calls 7

setNameMethod · 0.95
setDefaultMethod · 0.95
getGameAsPropertyMethod · 0.95
getModeContextMethod · 0.95
importObjectMethod · 0.80
getMethod · 0.65
getReferenceContextMethod · 0.65

Tested by

no test coverage detected