Refaster - How to migrate static calls to a new object/library

26 views
Skip to first unread message

Ben Humphrey

unread,
May 19, 2021, 1:14:17 PM5/19/21
to error-prone-discuss
I want to migrate:
org.junit.Assert.assertX(msg, arg) -> org.junit.jupiter.api.Assertions.assertX(arg1, msg)

X being of course any assert. One at a time is just fine. Prefer the eventual JUnit5 call be static import (I saw the import option).

I read through the doc but don't know how to handle a static method call. Seems like an otherwise simple case. Can anyone suggest before and after templates ?  How to match the static methods ?

Thanks

Ben
Reply all
Reply to author
Forward
0 new messages