Skip to content

Commit

Permalink
Sort the formatters in FormatterTest alphabetically to easy manual ch…
Browse files Browse the repository at this point in the history
…ecking
  • Loading branch information
koppor committed Apr 10, 2016
1 parent d403fca commit 16bc1cb
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions src/test/java/net/sf/jabref/logic/formatter/FormatterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,27 +73,32 @@ public void getDescriptionAlwaysNonEmpty() {

@Parameterized.Parameters(name = "{index}: {0}")
public static Collection<Object[]> instancesToTest() {
// all classes implementing {@link net.sf.jabref.logic.formatter.Formatter}
// sorted alphabetically
// Alternative: Use reflection - https://github.com/ronmamo/reflections
// @formatter:off
return Arrays.asList(
new Object[]{new NormalizeNamesFormatter()},
new Object[]{new CapitalizeFormatter()},
new Object[]{new UpperCaseFormatter()},
new Object[]{new NormalizeMonthFormatter()},
new Object[]{new LatexCleanupFormatter()},
new Object[]{new ClearFormatter()},
new Object[]{new HtmlToLatexFormatter()},
new Object[]{new IdentityFormatter()},
new Object[]{new SentenceCaseFormatter()},
new Object[]{new LatexCleanupFormatter()},
new Object[]{new LatexToUnicodeFormatter()},
new Object[]{new LowerCaseFormatter()},
new Object[]{new MinifyNameListFormatter()},
new Object[]{new NormalizeDateFormatter()},
new Object[]{new TitleCaseFormatter()},
new Object[]{new ProtectTermsFormatter()},
new Object[]{new NormalizeMonthFormatter()},
new Object[]{new NormalizeNamesFormatter()},
new Object[]{new NormalizePagesFormatter()},
new Object[]{new LowerCaseFormatter()},
new Object[]{new HtmlToLatexFormatter()},
new Object[]{new LatexToUnicodeFormatter()},
new Object[]{new UnicodeToLatexFormatter()},
new Object[]{new OrdinalsToSuperscriptFormatter()},
new Object[]{new UnitsToLatexFormatter()},
new Object[]{new ProtectTermsFormatter()},
new Object[]{new RemoveBracesFormatter()},
new Object[]{new ClearFormatter()}
new Object[]{new SentenceCaseFormatter()},
new Object[]{new TitleCaseFormatter()},
new Object[]{new UnicodeToLatexFormatter()},
new Object[]{new UnitsToLatexFormatter()},
new Object[]{new UpperCaseFormatter()}
);
// @formatter:on
}
}

0 comments on commit 16bc1cb

Please sign in to comment.