Build the list of sources to be checked. Also initialises the plugins and loads the game mode and campaign files.
()
| 84 | * loads the game mode and campaign files. |
| 85 | */ |
| 86 | public static Stream<Object[]> data() |
| 87 | { |
| 88 | // Set things up |
| 89 | loadGameModes(); |
| 90 | SettingsHandler.setOutputDeprecationMessages(false); |
| 91 | SettingsHandler.setInputUnconstructedMessages(false); |
| 92 | PCGenSettings.OPTIONS_CONTEXT.setBoolean( |
| 93 | PCGenSettings.OPTION_ALLOW_OVERRIDE_DUPLICATES, true); |
| 94 | |
| 95 | List<SourceSelectionFacade> basicSources = getBasicSources(); |
| 96 | assertFalse(basicSources.isEmpty(), "No sources found"); |
| 97 | Collection<Object[]> params = new ArrayList<>(); |
| 98 | basicSources.forEach(ssf -> { |
| 99 | String testName = ssf.toString().replaceAll("[(\\)]", "_"); |
| 100 | params.add(new Object[]{ssf, testName}); |
| 101 | }); |
| 102 | return params.stream(); |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Test the load of the current source. |
nothing calls this directly
no test coverage detected