public static void assertEquals(List<Text> expected, List<Text> actual) {
// Need to compare string values since Texts with the same string are not considered equal
Assertions.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.
Assertions.assertEqualsis 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.