Skip to content

MigrateHamcrestToAssertJ mistake #862

@ChenyuWang98

Description

@ChenyuWang98

Incorrect modification method.
assertThat(a,notNullValue(B.class)); => assertThat(a).isNotNull(B.class)

I believe this is the correct modification method.
assertThat(a,notNullValue(B.class)); => assertThat(a).isOfAnyClassIn(B.class).isNotNull()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions