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

Method loadGameModes

code/src/test/pcgen/util/TestHelper.java:520–545  ·  view source on GitHub ↗
(String testConfigFile)

Source from the content-addressed store, hash-verified

518 }
519
520 public static void loadGameModes(String testConfigFile)
521 {
522 String configFolder = "testsuite";
523 String pccLoc = TestHelper.findDataFolder();
524 LOG.info("Got data folder of " + pccLoc);
525 try
526 {
527 TestHelper.createDummySettingsFile(testConfigFile, configFolder,
528 pccLoc);
529 } catch (IOException e)
530 {
531 Logging.errorPrint("DataTest.loadGameModes failed", e);
532 }
533
534 PropertyContextFactory configFactory =
535 new PropertyContextFactory(SystemUtils.USER_DIR);
536 configFactory.registerAndLoadPropertyContext(ConfigurationSettings
537 .getInstance(testConfigFile));
538 Main.loadProperties(false);
539 PCGenTask loadPluginTask = Main.createLoadPluginTask();
540 loadPluginTask.run();
541 GameModeFileLoader gameModeFileLoader = new GameModeFileLoader();
542 gameModeFileLoader.run();
543 CampaignFileLoader campaignFileLoader = new CampaignFileLoader();
544 campaignFileLoader.run();
545 }
546
547 public static ChronicleEntry buildChronicleEntry(boolean visible, String campaign, String date,
548 String gm, String party, String adventure, int xp,

Callers

nothing calls this directly

Calls 10

findDataFolderMethod · 0.95
errorPrintMethod · 0.95
getInstanceMethod · 0.95
loadPropertiesMethod · 0.95
createLoadPluginTaskMethod · 0.95
runMethod · 0.95
runMethod · 0.95
runMethod · 0.95

Tested by

no test coverage detected