(String testConfigFile)
| 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, |
nothing calls this directly
no test coverage detected