You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicstaticvoidassertEquals(List<Text> expected, List<Text> actual) {
// Need to compare string values since Texts with the same string are not considered equalAssertions.assertEquals(expected.toString(), actual.toString());
assertEquals(expected.toString(), actual.toString());
Assertions.assertEquals is rewritten to assertEquals (with a static import), which does not compile.
java: incompatible types: java.lang.String cannot be converted to java.util.List<javafx.scene.text.Text>
OK, this is an edge case. I will rename the method. Just want to bring it up if you are interested.
The text was updated successfully, but these errors were encountered:
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 */publicstaticvoidassertEquals(InputStreamexpectedInputStream, List<BibEntry> actualEntries)
throwsIOException {
assertNotNull(expectedInputStream);
assertNotNull(actualEntries);
// explicit reference of Assertions is needed here to disambiguate from the methods defined by this classList<BibEntry> expectedEntries = getListFromInputStream(expectedInputStream);
Assertions.assertEquals(expectedEntries, actualEntries);
}
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.
The text was updated successfully, but these errors were encountered: