Skip to content

Edge case: junit5.StaticImports should respect existing assertEquals #459

@koppor

Description

@koppor
    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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions