Open koppor opened 10 months ago
Maybe, I need it a little bit more for my test cases
/**
* Reads a bibtex database from the given InputStream. The list is compared with the given list.
*
* @param expectedInputStream the inputStream reading the entry from
* @param actualEntries a list containing a single entry to compare with
*/
public static void assertEquals(InputStream expectedInputStream, List<BibEntry> actualEntries)
throws IOException {
assertNotNull(expectedInputStream);
assertNotNull(actualEntries);
// explicit reference of Assertions is needed here to disambiguate from the methods defined by this class
List<BibEntry> expectedEntries = getListFromInputStream(expectedInputStream);
Assertions.assertEquals(expectedEntries, actualEntries);
}
Related issue https://github.com/openrewrite/rewrite-testing-frameworks/issues/258 - but not a duplicate, because the recipe is another one here.
Assertions.assertEquals
is rewritten toassertEquals
(with a static import), which does not compile.OK, this is an edge case. I will rename the method. Just want to bring it up if you are interested.