jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Sitnikov <sitnikov.vladi...@gmail.com>
Subject Re: JUnit5 vs JUnit4
Date Wed, 02 Oct 2019 17:23:20 GMT
>I can attempt this tonight if no-one else has currently started it?

Yes, please.

I just tried to add

format("junit5") {
    target("**/*.java")
    replaceRegex("@Test: JUnit4 -> JUnit5",
"^\\s*import\\s+org\\.junit\\.Test", "import org.junit.jupiter.api.Test")
}

right after

spotless {
    java {
        licenseHeaderFile(licenseHeaderFile)

And it seems to produce meaningful results.

Vladimir

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message