(String first, String second)
| 30 | } |
| 31 | |
| 32 | @ParameterizedTest |
| 33 | @MethodSource("generateCombinations") |
| 34 | public void testStyleLoadOrder(String first, String second) { |
| 35 | try { |
| 36 | LanguageStyler styler = new LanguageStyler(Languages.find(first)); |
| 37 | styler.computeStyle(langToExample.get(first)); |
| 38 | // |
| 39 | styler = new LanguageStyler(Languages.find(second)); |
| 40 | styler.computeStyle(langToExample.get(second)); |
| 41 | } catch(Throwable ex) { |
| 42 | // If the system regresses to how it used to fail, it will throw a NPE |
| 43 | // when the styler tries to use Matcher.find() |
| 44 | fail(ex); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | public static Stream<Arguments> generateCombinations() { |
| 49 | List<Arguments> pairs = new ArrayList<>(); |
nothing calls this directly
no test coverage detected